Lines Matching refs:accum
144 // Apply the filter to the row to get the destination pixel in |accum|.
145 int accum[4] = {0};
148 accum[0] += cur_filter * row_to_filter[filter_x * 4 + 0];
149 accum[1] += cur_filter * row_to_filter[filter_x * 4 + 1];
150 accum[2] += cur_filter * row_to_filter[filter_x * 4 + 2];
152 accum[3] += cur_filter * row_to_filter[filter_x * 4 + 3];
157 accum[0] >>= ConvolutionFilter1D::kShiftBits;
158 accum[1] >>= ConvolutionFilter1D::kShiftBits;
159 accum[2] >>= ConvolutionFilter1D::kShiftBits;
161 accum[3] >>= ConvolutionFilter1D::kShiftBits;
164 out_row[out_x * 4 + 0] = ClampTo8(accum[0]);
165 out_row[out_x * 4 + 1] = ClampTo8(accum[1]);
166 out_row[out_x * 4 + 2] = ClampTo8(accum[2]);
168 out_row[out_x * 4 + 3] = ClampTo8(accum[3]);
192 int accum[4] = {0};
195 accum[0] += cur_filter * source_data_rows[filter_y][byte_offset + 0];
196 accum[1] += cur_filter * source_data_rows[filter_y][byte_offset + 1];
197 accum[2] += cur_filter * source_data_rows[filter_y][byte_offset + 2];
199 accum[3] += cur_filter * source_data_rows[filter_y][byte_offset + 3];
204 accum[0] >>= ConvolutionFilter1D::kShiftBits;
205 accum[1] >>= ConvolutionFilter1D::kShiftBits;
206 accum[2] >>= ConvolutionFilter1D::kShiftBits;
208 accum[3] >>= ConvolutionFilter1D::kShiftBits;
211 out_row[byte_offset + 0] = ClampTo8(accum[0]);
212 out_row[byte_offset + 1] = ClampTo8(accum[1]);
213 out_row[byte_offset + 2] = ClampTo8(accum[2]);
215 unsigned char alpha = ClampTo8(accum[3]);