Lines Matching refs:fir
32 /* FIR filter used by the default and light filters */
43 /* horizontal in-place FIR filter */
49 /* `fir' and `pix' must be at least 32 bit wide, since the sum of */
54 FT_UInt fir[4]; /* below, `pix' is used as the 5th element */
59 fir[0] = weights[2] * val1;
60 fir[1] = weights[3] * val1;
61 fir[2] = weights[4] * val1;
62 fir[3] = 0;
65 fir[0] += weights[1] * val1;
66 fir[1] += weights[2] * val1;
67 fir[2] += weights[3] * val1;
68 fir[3] += weights[4] * val1;
76 pix = fir[0] + weights[0] * val;
77 fir[0] = fir[1] + weights[1] * val;
78 fir[1] = fir[2] + weights[2] * val;
79 fir[2] = fir[3] + weights[3] * val;
80 fir[3] = weights[4] * val;
91 pix = fir[0] >> 8;
95 pix = fir[1] >> 8;
102 /* vertical in-place FIR filter */
112 FT_UInt fir[4]; /* below, `pix' is used as the 5th element */
117 fir[0] = weights[2] * val1;
118 fir[1] = weights[3] * val1;
119 fir[2] = weights[4] * val1;
120 fir[3] = 0;
124 fir[0] += weights[1] * val1;
125 fir[1] += weights[2] * val1;
126 fir[2] += weights[3] * val1;
127 fir[3] += weights[4] * val1;
136 pix = fir[0] + weights[0] * val;
137 fir[0] = fir[1] + weights[1] * val;
138 fir[1] = fir[2] + weights[2] * val;
139 fir[2] = fir[3] + weights[3] * val;
140 fir[3] = weights[4] * val;
152 pix = fir[0] >> 8;
156 pix = fir[1] >> 8;