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