[x265] [PATCH 2 of 5] vbv: set DQP as true if VBV is enabled (and AQ disabled)

deepthi at multicorewareinc.com deepthi at multicorewareinc.com
Thu Mar 13 12:29:15 CET 2014


# HG changeset patch
# User Deepthi Nandakumar <deepthi at multicorewareinc.com>
# Date 1394706329 -19800
# Node ID abea85f7bde30394db2ac2f5e7467d2506e4a639
# Parent  dd3deb31f5e6aa06041985e344414c2a4f24cec8
vbv: set DQP as true if VBV is enabled (and AQ disabled).

Unless this is set, the different QP's for each CU wont be encoded. This worked thankfully
until now, since VBV was always used at high quality (AQ on) settings.

diff -r dd3deb31f5e6 -r abea85f7bde3 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Thu Mar 13 15:47:59 2014 +0530
+++ b/source/encoder/encoder.cpp	Thu Mar 13 15:55:29 2014 +0530
@@ -1116,7 +1116,8 @@
 void Encoder::initPPS(TComPPS *pps)
 {
     pps->setConstrainedIntraPred(param->bEnableConstrainedIntra);
-    bool bUseDQP = (m_maxCuDQPDepth > 0 || param->rc.aqMode) ? true : false;
+    bool isVbv = param->rc.vbvBufferSize > 0 && param->rc.vbvMaxBitrate > 0;
+    bool bUseDQP = (m_maxCuDQPDepth > 0 || param->rc.aqMode || isVbv) ? true : false;
 
     int lowestQP = -(6 * (X265_DEPTH - 8)); //m_cSPS.getQpBDOffsetY();
 


More information about the x265-devel mailing list