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