[x264-devel] [PATCH 14/29] param: Modify default qp parameters to maximum allowable

Vittorio Giovara vittorio.giovara at gmail.com
Fri Feb 10 22:18:49 CET 2017


This is needed so that param functions do not depend on bit depth size.
---
 common/param.c | 4 ++--
 x264.h         | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/param.c b/common/param.c
index fad0ef5..1c35d5e 100644
--- a/common/param.c
+++ b/common/param.c
@@ -95,10 +95,10 @@ void x264_param_default( x264_param_t *param )
     param->rc.i_vbv_max_bitrate = 0;
     param->rc.i_vbv_buffer_size = 0;
     param->rc.f_vbv_buffer_init = 0.9;
-    param->rc.i_qp_constant = 23 + QP_BD_OFFSET;
+    param->rc.i_qp_constant = INT_MAX;
     param->rc.f_rf_constant = 23;
     param->rc.i_qp_min = 0;
-    param->rc.i_qp_max = QP_MAX;
+    param->rc.i_qp_max = INT_MAX;
     param->rc.i_qp_step = 4;
     param->rc.f_ip_factor = 1.4;
     param->rc.f_pb_factor = 1.3;
diff --git a/x264.h b/x264.h
index eb56b09..5ac4baf 100644
--- a/x264.h
+++ b/x264.h
@@ -408,7 +408,7 @@ typedef struct x264_param_t
     {
         int         i_rc_method;    /* X264_RC_* */
 
-        int         i_qp_constant;  /* 0 to (51 + 6*(x264_bit_depth-8)). 0=lossless */
+        int         i_qp_constant;  /* 0=lossless */
         int         i_qp_min;       /* min allowed QP value */
         int         i_qp_max;       /* max allowed QP value */
         int         i_qp_step;      /* max QP step between frames */
-- 
2.10.0



More information about the x264-devel mailing list