summaryrefslogtreecommitdiff
path: root/source/fitz
AgeCommit message (Collapse)Author
2016-12-19SVG output: Fix dropped group alpha.Robin Watts
2016-12-16Fix memory leaks on errors in text searching utility functions.Tor Andersson
2016-12-14Have callers of fz_new_image_from_pixmap() drop supplied mask.Sebastian Rasmussen
This makes handling of the mask identical to that of the pixmap argument.
2016-12-14jpx: Delay determining if colorspace is indexed.Sebastian Rasmussen
2016-12-14jpx: Quietly limit number of components for openjpeg decoder.Sebastian Rasmussen
2016-12-14jpx: Create openjpeg decoder state.Sebastian Rasmussen
This allows for communicating the colorspace without using a pixmap.
2016-12-14jpx: Only do YCC-to-RGB conversion if decoding image samples.Sebastian Rasmussen
2016-12-14jpx: Optimize sample writing function.Sebastian Rasmussen
2016-12-14jpx: Delay reading metadata until parsing samples where possible.Sebastian Rasmussen
2016-12-14jpx: Only compute signed offsets once.Sebastian Rasmussen
2016-12-14jpx: Use local variables instead of repeatedly dereferencing state.Sebastian Rasmussen
2016-12-14jpx: Share YCC-to-RGB conversion for luratech/openjpeg decoders.Sebastian Rasmussen
2016-12-14jpx: Move state which is not shared among functions to decoder stack.Sebastian Rasmussen
In the case of fz_context *, use that for the allocator callbacks.
2016-12-14jpx: Use macro to check for palette.Sebastian Rasmussen
2016-12-14jpx: Max components is known, so avoid allocating arrays.Sebastian Rasmussen
2016-12-14jpx: Use fz_context directly, don't wrap it in state.Sebastian Rasmussen
2016-12-14jpx: Reuse structs for luratech/openjpeg decoders.Sebastian Rasmussen
2016-12-14jpx: Remove unused struct.Sebastian Rasmussen
2016-12-14jpx: Plug pixmap leak in case of error during decoding.Sebastian Rasmussen
2016-12-14Let pixmap colorspace conversion create new pixmap.Sebastian Rasmussen
This moves dropping the converted pixmap into fz_convert_pixmap(), which relieves every caller from doing so. Moreover resolution, position and interpolation are kept.
2016-12-14Create a pixmap color converter.Sebastian Rasmussen
This is in preparation for moving fz_convert_pixmap() out of colorspace.c.
2016-12-14Always create colorless pixmaps with alpha.Sebastian Rasmussen
2016-12-14Plug pixmap leak when fz_convert_pixmap() throws.Sebastian Rasmussen
2016-12-12Add fz_remove to cope with utf-8 file names on windows.Tor Andersson
2016-12-12Ensure we don't clobber files in fz_new_output_with_path.Tor Andersson
When saving a PDF to the same file name as the one that is open, we risk clobbering it by truncating the source file. Remove the old file first! Removing an open file will not work on windows, but there we will throw an EACCESS error rather than clobber the file!
2016-11-23Add ptrdiff_t formatting support to fz_vsnprintf().Sebastian Rasmussen
2016-11-23fz_vsnprintf() can simply use bitwidth of given types.Sebastian Rasmussen
2016-11-23jxr: Plug pixmap leak upon error converting CMYK image to RGB.Sebastian Rasmussen
2016-11-23Add toggle to enable/disable document styles.Tor Andersson
2016-11-23Update UCDN database to Unicode 9.0.0.Sebastian Rasmussen
2016-11-22Fix fz_warn() format compiler warning.Sebastian Rasmussen
2016-11-16Bug 697301: Fix "crash" in epub.Robin Watts
Actually an assert. This is caused by a paragraph separator in the text. The Unicode Bidirectional Algorithm says we should operate paragraph by paragraph, and includes code to split paragraphs at paragraph markers, changing their type to boundary neutrals as it goes. The use of this code was left "as an exercise for the reader" in the example code, so we simply hook it up here.
2016-11-16Fix warning.Tor Andersson
2016-11-15Fix compiler warning.Robin Watts
's' is char * and unsigned char * is expected.
2016-11-14pdf: Use URI dictionary for relative URIs.Tor Andersson
2016-11-14More API tweaks.Robin Watts
Move internal functions from public to private headers.
2016-11-14Make fz_buffer structure private to fitz.Robin Watts
Move the definition of the structure contents into new fitz-imp.h file. Make all code outside of fitz access the buffer through the defined API. Add a convenience API for people that want to get buffers as null terminated C strings.
2016-11-14Workaround 0 line-width strokes in svg output.Robin Watts
A line width of 0 has special meaning in PDF files. SVGs don't understand it, so modify our SVG output device to send all line widths smaller than 1 as being 1.
2016-11-14Add/fix page coordinates to link targets.Tor Andersson
Correctly transformed target coordinates for PDF. Target coordinates for EPUB and HTML.
2016-11-11API improvements.Robin Watts
Add missing API comments. Move private definitions to implementation headers or C files. Move internal functions to implementation headers.
2016-11-10Add minimum line width configuration option.Robin Watts
2016-11-08Clean up braces and indentation in fz_paint_affine_near/lerp.Tor Andersson
2016-11-07Move fz_new_draw_device_with_options within file.Robin Watts
Move function definition to the bottom of the file. This keeps the debug/config #definery at the top of the file where it belongs.
2016-11-07Bug 697241: Fix blending through clips.Robin Watts
Non rectangular clips are currently handled by rendering to a 'isolated' background, and then plotting that through a mask. This runs into problems when the rendering needs to use non standard blend modes that need to access the background colors. Instead, copy the background to the new pixmap, render to that then plot that through the mask. This simplifies the painting code, because we now never have mismatched source and destination alphas.
2016-11-07Fix DUMP_GROUP_BLENDS debugging code.Robin Watts
fz_save_pixmap_as_png has changed signature since this was last used.
2016-11-05Fix Memento bug.Robin Watts
while (i >= 0) { ... i -= 4; } doesn't work well when i is unsigned.
2016-11-04Avoid warning in memento builds.Robin Watts
2016-11-04Avoid warnings in 64bit windows builds of luratech bindings.Robin Watts
2016-11-04Squash 64bit warning in Commercial JBIG2 bindings.Robin Watts
2016-11-03Memento: Silence MSVC warningsRobin Watts
For security and x64 builds.