]> git.videolan.org Git - x264.git/commitdiff
disable subme=0 (the huge bitrate penalty wasn't worth the speed)
authorLoren Merritt <pengvado@videolan.org>
Fri, 7 Jan 2005 11:08:55 +0000 (11:08 +0000)
committerLoren Merritt <pengvado@videolan.org>
Fri, 7 Jan 2005 11:08:55 +0000 (11:08 +0000)
renumber direct_pred

git-svn-id: svn://svn.videolan.org/x264/trunk@86 df754926-b1dd-0310-bc7b-ec298dee348c

common/common.c
encoder/encoder.c
x264.h

index 1c5ad1d6bb5297a113b3aa8bc6c7a51e59a1d348..a50ce975e825ab7bd7be070e0a6df41a4d59fd53 100644 (file)
@@ -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;
 }
 
index a3820b28e271f681bb7cd4aa5de274d8cc9eb38f..c66401a29e0b8e3603b040eb2f8858fbb334e015 100644 (file)
@@ -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 bb2e1342f4ca1d45450128c1c4e7def6bb95bc30..ede99ba5861ee8859e9d4bf27e73d5d0ec633204 100644 (file)
--- 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
  */