Skip to content
Snippets Groups Projects
Commit b829fd4f authored by Karsten Suehring's avatar Karsten Suehring
Browse files

Merge branch 'fix886' into 'master'

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

See merge request jvet/VVCSoftware_VTM!1394
parents aa418f50 a4520a9a
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