<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><DIV>>@@ -640,26 +621,9 @@<BR>> width >>= m_hChromaShift;<BR>> height >>= m_vChromaShift;<BR>> <BR>>- for (y = height - 1; y >= 0; y--)<BR>>- {<BR>>- for (x = width - 1; x >= 0; )<BR>>- {<BR>>- // note: chroma min width is 2<BR>>- dstU[x] = ClipC((srcU0[x] + srcU1[x] + offset) >> shiftNum);<BR>>- dstV[x] = ClipC((srcV0[x] + srcV1[x] + offset) >> shiftNum);<BR>>- x--;<BR>>- dstU[x] = ClipC((srcU0[x] + srcU1[x] + offset) >> shiftNum);<BR>>- dstV[x] = ClipC((srcV0[x] + srcV1[x] + offset) >> shiftNum);<BR>>- x--;<BR>>- }<BR>>-<BR>>- srcU0 += src0Stride;<BR>>- srcU1 += src1Stride;<BR>>- srcV0 += src0Stride;<BR>>- srcV1 += src1Stride;<BR>>- dstU += dststride;<BR>>- dstV += dststride;<BR>>- }<BR>>+ int part = partitionFromSizes(width, height);<BR>you use Chroma size to get index, I think is error.</DIV>
<DIV> </DIV>
<DIV>>+ primitives.chroma_addAvg[part](dstU, dststride, srcU0, src0Stride, srcU1, src1Stride);<BR>>+ primitives.chroma_addAvg[part](dstV, dststride, srcV0, src0Stride, srcV1, src1Stride);<BR>> }<BR>> }<BR></DIV></div>