]> granicus.if.org Git - libx264/commitdiff
Add "fastdecode" tune option
authorFiona Glaser <fiona@x264.com>
Mon, 27 Jul 2009 11:45:03 +0000 (04:45 -0700)
committerFiona Glaser <fiona@x264.com>
Mon, 27 Jul 2009 11:45:03 +0000 (04:45 -0700)
It does what it says it does.

x264.c

diff --git a/x264.c b/x264.c
index 0a140704330e590caafee9b3f41b6c39b00ffe6c..8edc39c531de17baab2ee57912805c6c972e729f 100644 (file)
--- a/x264.c
+++ b/x264.c
@@ -173,8 +173,9 @@ static void Help( x264_param_t *defaults, int b_longhelp )
     else H0( "                                  - ultrafast,veryfast,fast,medium,slow,slower\n" );
     H0( "      --tune                  Tune the settings for a particular type of source\n" );
     H0( "                                  Overridden by user settings\n");
-    H1( "                                  - film,animation,grain,psnr,ssim,touhou\n");
-    else H0( "                                  - film,animation,grain,psnr,ssim\n");
+    H1( "                                  - film,animation,grain,psnr,ssim\n"
+        "                                  - fastdecode,touhou\n");
+    else H0( "                                  - film,animation,grain,psnr,ssim,fastdecode\n");
     H0( "      --slow-firstpass        Don't use faster settings with --pass 1\n" );
     H0( "\n" );
     H0( "Frame-type options:\n" );
@@ -649,6 +650,12 @@ static int  Parse( int argc, char **argv,
                 param->analyse.f_psy_rd = 0;
                 param->rc.i_aq_mode = X264_AQ_AUTOVARIANCE;
             }
+            else if( !strcasecmp( optarg, "fastdecode" ) )
+            {
+                param->b_deblocking_filter = 0;
+                param->b_cabac = 0;
+                param->analyse.b_weighted_bipred = 0;
+            }
             else if( !strcasecmp( optarg, "touhou" ) )
             {
                 param->i_frame_reference = param->i_frame_reference > 1 ? param->i_frame_reference*2 : 1;