From: Jason Garrett-Glaser Date: Tue, 23 Feb 2010 21:52:15 +0000 (-0800) Subject: Remove unused function X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=e29c75837c72a0ed387441ffa6bab339dbe3de9f;p=x264.git Remove unused function Two other minor fixes. --- diff --git a/encoder/macroblock.c b/encoder/macroblock.c index 0be62018..c9549ba0 100644 --- a/encoder/macroblock.c +++ b/encoder/macroblock.c @@ -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 aabb78bf..e8050420 100644 --- 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 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 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 )