Lines Matching full:fir
438 // An N tap FIR is defined by
443 // The strategy is to use one FIR (different coefficients) for each of r, g, and b.
444 // This means using every 4th FIR output value of each FIR and discarding the rest.
471 // TODO: this fir filter implementation is straight forward, but slow.
474 int fir[LCD_PER_PIXEL] = { 0 };
481 fir[subpxl_index] += coefficients[subpxl_index][coeff_index] * sample_value;
485 fir[subpxl_index] /= 0x100;
486 fir[subpxl_index] = SkMin32(fir[subpxl_index], 255);
489 U8CPU r = sk_apply_lut_if<APPLY_PREBLEND>(fir[0], maskPreBlend.fR);
490 U8CPU g = sk_apply_lut_if<APPLY_PREBLEND>(fir[1], maskPreBlend.fG);
491 U8CPU b = sk_apply_lut_if<APPLY_PREBLEND>(fir[2], maskPreBlend.fB);
515 // TODO: need to use fir filter here as well.