# HG changeset patch # User lorenm # Date 1141543392 0 # Node ID a3dd033ec92e4dfb1dee6fff4382c236a0d493df # Parent a0d4f253e82b23f7e20f2e92e03b0b37e86132c7 sync to x264 r457 (direct_pred=3) diff -r a0d4f253e82b -r a3dd033ec92e DOCS/man/en/mplayer.1 --- a/DOCS/man/en/mplayer.1 Sun Mar 05 07:06:34 2006 +0000 +++ b/DOCS/man/en/mplayer.1 Sun Mar 05 07:23:12 2006 +0000 @@ -8841,7 +8841,7 @@ .RE . .TP -.B direct_pred=<0\-2> +.B direct_pred=<0\-3> Determines the type of motion prediction used for direct macroblocks in B-frames. .PD 0 @@ -8850,14 +8850,17 @@ None: direct macroblocks are not used. .IPs 1 Spatial: motion vectors are extrapolated from neighboring blocks. +(default) .IPs 2 Temporal: motion vectors are interpolated from the following P-frame. -(default) +.IPs 3 +Auto: the codec selects between spatial and temporal for each frame. .RE .PD 1 .RS Spatial and temporal are approximately the same speed and PSNR, -but temporal often looks better. +the choice between them depends on the video content. +Auto is slightly better, but slower. direct_pred=0 is both slower and lower quality. .RE . diff -r a0d4f253e82b -r a3dd033ec92e configure --- a/configure Sun Mar 05 07:06:34 2006 +0000 +++ b/configure Sun Mar 05 07:23:12 2006 +0000 @@ -6388,7 +6388,7 @@ cat > $TMPC << EOF #include #include -#if X264_BUILD < 43 +#if X264_BUILD < 45 #error We do not support old versions of x264. Get the latest from SVN. #endif int main(void) { x264_encoder_open((void*)0); return 0; } diff -r a0d4f253e82b -r a3dd033ec92e libmpcodecs/ve_x264.c --- a/libmpcodecs/ve_x264.c Sun Mar 05 07:06:34 2006 +0000 +++ b/libmpcodecs/ve_x264.c Sun Mar 05 07:23:12 2006 +0000 @@ -77,7 +77,7 @@ static int i8x8 = 1; static int i4x4 = 1; static int dct8 = 0; -static int direct_pred = X264_DIRECT_PRED_TEMPORAL; +static int direct_pred = X264_DIRECT_PRED_SPATIAL; static int weight_b = 0; static int chroma_me = 1; static int mixed_references = 0; @@ -152,7 +152,7 @@ {"noi8x8", &i8x8, CONF_TYPE_FLAG, 0, 0, 0, NULL}, {"8x8dct", &dct8, CONF_TYPE_FLAG, 0, 0, 1, NULL}, {"no8x8dct", &dct8, CONF_TYPE_FLAG, 0, 0, 0, NULL}, - {"direct_pred", &direct_pred, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL}, + {"direct_pred", &direct_pred, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL}, {"weight_b", &weight_b, CONF_TYPE_FLAG, 0, 0, 1, NULL}, {"noweight_b", &weight_b, CONF_TYPE_FLAG, 0, 1, 0, NULL}, {"bime", &bidir_me, CONF_TYPE_FLAG, 0, 0, 1, NULL},