<div dir="ltr"><div># HG changeset patch</div><div># User Mahesh Pittala <<a href="mailto:mahesh@multicorewareinc.com">mahesh@multicorewareinc.com</a>></div><div># Date 1461582611 -19800</div><div># Mon Apr 25 16:40:11 2016 +0530</div><div># Node ID f90f359eb770652e822e3a813c0b9eaf47036122</div><div># Parent 91de20bfe2affa6e225681be129208e654c2ba48</div><div>uhdbd: fix sourceHeight check</div><div><br></div><div>when sourceHeight is 1080, it is padded by some value to become multiple of the</div><div>minimum CU size(for ex- 1088) so just moved down those calculations after uhd-bd.</div><div><br></div><div>diff -r 91de20bfe2af -r f90f359eb770 source/encoder/encoder.cpp</div><div>--- a/source/encoder/encoder.cpp<span class="" style="white-space:pre"> </span>Fri Jun 03 12:02:05 2016 +0530</div><div>+++ b/source/encoder/encoder.cpp<span class="" style="white-space:pre"> </span>Mon Apr 25 16:40:11 2016 +0530</div><div>@@ -1845,16 +1845,6 @@</div><div> m_conformanceWindow.rightOffset = padsize;</div><div> }</div><div> </div><div>- /* set pad size if height is not multiple of the minimum CU size */</div><div>- if (p->sourceHeight & (p->minCUSize - 1))</div><div>- {</div><div>- uint32_t rem = p->sourceHeight & (p->minCUSize - 1);</div><div>- uint32_t padsize = p->minCUSize - rem;</div><div>- p->sourceHeight += padsize;</div><div>-</div><div>- m_conformanceWindow.bEnabled = true;</div><div>- m_conformanceWindow.bottomOffset = padsize;</div><div>- }</div><div> if (p->bEnableRdRefine && (p->rdLevel < 5 || !p->rc.aqMode))</div><div> {</div><div> p->bEnableRdRefine = false;</div><div>@@ -1974,6 +1964,15 @@</div><div> }</div><div> }</div><div> </div><div>+ /* set pad size if height is not multiple of the minimum CU size */</div><div>+ if (p->sourceHeight & (p->minCUSize - 1))</div><div>+ {</div><div>+ uint32_t rem = p->sourceHeight & (p->minCUSize - 1);</div><div>+ uint32_t padsize = p->minCUSize - rem;</div><div>+ p->sourceHeight += padsize;</div><div>+ m_conformanceWindow.bEnabled = true;</div><div>+ m_conformanceWindow.bottomOffset = padsize;</div><div>+ }</div><div> </div><div> if (p->bLogCuStats)</div><div> x265_log(p, X265_LOG_WARNING, "--cu-stats option is now deprecated\n");</div><div><br></div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div>Deepthi Nandakumar<br></div>Engineering Manager, x265<br></div>Multicoreware, Inc<br></div></div>
</div>