<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 17, 2017 at 11:45 AM, <span dir="ltr"><<a href="mailto:praveen@multicorewareinc.com" target="_blank">praveen@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 Praveen Tiwari <<a href="mailto:praveen@multicorewareinc.com">praveen@multicorewareinc.com</a>><br>
# Date 1510561483 -19800<br>
# Mon Nov 13 13:54:43 2017 +0530<br>
# Node ID 4b6af5ba01f8244aec5862dc5fccc0<wbr>019c44d0c8<br>
# Parent 2fec493b990ee3066e5ffc853d8366<wbr>9955f0ee3c<br>
analysis: update analysisReuseLevel 7 for analysis sharing<br></blockquote><div><br></div><div>Pushed to default. Thanks!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
diff -r 2fec493b990e -r 4b6af5ba01f8 doc/reST/cli.rst<br>
--- a/doc/reST/cli.rst Mon Nov 13 12:20:50 2017 +0530<br>
+++ b/doc/reST/cli.rst Mon Nov 13 13:54:43 2017 +0530<br>
@@ -887,17 +887,19 @@<br>
<br>
Note that --analysis-reuse-level must be paired with analysis-reuse-mode.<br>
<br>
- +--------+--------------------<wbr>---------------------+<br>
- | Level | Description |<br>
- +========+====================<wbr>=====================+<br>
- | 1 | Lookahead information |<br>
- +--------+--------------------<wbr>---------------------+<br>
- | 2 to 4 | Level 1 + intra/inter modes, ref's |<br>
- +--------+--------------------<wbr>---------------------+<br>
- | 5 to 9 | Level 2 + rect-amp |<br>
- +--------+--------------------<wbr>---------------------+<br>
- | 10 | Level 5 + Full CU analysis-info |<br>
- +--------+--------------------<wbr>---------------------+<br>
+ +--------------+--------------<wbr>----------------------------+<br>
+ | Level | Description |<br>
+ +==============+==============<wbr>============================+<br>
+ | 1 | Lookahead information |<br>
+ +--------------+--------------<wbr>----------------------------+<br>
+ | 2 to 4 | Level 1 + intra/inter modes, ref's |<br>
+ +--------------+--------------<wbr>----------------------------+<br>
+ | 5,6,8 and 9 | Level 2 + rect-amp |<br>
+ +--------------+--------------<wbr>----------------------------+<br>
+ | 7 | Level 5 + AVC size CU refinement |<br>
+ +--------------+--------------<wbr>----------------------------+<br>
+ | 10 | Level 5 + Full CU analysis-info |<br>
+ +--------------+--------------<wbr>----------------------------+<br>
<br>
.. option:: --refine-mv-type <string><br>
<br>
diff -r 2fec493b990e -r 4b6af5ba01f8 source/encoder/analysis.cpp<br>
--- a/source/encoder/analysis.cpp Mon Nov 13 12:20:50 2017 +0530<br>
+++ b/source/encoder/analysis.cpp Mon Nov 13 13:54:43 2017 +0530<br>
@@ -2301,7 +2301,7 @@<br>
for (uint32_t part = 0; part < numPU; part++)<br>
{<br>
PredictionUnit pu(<a href="http://mode.cu" rel="noreferrer" target="_blank">mode.cu</a>, cuGeom, part);<br>
- if (m_param->analysisReuseLevel == 10)<br>
+ if (m_param->analysisReuseLevel >= 7)<br>
{<br>
analysis_inter_data* interDataCTU = (analysis_inter_data*)m_frame-<wbr>>m_analysisData.interData;<br>
int cuIdx = (mode.cu.m_cuAddr * parentCTU.m_numPartitions) + cuGeom.absPartIdx;<br>
@@ -2407,7 +2407,7 @@<br>
if (m_slice->m_pps->bUseDQP && nextDepth <= m_slice->m_pps->maxCuDQPDepth)<br>
nextQP = setLambdaFromQP(parentCTU, calculateQpforCuSize(<wbr>parentCTU, childGeom));<br>
<br>
- int lamdaQP = m_param->analysisReuseLevel == 10 ? nextQP : lqp;<br>
+ int lamdaQP = (m_param->analysisReuseLevel >= 7) ? nextQP : lqp;<br>
<br>
if (split)<br>
m_param->rdLevel > 4 ? compressInterCU_rd5_6(<wbr>parentCTU, childGeom, nextQP) : compressInterCU_rd0_4(<wbr>parentCTU, childGeom, nextQP);<br>
diff -r 2fec493b990e -r 4b6af5ba01f8 source/encoder/encoder.cpp<br>
--- a/source/encoder/encoder.cpp Mon Nov 13 12:20:50 2017 +0530<br>
+++ b/source/encoder/encoder.cpp Mon Nov 13 13:54:43 2017 +0530<br>
@@ -3036,7 +3036,7 @@<br>
CHECKED_MALLOC(interData-><wbr>mergeFlag, uint8_t, analysis->numPartitions * analysis->numCUsInFrame);<br>
}<br>
<br>
- if (m_param->analysisReuseLevel == 10)<br>
+ if (m_param->analysisReuseLevel >= 7)<br>
{<br>
CHECKED_MALLOC(interData-><wbr>interDir, uint8_t, analysis->numPartitions * analysis->numCUsInFrame);<br>
for (int dir = 0; dir < numDir; dir++)<br>
@@ -3113,7 +3113,7 @@<br>
X265_FREE(((analysis_inter_<wbr>data*)analysis->interData)-><wbr>mergeFlag);<br>
X265_FREE(((analysis_inter_<wbr>data*)analysis->interData)-><wbr>partSize);<br>
}<br>
- if (m_param->analysisReuseLevel == 10)<br>
+ if (m_param->analysisReuseLevel >= 7)<br>
{<br>
X265_FREE(((analysis_inter_<wbr>data*)analysis->interData)-><wbr>interDir);<br>
int numDir = analysis->sliceType == X265_TYPE_P ? 1 : 2;<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></div>