<div dir="ltr"><div># HG changeset patch</div><div># User Deepthi Nandakumar <<a href="mailto:deepthi@multicorewareinc.com">deepthi@multicorewareinc.com</a>></div><div># Date 1456919771 -19800</div><div># Wed Mar 02 17:26:11 2016 +0530</div><div># Node ID 9cc9920bf82be1b43efd2a3628e28a3a78ab3b2f</div><div># Parent 09897438eb2c4d95ff773ae716b4f211f5d3e1b3</div><div>dpb: cleanup, use param->maxReferences</div><div><br></div><div>diff -r 09897438eb2c -r 9cc9920bf82b source/encoder/dpb.cpp</div><div>--- a/source/encoder/dpb.cpp<span class="" style="white-space:pre"> </span>Wed Mar 02 15:48:15 2016 +0530</div><div>+++ b/source/encoder/dpb.cpp<span class="" style="white-space:pre"> </span>Wed Mar 02 17:26:11 2016 +0530</div><div>@@ -146,8 +146,8 @@</div><div> // Mark pictures in m_piclist as unreferenced if they are not included in RPS</div><div> applyReferencePictureSet(&slice->m_rps, pocCurr);</div><div> </div><div>- slice->m_numRefIdx[0] = X265_MIN(m_maxRefL0, slice->m_rps.numberOfNegativePictures); // Ensuring L0 contains just the -ve POC</div><div>- slice->m_numRefIdx[1] = X265_MIN(m_maxRefL1, slice->m_rps.numberOfPositivePictures);</div><div>+ slice->m_numRefIdx[0] = X265_MIN(newFrame->m_param->maxNumReferences, slice->m_rps.numberOfNegativePictures); // Ensuring L0 contains just the -ve POC</div><div>+ slice->m_numRefIdx[1] = X265_MIN(newFrame->m_param->bBPyramid ? 2 : 1, slice->m_rps.numberOfPositivePictures);</div><div> slice->setRefPicList(m_picList);</div><div> </div><div> X265_CHECK(slice->m_sliceType != B_SLICE || slice->m_numRefIdx[1], "B slice without L1 references (non-fatal)\n");</div><div>diff -r 09897438eb2c -r 9cc9920bf82b source/encoder/dpb.h</div><div>--- a/source/encoder/dpb.h<span class="" style="white-space:pre"> </span>Wed Mar 02 15:48:15 2016 +0530</div><div>+++ b/source/encoder/dpb.h<span class="" style="white-space:pre"> </span>Wed Mar 02 17:26:11 2016 +0530</div><div>@@ -39,8 +39,6 @@</div><div> </div><div> int m_lastIDR;</div><div> int m_pocCRA;</div><div>- int m_maxRefL0;</div><div>- int m_maxRefL1;</div><div> int m_bOpenGOP;</div><div> bool m_bRefreshPending;</div><div> bool m_bTemporalSublayer;</div><div>@@ -54,8 +52,6 @@</div><div> m_pocCRA = 0;</div><div> m_bRefreshPending = false;</div><div> m_frameDataFreeList = NULL;</div><div>- m_maxRefL0 = param->maxNumReferences;</div><div>- m_maxRefL1 = param->bBPyramid ? 2 : 1;</div><div> m_bOpenGOP = param->bOpenGOP;</div><div> m_bTemporalSublayer = !!param->bEnableTemporalSubLayers;</div><div> }</div><div><br></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div>Deepthi Nandakumar<br></div>Engineering Manager, x265<br></div>Multicoreware, Inc<br></div></div>
</div>