[x265] [PATCH] vbv:reinit cu data when row vbv re-rencode is triggered

santhoshini at multicorewareinc.com santhoshini at multicorewareinc.com
Fri Apr 18 14:31:25 CEST 2014


# HG changeset patch
# User Santhoshini Sekar <santhoshini at multicorewareinc.com>
# Date 1397824258 -19800
#      Fri Apr 18 18:00:58 2014 +0530
# Node ID 3d680a36ea9acc45f3db128a5efe557a79a3026b
# Parent  03aa222ff8eb5ffbe65bd5bf522cad6561210024
vbv:reinit cu data when row vbv re-rencode is triggered.

diff -r 03aa222ff8eb -r 3d680a36ea9a source/encoder/frameencoder.cpp
--- a/source/encoder/frameencoder.cpp	Fri Apr 18 17:32:14 2014 +0530
+++ b/source/encoder/frameencoder.cpp	Fri Apr 18 18:00:58 2014 +0530
@@ -1100,6 +1100,8 @@
         {
             if (!row)
                 m_pic->m_rowDiagQp[row] = m_pic->m_avgQpRc;
+            if (cu->m_baseQp != 0)
+                cu->initEstData(0);
 
             if (row >= col && row && m_vbvResetTriggerRow != row)
                 cu->m_baseQp = m_pic->getCU(cuAddr - numCols + 1)->m_baseQp;


More information about the x265-devel mailing list