[Pixman] Supersampling - 2nd attempt

Krzysztof Kosiński tweenk.pl at gmail.com
Thu Aug 12 14:58:59 PDT 2010


This is the second attempt at bitmap supersampling in Pixman.

1. There is a new fast path flag called FAST_PATH_NO_SUPERSAMPLING
2. No divisions in inner loops, but this causes a proliferation of
variables. Note: using float or double for transformation matrices
would both simplify code and fix the problems encountered by Inkscape
when zooming into a bitmap.
3. Automatic sampling rate: by default, when the filter is better than
nearest neighbor, the image's sampling rate is automatically adjusted
to match the transform. This can be turned off by explicitly setting a
sampling rate using pixman_image_set_sampling_rate. This way the
quality of downscaling is vastly improved without the need for any
further changes to Cairo.

Regards, Krzysztof
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pixman-supersampling-v2.patch
Type: text/x-patch
Size: 15357 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/pixman/attachments/20100812/24f2c6f5/attachment.bin>

More information about the Pixman mailing list