<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 28, 2018 at 11:55 AM, Chunli Zhang <span dir="ltr"><<a href="mailto:chunli@multicorewareinc.com" target="_blank">chunli@multicorewareinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div># HG changeset patch</div><div># User Chunli Zhang</div><div># Date 1528964852 -28800</div><div># Thu Jun 14 16:27:32 2018 +0800</div><div># Node ID 8b8334561e990554226ac439e03cf4<wbr>b8ab3c6008</div><div># Parent a8a5ccf5aaf7e04e439a216e5c3969<wbr>91c6b76999</div><div>Support luma values automatically changed by the commandline parameter "--min-luma" and "--max-luma".</div><div><br></div><div>diff -r a8a5ccf5aaf7 -r 8b8334561e99 source/common/param.cpp</div><div>--- a/source/common/param.cpp<span style="white-space:pre-wrap"> </span>Wed Jun 13 09:54:27 2018 +0530</div><div>+++ b/source/common/param.cpp<span style="white-space:pre-wrap"> </span>Thu Jun 14 16:27:32 2018 +0800</div><div>@@ -1405,6 +1405,8 @@</div><div> "Invalid refine-intra value, refine-intra levels 0 to 3 supported");</div><div> CHECK(param->maxAUSizeFactor < 0.5 || param->maxAUSizeFactor > 1.0,</div><div> "Supported factor for controlling max AU size is from 0.5 to 1");</div><div>+ CHECK(param->minLuma < 0 || param->maxLuma > PIXEL_MAX,</div><div>+ "Supported minLuma or maxLuma is from 0 to ((1 << X265_DEPTH) - 1)");</div><div> #if !X86_64</div><div> CHECK(param->searchMethod == X265_SEA && (param->sourceWidth > 840 || param->sourceHeight > 480),</div><div> "SEA motion search does not support resolutions greater than 480p in 32 bit build");</div><div>diff -r a8a5ccf5aaf7 -r 8b8334561e99 source/common/picyuv.cpp</div><div>--- a/source/common/picyuv.cpp<span style="white-space:pre-wrap"> </span>Wed Jun 13 09:54:27 2018 +0530</div><div>+++ b/source/common/picyuv.cpp<span style="white-space:pre-wrap"> </span>Thu Jun 14 16:27:32 2018 +0800</div><div>@@ -358,6 +358,19 @@</div><div> pixel *uPic = m_picOrg[1];</div><div> pixel *vPic = m_picOrg[2];</div><div> </div><div>+ if(param.minLuma != 0 || param.maxLuma != PIXEL_MAX)</div><div>+ {</div><div>+ for (int r = 0; r < height; r++)</div><div>+ {</div><div>+ for (int c = 0; c < width; c++)</div><div>+ {</div><div>+ yPic[c] = X265_MIN(yPic[c], (pixel)param.maxLuma);</div><div>+ yPic[c] = X265_MAX(yPic[c], (pixel)param.minLuma);</div><div>+ }</div><div>+ yPic += m_stride;</div><div>+ }</div><div>+ }</div><div>+ yPic = m_picOrg[0];</div><div> if (param.csvLogLevel >= 2 || param.maxCLL || param.maxFALL)</div><div> {</div><div> for (int r = 0; r < height; r++)</div><div><br></div></div>
<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>