Skip to content
Snippets Groups Projects
Commit a4520a9a authored by FANGJUN PU's avatar FANGJUN PU
Browse files

fix#886: Encoder issue with LMCSUpdateCtrl==2.

parent aa418f50
No related branches found
No related tags found
No related merge requests found
...@@ -462,6 +462,13 @@ void EncReshape::preAnalyzerLMCS(Picture *pcPic, const uint32_t signalType, cons ...@@ -462,6 +462,13 @@ void EncReshape::preAnalyzerLMCS(Picture *pcPic, const uint32_t signalType, cons
bool intraAdp = true, interAdp = true; bool intraAdp = true, interAdp = true;
calcSeqStats(pcPic, m_srcSeqStats); calcSeqStats(pcPic, m_srcSeqStats);
bool isFlat = true;
for (int b = 0; b < m_binNum; b++)
{
if (m_srcSeqStats.binVar[b] > 0) { isFlat = false; }
}
if (isFlat) { intraAdp = false; interAdp = false; }
if (m_binNum == PIC_CODE_CW_BINS) if (m_binNum == PIC_CODE_CW_BINS)
{ {
if ((m_srcSeqStats.binHist[0] + m_srcSeqStats.binHist[m_binNum - 1]) > 0.005) { m_exceedSTD = true; } if ((m_srcSeqStats.binHist[0] + m_srcSeqStats.binHist[m_binNum - 1]) > 0.005) { m_exceedSTD = true; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment