[x265] [PATCH 6 of 6] slicetype: set iskeyFrameAnalyse only for first pass encode

aarthi at multicorewareinc.com aarthi at multicorewareinc.com
Sun Jun 15 20:50:58 CEST 2014


# HG changeset patch
# User Aarthi Thirumalai<aarthi at multicorewareinc.com>
# Date 1402858200 -19800
#      Mon Jun 16 00:20:00 2014 +0530
# Node ID 125d7c652199b81afd7d19a98d4e2c066da313a0
# Parent  819acc0204a2d3e454d9492ae81f80fc04e2b99f
slicetype: set iskeyFrameAnalyse only for first pass encode

diff -r 819acc0204a2 -r 125d7c652199 source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp	Mon Jun 16 00:19:13 2014 +0530
+++ b/source/encoder/slicetype.cpp	Mon Jun 16 00:20:00 2014 +0530
@@ -494,7 +494,7 @@
         }
     }
 
-    bool isKeyFrameAnalyse = (m_param->rc.cuTree || (m_param->rc.vbvBufferSize && m_param->lookaheadDepth));
+    bool isKeyFrameAnalyse = (m_param->rc.cuTree || (m_param->rc.vbvBufferSize && m_param->lookaheadDepth)) && !m_param->rc.statRead;
     if (isKeyFrameAnalyse && IS_X265_TYPE_I(m_lastNonB->sliceType))
     {
         m_inputQueueLock.acquire();


More information about the x265-devel mailing list