[x265] [PATCH] rc: fix bug in ABR 2 pass, calculate aq-offset only for unreferenced frame in 2 pass
santhoshini at multicorewareinc.com
santhoshini at multicorewareinc.com
Mon Mar 30 14:00:10 CEST 2015
# HG changeset patch
# User Santhoshini Sekar<santhoshini at multicorewareinc.com>
# Date 1427716771 -19800
# Mon Mar 30 17:29:31 2015 +0530
# Node ID 1bdeb44d775d5be7523925017a1483294da2575d
# Parent 22a312799bb033d40a66fc83a1ac7af192ce2420
rc: fix bug in ABR 2 pass, calculate aq-offset only for unreferenced frame in 2 pass
diff -r 22a312799bb0 -r 1bdeb44d775d source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp Fri Mar 27 22:59:30 2015 -0500
+++ b/source/encoder/slicetype.cpp Mon Mar 30 17:29:31 2015 +0530
@@ -699,7 +699,7 @@
ProfileScopeEvent(prelookahead);
preFrame->m_lowres.init(preFrame->m_fencPic, preFrame->m_poc);
- if (m_bAdaptiveQuant)
+ if (m_bAdaptiveQuant && (!m_param->rc.bStatRead ||(m_param->rc.bStatRead &&(!m_param->rc.cuTree || ! IS_REFERENCED(preFrame)))))
m_tld[tld].calcAdaptiveQuantFrame(preFrame, m_param);
m_tld[tld].lowresIntraEstimate(preFrame->m_lowres);
More information about the x265-devel
mailing list