summaryrefslogtreecommitdiff
path: root/fitz/res_pixmap.c
AgeCommit message (Collapse)Author
2011-07-13Non-isolated group support, and fix Bug 692336.Robin Watts
Firstly, this takes on some of Zenikos patch to correct the clip stack handling that was broken by the fix to bug 692287 (in commit 2c3bbbf). This bug should now be solved. We add a new 'shape' field to the draw device structure (and clip stack). When we are inside non-isolated groups, this is set to be a pixmap where we accumulate the 'shape' of the objects drawn. When we come to blend back, if we are blending a non-isolated group back, we have to use a different blending function that takes account of the shape. Various internal groups (the page group, and groups used to force blending) are set to be isolated to avoid carrying shape planes around when this is not required. All our rendering code now has to know how to maintain the shape plane as well as doing the basic rendering.
2011-06-01Fix android build; bug 692222.Robin Watts
Bring the MuPDF android build up to date with the latest source changes. Many thanks to Dominic Battre for his helpful report in bug 692222.
2011-04-08Add soft limit to pixmap allocation.Tor Andersson
All image loading functions call the new fz_new_pixmap_with_limit allocation function, which will return NULL if the total amount of pixmap memory would exceed a set limit. Other vital pixmap allocations which are not as easily recoverable (such as font rendering, and the various buffers in the draw device) ignore the limit.
2011-04-08Simplify arguments to fz_new_pixmap.Tor Andersson
2011-04-04Le Roi est mort, vive le Roi!Tor Andersson
The run-together words are dead! Long live the underscores! The postscript inspired naming convention of using all run-together words has served us well, but it is now time for more readable code. In this commit I have also added the sed script, rename.sed, that I used to convert the source. Use it on your patches and application code.
2011-04-04xps: Convert CMYK with alpha to RGB early to avoid premul alpha headaches.Tor Andersson
2011-04-03xps: Use fz_pixmap directly instead of wrapping it in xps_image.Tor Andersson
2011-03-31xps: Fix bugs in TIFF reader.Tor Andersson
WhiteIsBlack was flipped for fax images. re-multiplying alpha with CMYK images needs special care because of subtractive colors.
2011-03-31xps: Clean up image loading code, and handle images with alpha.Tor Andersson
2011-02-08Only interpolate upscaled images when the interpolate flag is set in the ↵Tor Andersson
image dictionary.
2011-02-03Use calloc to allocate pixmap data. Limit size of PDF images to 65k x 65k.Tor Andersson
2011-01-06Remove unused functions.Sebastian Rasmussen
2010-12-30Adhere to nil idiom.Sebastian Rasmussen
2010-11-28Support luminosity softmask background colors.Tor Andersson
2010-11-16Add a function fz_newpixmapwithdata that lets clients create pixmaps with a ↵Tor Andersson
custom backing store.
2010-08-12Remove pdf_image struct -- load images directly into fz_pixmaps instead.Tor Andersson
2010-07-17Support SMasks for general graphics (incomplete).Tor Andersson
2010-07-16Clarify function names for opening a PDF file.Tor Andersson
2010-07-15Refactored xref opening functions, command line tools, and rewrote pdfdraw ↵Tor Andersson
to be more illustrative.
2010-07-15Implement correct blend mode functions and blending.Tor Andersson
2010-07-15Add pixmap writing functions for PNM, PAM and PNG (without libpng) formats.Tor Andersson
2010-07-14Adapt debug pixmap saving to new alpha component order in pixmap samples.Sebastian Rasmussen
2010-06-19Floats everywhere!Tor Andersson
2010-04-11Rename fz_irect to fz_bbox.Tor Andersson
2010-04-08Move fz_pixmap from draw directory to fitz.Tor Andersson