Skip to content
Snippets Groups Projects
Commit d3a0b598 authored by Frank Bossen's avatar Frank Bossen
Browse files

Merge branch 'BUG_FIX_TICKET_1512' into 'master'

Fix #1512: locSumAbs derivation

See merge request jvet/VVCSoftware_VTM!2121
parents 58f8c8a9 e4c028e2
No related branches found
No related tags found
No related merge requests found
......@@ -176,11 +176,24 @@ public:
{
sum += abs(pData[2]);
}
else
{
sum += m_histValue;
}
if (posY < m_height - 1)
{
sum += abs(pData[m_width + 1]);
}
else
{
sum += m_histValue;
}
}
else
{
sum += 2 * m_histValue;
}
if (posY < m_height - 1)
{
sum += abs(pData[m_width]);
......@@ -188,6 +201,14 @@ public:
{
sum += abs(pData[m_width << 1]);
}
else
{
sum += m_histValue;
}
}
else
{
sum += m_histValue;
}
return unsigned(std::max<TCoeff>(std::min<TCoeff>(sum - 5 * baseLevel, 31), 0));
}
......
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