summaryrefslogtreecommitdiff
path: root/source/fitz
AgeCommit message (Collapse)Author
2017-01-20Add system fallback font callback.Tor Andersson
2017-01-20Add separate TOFU_NOTO define to skip Noto fonts (but not Charis SIL).Tor Andersson
2017-01-17Fix typos.Sebastian Rasmussen
2017-01-17Fix 697476: Rename header files.Tor Andersson
Xcode has an idiotic default configuration where it gets confused by include search paths and file names in projects, so that it will load our "mupdf/fitz/math.h" instead of the system <math.h>. Work around this by renaming header files that have the same base name as a system header (even though they live in a subdirectory, and should never be available directly on the compiler's include path).
2017-01-17Remove preprocessor defines from vcproj.Tor Andersson
Keeping them up to date is difficult and prone to errors, so we move setting the USE_OUTPUT_DEBUG_STRING and FZ_LARGEFILE flags to the source instead of relying on project file definitions.
2017-01-17Don't throw from libjpeg callbacks!Tor Andersson
2017-01-17pdf: Rename FZ_ERROR_OOM to FZ_ERROR_MEMORY.Tor Andersson
2017-01-17Add value destructor callback to fz_hash_table.Tor Andersson
This allows us to prune the iteration functions. We also remove a few other unused functions.
2017-01-09Be consistent in use of DEBUG/NDEBUG macros.Tor Andersson
Only use NDEBUG as it's the one that most environments already set, so is likely to lead to the least amount of confusion if compiling with a custom build system.
2017-01-09Make fz_parse_xml take a fz_buffer. Make xps_part contain a fz_buffer.Tor Andersson
2017-01-09Fix potential buffer overrun when decoding UTF-16 in XML parser.Tor Andersson
2017-01-09Add fz_terminate_buffer function.Tor Andersson
Non-destructively zero terminate a fz_buffer for use as a C string.
2017-01-09Bug 697466: Fix banded PKM/PBM output.Robin Watts
When I regularised the band writing interface, I broke PKM and PBM in the banded case. Fixed here.
2017-01-06Fix /dev/null slowdown.Robin Watts
In commit 80308eae9964e71b66a18f3de6ebcd2ebf0d306b ("Regularize band writer interface"), I inadvertently slowed down outputting to /dev/null. Fixed here. Also take the opportunity to speed ppm/pnm files writing in general if we don't need to collate.
2017-01-06Fix MSVC breakage.Robin Watts
2016-12-27Bug 697455: Make JPX support optional via configuration flag.Tor Andersson
Set FZ_ENABLE_JPX=0 in XCFLAGS or include/mupdf/fitz/config.h to disable support for JPX at compile time. Be aware that this may break support for PDF 1.5 and later files that need JPEG2000 support.
2016-12-27Strip extraneous blank lines.Tor Andersson
2016-12-27Stylistic cleanups.Tor Andersson
2016-12-27Common code to ensure we only premultiply pixmaps with additive colors.Tor Andersson
2016-12-26Bug 697362: GIF frames use LZW encoding similar to TIFF.Sebastian Rasmussen
Commit c0759acc6e5bd8167ab4983fc51eb1212da6a216 introduced a laxer LZW encoding. The bug shows that this may also apply to GIF images.
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