Home | History | Annotate | Download | only in core

Lines Matching defs:fir

263     // An N tap FIR is defined by
268 // The strategy is to use one FIR (different coefficients) for each of r, g, and b.
269 // This means using every 4th FIR output value of each FIR and discarding the rest.
296 // TODO: this fir filter implementation is straight forward, but slow.
299 int fir[LCD_PER_PIXEL] = { 0 };
306 fir[subpxl_index] += coefficients[subpxl_index][coeff_index] * sample_value;
310 fir[subpxl_index] /= 0x100;
311 fir[subpxl_index] = SkMin32(fir[subpxl_index], 255);
314 U8CPU r = sk_apply_lut_if<APPLY_PREBLEND>(fir[0], maskPreBlend.fR);
315 U8CPU g = sk_apply_lut_if<APPLY_PREBLEND>(fir[1], maskPreBlend.fG);
316 U8CPU b = sk_apply_lut_if<APPLY_PREBLEND>(fir[2], maskPreBlend.fB);