changeset 17731:a3dd033ec92e

sync to x264 r457 (direct_pred=3)
author lorenm
date Sun, 05 Mar 2006 07:23:12 +0000
parents a0d4f253e82b
children 4a8c4d03c88c
files DOCS/man/en/mplayer.1 configure libmpcodecs/ve_x264.c
diffstat 3 files changed, 9 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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
 .
--- 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 <inttypes.h>
 #include <x264.h>
-#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; }
--- 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},