<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 4, 2018 at 4:52 PM, <span dir="ltr"><<a href="mailto:bhavna@multicorewareinc.com" target="_blank">bhavna@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 Bhavna Hariharan <<a href="mailto:bhavna@multicorewareinc.com">bhavna@multicorewareinc.com</a>><br>
# Date 1527756919 -19800<br>
# Thu May 31 14:25:19 2018 +0530<br>
# Node ID d939297a02c72cad0d860234f31a35<wbr>6eb30aa9f4<br>
# Parent 9cde2c278464be0db96d41f9605a2d<wbr>c7a3137165<br>
Support scale factor with analysis-reuse-level 1-6<br>
<br>
diff -r 9cde2c278464 -r d939297a02c7 doc/reST/cli.rst<br>
--- a/doc/reST/cli.rst Wed May 30 20:54:07 2018 +0530<br>
+++ b/doc/reST/cli.rst Thu May 31 14:25:19 2018 +0530<br>
@@ -895,11 +895,11 @@<br>
+--------------+--------------<wbr>----------------------------+<br>
| 2 to 4 | Level 1 + intra/inter modes, ref's |<br>
+--------------+--------------<wbr>----------------------------+<br>
- | 5,6 and 9 | Level 2 + rect-amp |<br>
+ | 5 and 6 | Level 2 + rect-amp |<br>
+--------------+--------------<wbr>----------------------------+<br>
| 7 | Level 5 + AVC size CU refinement |<br>
+--------------+--------------<wbr>----------------------------+<br>
- | 8 | Level 5 + AVC size Full CU analysis-info |<br>
+ | 8 and 9 | Level 5 + AVC size Full CU analysis-info |<br>
+--------------+--------------<wbr>----------------------------+<br>
| 10 | Level 5 + Full CU analysis-info |<br>
+--------------+--------------<wbr>----------------------------+<br>
diff -r 9cde2c278464 -r d939297a02c7 source/encoder/encoder.cpp<br>
--- a/source/encoder/encoder.cpp Wed May 30 20:54:07 2018 +0530<br>
+++ b/source/encoder/encoder.cpp Thu May 31 14:25:19 2018 +0530<br>
@@ -2711,9 +2711,9 @@<br>
{<br>
p->scaleFactor = 0;<br>
}<br>
- else if ((!p->analysisLoad && !p->analysisSave) || p->analysisReuseLevel < 10)<br>
+ else if ((!p->analysisLoad && !p->analysisSave) || (p->analysisReuseLevel > 6 && p->analysisReuseLevel != 10))<br>
{<br>
- x265_log(p, X265_LOG_WARNING, "Input scaling works with analysis load/save, analysis-reuse-level 10. Disabling scale-factor.\n");<br>
+ x265_log(p, X265_LOG_WARNING, "Input scaling works with analysis load/save and analysis-reuse-level 1-6 and 10. Disabling scale-factor.\n");<br>
p->scaleFactor = 0;<br>
}<br>
}<br>
@@ -2749,9 +2749,9 @@<br>
p->interRefine = 0;<br>
}<br>
}<br>
- if (p->scaleFactor && p->analysisLoad && !p->interRefine && !p->bDynamicRefine)<br>
+ if (p->scaleFactor && p->analysisLoad && !p->interRefine && !p->bDynamicRefine && p->analysisReuseLevel == 10)<br>
{<br>
- x265_log(p, X265_LOG_WARNING, "Inter refinement 0 is not supported with scaling. Enabling refine-inter 1.\n");<br>
+ x265_log(p, X265_LOG_WARNING, "Inter refinement 0 is not supported with scaling and analysis-reuse-level=10. Enabling refine-inter 1.\n");<br>
p->interRefine = 1;<br>
}<br>
<br>
<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>
<br></blockquote></div><br></div><div class="gmail_extra">Pushed.</div></div>