|
From: | Alexei Podtelezhnikov |
Subject: | Re: [ft-devel] SetLcdFilter docs |
Date: | Tue, 19 Jan 2016 10:55:34 -0500 |
> "...the filter adds up to 3 pixels to the left, and up to 3 pixels to
> the right."
This is not a `padding' per se, but a necessity to make the color
filter work. The bytes are added around line 190 in file
`smooth/ftsmooth.c'.
where extra = 2 for FIR filters. So we add 3 *subpixels* on each side plus rounding. So on one hand, the docs say something different. On the other hand, the filter actually needs just 2 extra *subpixels* on each side.Brrrrr, something is not right.width += 3 * extra;
pitch = FT_PAD_CEIL( width, 4 );
[Prev in Thread] | Current Thread | [Next in Thread] |