[cairo] broken pixman bilinear filtering?

Bertram Felgenhauer bertram.felgenhauer at googlemail.com
Mon Feb 13 03:28:07 PST 2006


Vladimir Vukicevic wrote:
> The attached test produces a png like the attached output; the first
> square is the 3x3 image scaled up 20x with bilinear filtering, and the
> second is the image scaled up with nearest neighbour.  It looks like
> for bilinear the center of the coverage region for the pixel at source
> 0,0 is placed at 0,0 in the destination, when instead it should be
> offset by half the size of the destination area covered by a single
> pixel.
> 
> I don't dare delve into pixman myself to look into this, I don't think :)

the patch at https://bugs.freedesktop.org/show_bug.cgi?id=2488 should
fix that. (the attached picture was created using it)

regards,

Bertram
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image-filter.png
Type: image/png
Size: 12237 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20060213/8b763380/image-filter.png


More information about the cairo mailing list