[poppler] Image optimization
Jeff Muizelaar
jeff at infidigm.net
Sat May 21 15:39:55 PDT 2005
On Sat, May 21, 2005 at 06:13:31PM -0400, Kristian H?gsberg wrote:
> On Thu, 2005-05-19 at 22:47 +0200, Albert Astals Cid wrote:
> > Georgeous, can this be applied to the splash outputdev too?
>
> Not easily. The splash image rendering code is structured quite
> differently from the cairo image rendering code. As with most other
> code in xpdf, the splash image rendering code is written in a streaming
> fashion, in that it renders the image by reading one pixel at a time and
> composites that onto the target buffer. The idea is, I assume, that it
> doesn't have to load the entire image in memory to render it
> (Splash::drawImage() in splash/Splash.cc is an interesting read -
> scaling and rotating an image directly from disk to target buffer).
This does have the advantage of not requiring enourmous amount of memory
when the images in the pdf are huge. I don't suppose there is an easy
way to solve this problem when using cairo??
-Jeff
More information about the poppler
mailing list