Home | History | Annotate | Download | only in core

Lines Matching refs:accum

130             // Apply the filter to the row to get the destination pixel in |accum|.
131 int accum[4] = {0};
134 accum[0] += curFilter * rowToFilter[filterX * 4 + 0];
135 accum[1] += curFilter * rowToFilter[filterX * 4 + 1];
136 accum[2] += curFilter * rowToFilter[filterX * 4 + 2];
138 accum[3] += curFilter * rowToFilter[filterX * 4 + 3];
144 accum[0] >>= SkConvolutionFilter1D::kShiftBits;
145 accum[1] >>= SkConvolutionFilter1D::kShiftBits;
146 accum[2] >>= SkConvolutionFilter1D::kShiftBits;
148 accum[3] >>= SkConvolutionFilter1D::kShiftBits;
152 outRow[outX * 4 + 0] = ClampTo8(accum[0]);
153 outRow[outX * 4 + 1] = ClampTo8(accum[1]);
154 outRow[outX * 4 + 2] = ClampTo8(accum[2]);
156 outRow[outX * 4 + 3] = ClampTo8(accum[3]);
181 int accum[4] = {0};
184 accum[0] += curFilter * sourceDataRows[filterY][byteOffset + 0];
185 accum[1] += curFilter * sourceDataRows[filterY][byteOffset + 1];
186 accum[2] += curFilter * sourceDataRows[filterY][byteOffset + 2];
188 accum[3] += curFilter * sourceDataRows[filterY][byteOffset + 3];
194 accum[0] >>= SkConvolutionFilter1D::kShiftBits;
195 accum[1] >>= SkConvolutionFilter1D::kShiftBits;
196 accum[2] >>= SkConvolutionFilter1D::kShiftBits;
198 accum[3] >>= SkConvolutionFilter1D::kShiftBits;
202 outRow[byteOffset + 0] = ClampTo8(accum[0]);
203 outRow[byteOffset + 1] = ClampTo8(accum[1]);
204 outRow[byteOffset + 2] = ClampTo8(accum[2]);
206 unsigned char alpha = ClampTo8(accum[3]);