[x265] [PATCH 2 of 4 x265] Enable Cbr in rate-control 2 pass

kirithika at multicorewareinc.com kirithika at multicorewareinc.com
Wed Apr 22 09:14:15 CEST 2020


# HG changeset patch
# User Kirithika <kirithika at multicorewareinc.com>
# Date 1578292608 -19800
#      Mon Jan 06 12:06:48 2020 +0530
# Node ID 0fa2ec307c561a07ba6e1679a1814f2fb37eb4e1
# Parent  851a02eea935bacf74eb35655798f72892580880
Enable Cbr in rate-control 2 pass

This commit enables CBR based QP tuning for rate-control 2 Pass and enables the
signalling of CBR flag in HRD for CBR bitstreams

diff -r 851a02eea935 -r 0fa2ec307c56 source/encoder/ratecontrol.cpp
--- a/source/encoder/ratecontrol.cpp	Fri Oct 18 14:18:00 2019 +0530
+++ b/source/encoder/ratecontrol.cpp	Mon Jan 06 12:06:48 2020 +0530
@@ -269,7 +269,7 @@
         x265_log(m_param, X265_LOG_WARNING, "NAL HRD parameters require VBV parameters, ignored\n");
         m_param->bEmitHRDSEI = 0;
     }
-    m_isCbr = m_param->rc.rateControlMode == X265_RC_ABR && m_isVbv && !m_2pass && m_param->rc.vbvMaxBitrate <= m_param->rc.bitrate;
+    m_isCbr = m_param->rc.rateControlMode == X265_RC_ABR && m_isVbv && m_param->rc.vbvMaxBitrate <= m_param->rc.bitrate;
     if (m_param->rc.bStrictCbr && !m_isCbr)
     {
         x265_log(m_param, X265_LOG_WARNING, "strict CBR set without CBR mode, ignored\n");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265-2.patch
Type: text/x-patch
Size: 1169 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20200422/ed2857ae/attachment.bin>


More information about the x265-devel mailing list