[Poppler-bugs] [Bug 68360] Add option to manually disable bilinear filtering

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Aug 28 17:53:32 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=68360

--- Comment #22 from Charles Hyder <dr.hyder at gmail.com> ---
Confirmed: Splash::scaleImageYuXu (scaling image up) does not use pixel mixing,
it uses nearest neighbor. Unbelievable! Netpbm has been around for ages. You
didn't have to reinvent the wheel, you could have just copied the code.

Here's the plan:

1) introduce pixel mixing into Splash::scaleImageYuXu, and also into
scaleImageYdXu & scaleImageYuXd -- any "u" (upsampling) function.

2) reduce

if (!tilingPattern && isImageInterpolationRequired(srcWidth, srcHeight,
scaledWidth, scaledHeight, interpolate))
   scaleImageYuXuBilinear(...);

to 

if (!tilingPattern && interpolate)
   scaleImageYuXuBilinear(...);

that is, interpolate if and only if the "interpolate" flag is set.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20130829/6723d074/attachment.html>


More information about the Poppler-bugs mailing list