Commit a13cea55 authored by Nan Hu's avatar Nan Hu

Define a variable skipThisRow to control skip

parent 5ccf011a
......@@ -4015,7 +4015,8 @@ void EncAdaptiveLoopFilter::getBlkStatsCcAlf(AlfCovariance &alfCovariance, const
{
int vbDistance = ((i << getComponentScaleY(compID, m_chromaFormat)) % vbCTUHeight) - vbPos;
#if JVET_R0233_CCALF_LINE_BUFFER_REDUCTION
for (int j = 0; j < compArea.width && (!((getComponentScaleY(compID, m_chromaFormat) == 0) && (vbDistance == 0 || vbDistance == 1))); j++)
const bool skipThisRow = getComponentScaleY(compID, m_chromaFormat) == 0 && (vbDistance == 0 || vbDistance == 1);
for (int j = 0; j < compArea.width && (!skipThisRow); j++)
#else
for (int j = 0; j < compArea.width; j++)
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment