From: Loren Merritt Date: Fri, 7 Jan 2005 11:08:55 +0000 (+0000) Subject: disable subme=0 (the huge bitrate penalty wasn't worth the speed) X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=094266b31789338c7a6b91f96aa2fc8c1bd72f94;p=x264.git disable subme=0 (the huge bitrate penalty wasn't worth the speed) renumber direct_pred git-svn-id: svn://svn.videolan.org/x264/trunk@86 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/common/common.c b/common/common.c index 1c5ad1d6..a50ce975 100644 --- a/common/common.c +++ b/common/common.c @@ -100,7 +100,7 @@ void x264_param_default( x264_param_t *param ) param->analyse.intra = X264_ANALYSE_I4x4; param->analyse.inter = X264_ANALYSE_I4x4 | X264_ANALYSE_PSUB16x16 | X264_ANALYSE_BSUB16x16; param->analyse.i_direct_mv_pred = X264_DIRECT_PRED_TEMPORAL; - param->analyse.i_subpel_refine = 3; + param->analyse.i_subpel_refine = 5; param->analyse.b_psnr = 1; } diff --git a/encoder/encoder.c b/encoder/encoder.c index a3820b28..c66401a2 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -343,7 +343,7 @@ x264_t *x264_encoder_open ( x264_param_t *param ) h->param.i_cabac_init_idc = x264_clip3( h->param.i_cabac_init_idc, -1, 2 ); - param->analyse.i_subpel_refine = x264_clip3( param->analyse.i_subpel_refine, 0, 5 ); + param->analyse.i_subpel_refine = x264_clip3( param->analyse.i_subpel_refine, 1, 5 ); if( h->param.rc.f_qblur < 0 ) h->param.rc.f_qblur = 0; diff --git a/x264.h b/x264.h index bb2e1342..ede99ba5 100644 --- a/x264.h +++ b/x264.h @@ -52,8 +52,8 @@ typedef struct x264_t x264_t; #define X264_ANALYSE_PSUB8x8 0x0020 /* Analyse p8x4, p4x8, p4x4 */ #define X264_ANALYSE_BSUB16x16 0x0100 /* Analyse b16x8, b8x16 and b8x8 */ #define X264_DIRECT_PRED_NONE 0 -#define X264_DIRECT_PRED_TEMPORAL 1 -#define X264_DIRECT_PRED_SPATIAL 2 +#define X264_DIRECT_PRED_SPATIAL 1 +#define X264_DIRECT_PRED_TEMPORAL 2 /* Colorspace type */