changeset 15744:268cb6b8484e

sync to x264 rev264 (lossless)
author lorenm
date Fri, 17 Jun 2005 08:26:12 +0000
parents c06986fbf819
children 3d712cf823c0
files DOCS/man/en/mplayer.1 libmpcodecs/ve_x264.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/man/en/mplayer.1	Fri Jun 17 08:15:08 2005 +0000
+++ b/DOCS/man/en/mplayer.1	Fri Jun 17 08:26:12 2005 +0000
@@ -7851,11 +7851,12 @@
 at significant reduction in quality.
 .
 .TP
-.B qp_constant=<1\-51>
+.B qp_constant=<0\-51>
 This selects the quantizer to use for P-frames.
 I- and B-frames are offset from this value by ip_factor and pb_factor, respectively.
 20\-40 is a useful range (default: 26).
 Lower values result in better fidelity, but higher bitrates.
+0 is lossless.
 Note that quantization in H.264 works differently from MPEG-1/2/4:
 H.264's quantization parameter (QP) is on a logarithmic scale.
 The mapping is approximately H264QP = 12 + 6*log2(MPEGQP).
--- a/libmpcodecs/ve_x264.c	Fri Jun 17 08:15:08 2005 +0000
+++ b/libmpcodecs/ve_x264.c	Fri Jun 17 08:26:12 2005 +0000
@@ -107,7 +107,7 @@
 
 m_option_t x264encopts_conf[] = {
     {"bitrate", &bitrate, CONF_TYPE_INT, CONF_RANGE, 0, 24000000, NULL},
-    {"qp_constant", &qp_constant, CONF_TYPE_INT, CONF_RANGE, 1, 51, NULL},
+    {"qp_constant", &qp_constant, CONF_TYPE_INT, CONF_RANGE, 0, 51, NULL},
     {"frameref", &frame_ref, CONF_TYPE_INT, CONF_RANGE, 1, 16, NULL},
     {"keyint", &keyint_max, CONF_TYPE_INT, CONF_RANGE, 1, 24000000, NULL},
     {"keyint_min", &keyint_min, CONF_TYPE_INT, CONF_RANGE, 1, 24000000, NULL},