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

Vittorio Giovara vittorio.giovara at gmail.com
Fri Jan 20 15:20:42 CET 2017


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

diff --git a/common/param.c b/common/param.c
index 52ed1c8..3713ec4 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;
-- 
2.10.0



More information about the x264-devel mailing list