summaryrefslogtreecommitdiff
path: root/xps
AgeCommit message (Collapse)Author
2011-09-21Rename malloc functions for arrays (fz_calloc and fz_realloc).Tor Andersson
2011-09-21Don't thread ctx through safe fz_obj functions.Tor Andersson
2011-09-15Add context to mupdf.Robin Watts
Huge pervasive change to lots of files, adding a context for exception handling and allocation. In time we'll move more statics into there. Also fix some for(i = 0; i < function(...); i++) calls.
2011-09-14Initial import of exception handling codeRobin Watts
Import exception handling code from WSS, modified to fit into the fitz world. With this code we have 'real' fz_try/fz_catch/fz_rethrow functions, handling a fz_except type. We therefore rename the existing fz_throw/ fz_catch/fz_rethrow to be fz_error_make/fz_error_handle/fz_error_note. We don't actually use fz_try/fz_catch/fz_rethrow yet...
2011-09-06Don't invoke tiling device calls when there is only one tile to be drawn.Tor Andersson
2011-08-09Fix bug 692284: return error for empty resource dictionaries.Tor Andersson
2011-08-09Fix bug 692412: typo in buffer size.Tor Andersson
2011-07-08Clip area optimisations for displaylist case:Robin Watts
First, we add clipping rects to clipping functions. Various functions (the ones that handle clipping) are now additionally passed a rectangle that represents an additional bound for this clip in device space (i.e. it has already been mapped through the current ctm). Next, when constructing the displaylist, keep track of the bounding box for the contents of each clip. While writing the list, on every node we add, we add the bbox for that node to the enclosing clips content bbox (if there is an enclosing clip). When we pop a clip, write back to the corresponding push to update the bbox. This means if we get large clip regions, with only small areas used within them, we will only do the slow blending for those small areas. Finally, we fix a calculation in fz_bound_path which was incorrectly accounting for mitrelimits. This was showing up in testing on page 630 of the PDF reference v1.7.
2011-05-31Use fz_atof in XPS interpreter.Tor Andersson
2011-04-12Avoid conflict with compiler builtin definitions of tolower.Tor Andersson
2011-04-11Add triangle caps; separate start, dash and end cap styles for XPS.Tor Andersson
2011-04-10xps: Use specific font cache struct instead of hash table.Tor Andersson
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-08Various patches from SumatraPDF.Tor Andersson
2011-04-08Remove inline keyword where it is not strictly necessary for performance.Tor Andersson
Also put the function on the same line for inline functions, so they stick out and are easy to find with grep.
2011-04-07Use fz_stream instead of FILE* to open XPS files.Tor Andersson
2011-04-05Add wrapper functions around device calls.Tor Andersson
They test for NULL and make the code look nicer.
2011-04-05Clean up xps and pdf page access functions.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-04xps: Send a bigger view rect for X/Y flipped tiles.Tor Andersson
2011-04-04Add device interface functions to draw tiled patterns.Tor Andersson
2011-04-04Change how files are opened with fz_openfd/file/filew.Tor Andersson
2011-04-04xps: Always use floats for floating point math.Tor Andersson
2011-04-03xps: Plug memory leaks.Tor Andersson
2011-04-03Merge branch 'xps'Tor Andersson
2011-04-03xps: Fix bugs uncovered by QualityLogicMinBar tests.Tor Andersson
2011-04-03xps: Propagate bounding box through canvas and tiles.Tor Andersson
2011-04-03xps: Fix some issues with the XML parser.Tor Andersson
The new XML parser doesn't strip namespace prefixes, so we need to look for "x:Key" rather than just "Key". Also increase the max tag name length to avoid truncating tag names like "LinearGradientBrush.GradientStops".
2011-04-03xps: Use fz_pixmap directly instead of wrapping it in xps_image.Tor Andersson
2011-04-03xps: Remove xps_context from hash table implementation.Tor Andersson
2011-04-03xps: Rearrange files, part three.Tor Andersson
2011-04-03xps: Rearrange files, part two.Tor Andersson
2011-04-03xps: Rearrange files, part one.Tor Andersson
2011-04-03xps: Remove dependency on expat.Tor Andersson
2011-04-01xps: Fix trivial bug.Tor Andersson
2011-04-01apps: Add XPS support to mupdf viewer.Tor Andersson
2011-04-01Use a function pointer for resolveindirect.Tor Andersson
This removes a static dependency between fitz and mupdf. Fitz should now be link time independent of mupdf again.
2011-04-01xps: Pass bounding box to opacity mask brush.Tor Andersson
2011-04-01xps: Remove 'path' and 'text' state objects from context.Tor Andersson
2011-04-01xps: Repeat enough tiles to cover the shape being filled.Tor Andersson
2011-04-01xps: Use Opacity attribute for setting constant alpha.Tor Andersson
2011-04-01xps: Use opacity masks, and draw gradients with opacity.Tor Andersson
2011-04-01xps: Respect PathGeometry.Transform attribute.Tor Andersson
2011-04-01xps: fix clip/popclip nestingTor Andersson
2011-04-01xps: Remove dependency on libpng.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: Draw linear and radial gradients (no pad/repeat/reflect).Tor Andersson
2011-03-31xps: Clean up image loading code, and handle images with alpha.Tor Andersson