]> git.videolan.org Git - x264.git/commitdiff
Remove unused function
authorJason Garrett-Glaser <darkshikari@gmail.com>
Tue, 23 Feb 2010 21:52:15 +0000 (13:52 -0800)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 24 Feb 2010 02:26:31 +0000 (18:26 -0800)
Two other minor fixes.

encoder/macroblock.c
x264.c

index 0be62018c16eed5b78a506b79fef591195207b75..c9549ba06d93690147815d598d2b92d48d1f291b 100644 (file)
@@ -78,18 +78,6 @@ static inline void dct2x2dc( int16_t d[4], int16_t dct4x4[4][16] )
     dct4x4[3][0] = 0;
 }
 
-static inline void dct2x2dc_dconly( int16_t d[4] )
-{
-    int d0 = d[0] + d[1];
-    int d1 = d[2] + d[3];
-    int d2 = d[0] - d[1];
-    int d3 = d[2] - d[3];
-    d[0] = d0 + d1;
-    d[2] = d2 + d3;
-    d[1] = d0 - d1;
-    d[3] = d2 - d3;
-}
-
 static ALWAYS_INLINE int x264_quant_4x4( x264_t *h, int16_t dct[16], int i_qp, int i_ctxBlockCat, int b_intra, int idx )
 {
     int i_quant_cat = b_intra ? CQM_4IY : CQM_4PY;
diff --git a/x264.c b/x264.c
index aabb78bf36388dfda6b64f36524ca50aa70477d0..e8050420577c7505c730ca66aae40ca43dc0999c 100644 (file)
--- a/x264.c
+++ b/x264.c
@@ -389,9 +389,9 @@ static void Help( x264_param_t *defaults, int longhelp )
                                        strtable_lookup( x264_direct_pred_names, defaults->analyse.i_direct_mv_pred ) );
     H2( "      --no-weightb            Disable weighted prediction for B-frames\n" );
     H1( "      --weightp <integer>     Weighted prediction for P-frames [%d]\n"
-        "                              - 0: Disabled\n"
-        "                              - 1: Blind offset\n"
-        "                              - 2: Smart analysis\n", defaults->analyse.i_weighted_pred );
+        "                                  - 0: Disabled\n"
+        "                                  - 1: Blind offset\n"
+        "                                  - 2: Smart analysis\n", defaults->analyse.i_weighted_pred );
     H1( "      --me <string>           Integer pixel motion estimation method [\"%s\"]\n",
                                        strtable_lookup( x264_motion_est_names, defaults->analyse.i_me_method ) );
     H2( "                                  - dia: diamond search, radius 1 (fast)\n"
@@ -825,7 +825,7 @@ static int Parse( int argc, char **argv, x264_param_t *param, cli_opt_t *opt )
             return -1;
     }
 
-    if( preset && !strcmp( preset, "placebo" ) )
+    if( preset && !strcasecmp( preset, "placebo" ) )
         b_turbo = 0;
 
     if( x264_param_default_preset( param, preset, tune ) < 0 )