<div dir="ltr">Can you please paste the performance improvement figures for some of the videos ?</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 4, 2016 at 2:50 PM, <span dir="ltr"><<a href="mailto:kavitha@multicorewareinc.com" target="_blank">kavitha@multicorewareinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Kavitha Sampath <<a href="mailto:kavitha@multicorewareinc.com">kavitha@multicorewareinc.com</a>><br>
# Date 1475238341 -19800<br>
# Fri Sep 30 17:55:41 2016 +0530<br>
# Node ID 3ae30a43ac939fe875eaec7f22d134<wbr>711b00c449<br>
# Parent c018bc0ffc156902b1a9a13ecd6996<wbr>d30d7403df<br>
limitTU: use max TU depth of first subTU to limit recursion of others in split<br>
<br>
diff -r c018bc0ffc15 -r 3ae30a43ac93 source/encoder/search.cpp<br>
--- a/source/encoder/search.cpp Fri Sep 23 14:22:41 2016 +0530<br>
+++ b/source/encoder/search.cpp Fri Sep 30 17:55:41 2016 +0530<br>
@@ -67,6 +67,7 @@<br>
m_param = NULL;<br>
m_slice = NULL;<br>
m_frame = NULL;<br>
+ m_maxTUDepth = 0;<br>
}<br>
<br>
bool Search::initSearch(const x265_param& param, ScalingList& scalingList)<br>
@@ -2617,6 +2618,8 @@<br>
<br>
m_entropyCoder.load(m_rqt[<wbr>depth].cur);<br>
<br>
+ if (m_param->limitTU == X265_TU_LIMIT_DFS)<br>
+ m_maxTUDepth = 0;<br>
Cost costs;<br>
estimateResidualQT(interMode, cuGeom, 0, 0, *resiYuv, costs, tuDepthRange);<br>
<br>
@@ -2876,6 +2879,11 @@<br>
<br>
bool bCheckSplit = log2TrSize > depthRange[0];<br>
bool bCheckFull = log2TrSize <= depthRange[1];<br>
+ if (m_param->limitTU == X265_TU_LIMIT_DFS && m_maxTUDepth)<br>
+ {<br>
+ uint32_t log2MaxTrSize = cuGeom.log2CUSize - m_maxTUDepth;<br>
+ bCheckSplit = log2TrSize > log2MaxTrSize;<br>
+ }<br>
bool bSplitPresentFlag = bCheckSplit && bCheckFull;<br>
<br>
if (cu.m_partSize[0] != SIZE_2Nx2N && !tuDepth && bCheckSplit)<br>
@@ -3372,6 +3380,11 @@<br>
uint32_t ycbf = 0, ucbf = 0, vcbf = 0;<br>
for (uint32_t qIdx = 0, qPartIdx = absPartIdx; qIdx < 4; ++qIdx, qPartIdx += qNumParts)<br>
{<br>
+ if (m_param->limitTU == X265_TU_LIMIT_DFS && tuDepth == 0 && qIdx == 1)<br>
+ {<br>
+ for (uint32_t i = 0; i < cuGeom.numPartitions / 4; i++)<br>
+ m_maxTUDepth = X265_MAX(m_maxTUDepth, cu.m_tuDepth[i]);<br>
+ }<br>
estimateResidualQT(mode, cuGeom, qPartIdx, tuDepth + 1, resiYuv, splitCost, depthRange);<br>
ycbf |= cu.getCbf(qPartIdx, TEXT_LUMA, tuDepth + 1);<br>
if (m_csp != X265_CSP_I400 && m_frame->m_fencPic->m_picCsp != X265_CSP_I400)<br>
diff -r c018bc0ffc15 -r 3ae30a43ac93 source/encoder/search.h<br>
--- a/source/encoder/search.h Fri Sep 23 14:22:41 2016 +0530<br>
+++ b/source/encoder/search.h Fri Sep 30 17:55:41 2016 +0530<br>
@@ -274,6 +274,7 @@<br>
bool m_bFrameParallel;<br>
uint32_t m_numLayers;<br>
uint32_t m_refLagPixels;<br>
+ uint32_t m_maxTUDepth;<br>
<br>
int16_t m_sliceMaxY;<br>
int16_t m_sliceMinY;<br>
______________________________<wbr>_________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/<wbr>listinfo/x265-devel</a><br>
</blockquote></div><br></div>