<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 1456913081 -19800</div><div># Wed Mar 02 15:34:41 2016 +0530</div><div># Node ID 81a6c44e9e4acfcd64d260914886e0039877c10e</div><div># Parent b043f1d2c2c0e25a67730508b1397378498fa364</div><div>quant: set rdoq level in setQPforQuant, and not init</div><div><br></div><div>diff -r b043f1d2c2c0 -r 81a6c44e9e4a source/common/quant.cpp</div><div>--- a/source/common/quant.cpp<span class="" style="white-space:pre"> </span>Wed Mar 02 15:29:46 2016 +0530</div><div>+++ b/source/common/quant.cpp<span class="" style="white-space:pre"> </span>Wed Mar 02 15:34:41 2016 +0530</div><div>@@ -188,10 +188,9 @@</div><div> m_nr = NULL;</div><div> }</div><div> </div><div>-bool Quant::init(int rdoqLevel, double psyScale, const ScalingList& scalingList, Entropy& entropy)</div><div>+bool Quant::init(double psyScale, const ScalingList& scalingList, Entropy& entropy)</div><div> {</div><div> m_entropyCoder = &entropy;</div><div>- m_rdoqLevel = rdoqLevel;</div><div> m_psyRdoqScale = (int32_t)(psyScale * 256.0);</div><div> X265_CHECK((psyScale * 256.0) < (double)MAX_INT, "psyScale value too large\n");</div><div> m_scalingList = &scalingList;</div><div>@@ -223,6 +222,7 @@</div><div> {</div><div> m_nr = m_frameNr ? &m_frameNr[ctu.m_encData->m_frameEncoderID] : NULL;</div><div> m_qpParam[TEXT_LUMA].setQpParam(qp + QP_BD_OFFSET);</div><div>+ m_rdoqLevel = ctu.m_encData->m_param->rdoqLevel;</div><div> if (ctu.m_chromaFormat != X265_CSP_I400)</div><div> {</div><div> setChromaQP(qp + ctu.m_slice->m_pps->chromaQpOffset[0], TEXT_CHROMA_U, ctu.m_chromaFormat);</div><div>diff -r b043f1d2c2c0 -r 81a6c44e9e4a source/common/quant.h</div><div>--- a/source/common/quant.h<span class="" style="white-space:pre"> </span>Wed Mar 02 15:29:46 2016 +0530</div><div>+++ b/source/common/quant.h<span class="" style="white-space:pre"> </span>Wed Mar 02 15:34:41 2016 +0530</div><div>@@ -100,7 +100,7 @@</div><div> ~Quant();</div><div> </div><div> /* one-time setup */</div><div>- bool init(int rdoqLevel, double psyScale, const ScalingList& scalingList, Entropy& entropy);</div><div>+ bool init(double psyScale, const ScalingList& scalingList, Entropy& entropy);</div><div> bool allocNoiseReduction(const x265_param& param);</div><div> </div><div> /* CU setup */</div><div>diff -r b043f1d2c2c0 -r 81a6c44e9e4a source/encoder/search.cpp</div><div>--- a/source/encoder/search.cpp<span class="" style="white-space:pre"> </span>Wed Mar 02 15:29:46 2016 +0530</div><div>+++ b/source/encoder/search.cpp<span class="" style="white-space:pre"> </span>Wed Mar 02 15:34:41 2016 +0530</div><div>@@ -79,7 +79,7 @@</div><div> m_rdCost.setPsyRdScale(param.psyRd);</div><div> m_me.init(param.searchMethod, param.subpelRefine, param.internalCsp);</div><div> </div><div>- bool ok = m_quant.init(param.rdoqLevel, param.psyRdoq, scalingList, m_entropyCoder);</div><div>+ bool ok = m_quant.init(param.psyRdoq, scalingList, m_entropyCoder);</div><div> if (m_param->noiseReductionIntra || m_param->noiseReductionInter || m_param->rc.vbvBufferSize)</div><div> ok &= m_quant.allocNoiseReduction(param);</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>