[cairo] Downsampling interpolation

Bryce W. Harrington b.harrington at samsung.com
Thu Aug 8 17:19:10 PDT 2013


On Tue, Aug 06, 2013 at 10:01:39AM -0400, Hunter Loftis wrote:
> Hi everyone - new to cairo, just browsed through a bunch of old discussions and commits to learn about the < 0.5 downsampling issue (cairo always linearly interpolates between two values, so at < 0.5 results look terrible).
> 
> Is there any path to a solution within cairo, or would that be terribly complex? My alternative is to repeatedly downsample at 0.5 until the ratio is > 0.5 in order to hit my downsample target. Obviously pretty kludgy but it'd get the job done.
> 

Did you look at the downscaling patch that was posted about a month ago?
I believe it's still on the docket to go in after the next release.

If you'd like, I can stick it into a git tree for you.  I've been
working on some tests to go along with it.

Bryce


More information about the cairo mailing list