freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] Fast bisecting BBox_Cubic_Check


From: Alexei Podtelezhnikov
Subject: Re: [ft-devel] Fast bisecting BBox_Cubic_Check
Date: Mon, 25 Feb 2013 11:46:18 -0500


> Why would you compare with theoretical results when your rasterizer
> uses discrete and less accurate bisections?  Shouldn't you compare
> with the rendering results?  One way or the other 3/64 of a pixel is
> really small difference.

Well, your results differ from the original ones.  I don't know
whether it differs to the better or to the worse (and, admittedly, I
don't know how good the bboxes computed with the original FreeType
code actually are).  This is my only concern.
 
Ok. I'll work on this. I'll do upscaling/downscaling to get rid of rounding errors.

Given that bboxes are of really great importance, and that even
smallest rounding errors (to integers) can cause clipping, a
comparison to high-precision results is probably good, regardless of
the old or new code.
 
Hey, if clipping is a concern, the new code can be easily modified to round up the max values and round down the min values. That should guarantee no clipping, but the bounding box might be up to 3/64 of a pixel away.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]