Lines Matching defs:accum
129 // Apply the filter to the row to get the destination pixel in |accum|.
130 int accum[4] = {0};
133 accum[0] += curFilter * rowToFilter[filterX * 4 + 0];
134 accum[1] += curFilter * rowToFilter[filterX * 4 + 1];
135 accum[2] += curFilter * rowToFilter[filterX * 4 + 2];
137 accum[3] += curFilter * rowToFilter[filterX * 4 + 3];
143 accum[0] >>= SkConvolutionFilter1D::kShiftBits;
144 accum[1] >>= SkConvolutionFilter1D::kShiftBits;
145 accum[2] >>= SkConvolutionFilter1D::kShiftBits;
147 accum[3] >>= SkConvolutionFilter1D::kShiftBits;
151 outRow[outX * 4 + 0] = ClampTo8(accum[0]);
152 outRow[outX * 4 + 1] = ClampTo8(accum[1]);
153 outRow[outX * 4 + 2] = ClampTo8(accum[2]);
155 outRow[outX * 4 + 3] = ClampTo8(accum[3]);
208 int accum[4] = {0};
211 accum[0] += curFilter * sourceDataRows[filterY][byteOffset + 0];
212 accum[1] += curFilter * sourceDataRows[filterY][byteOffset + 1];
213 accum[2] += curFilter * sourceDataRows[filterY][byteOffset + 2];
215 accum[3] += curFilter * sourceDataRows[filterY][byteOffset + 3];
221 accum[0] >>= SkConvolutionFilter1D::kShiftBits;
222 accum[1] >>= SkConvolutionFilter1D::kShiftBits;
223 accum[2] >>= SkConvolutionFilter1D::kShiftBits;
225 accum[3] >>= SkConvolutionFilter1D::kShiftBits;
229 outRow[byteOffset + 0] = ClampTo8(accum[0]);
230 outRow[byteOffset + 1] = ClampTo8(accum[1]);
231 outRow[byteOffset + 2] = ClampTo8(accum[2]);
233 unsigned char alpha = ClampTo8(accum[3]);