[cairo] Question about scale-source-surface-paint test

Carl Worth cworth at cworth.org
Mon Feb 13 06:56:57 PST 2006


On Sun, 12 Feb 2006 13:53:14 +0100, Emmanuel Pacaud wrote:
> 
> Shouldn't edges of image output of this test program be sharp, even
> without a call to cairo_pattern_set_filter ?
> 

Could be. We have known bugs in the filter sampling location for
CAIRO_FILTER_NEAREST, (see test/filter-nearest-offset.c). So I
wouldn't be too surprised to see similar things in the case of
CAIRO_FILTER_BILINEAR, (which is what you are using).

In the test you refer to I was targeting only the behavior of the
scaling itself. A separate test that targets the filtering behavior
might be useful. It will require some careful thinking about how the
bilinear filter should be specified, (we don't have a written
specification of that now, nor I am doing that careful thinking at the
moment).

-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20060213/22f584b6/attachment.pgp


More information about the cairo mailing list