summaryrefslogtreecommitdiff
path: root/source
AgeCommit message (Collapse)Author
2016-10-07Ensure we always layout the document before loading the outlines.Robin Watts
Intended as a fix for bug 697123, but the problem turns out to be something else entirely. Nonetheless, this is worth having.
2016-10-07More SWAR optimisation in plotters.Robin Watts
Slightly revised blending, making use of the fact that we can no longer overflow due to ma + masa <= 0x100.
2016-10-07SWAR optimisation in plotters.Robin Watts
2016-10-07Correct maths error in painters.Robin Watts
As part of the blending calculations, we do: dst = src * mask_alpha + dst * (1-mask_alpha.src_alpha) We calculate mask_alpha as ma, and 1-mask_alpha.src_alpha as masa. In full accuracy, we should never have ma + masa >= 1. Unfortunately, with the formulation used in the painters at the moment, we can. We therefore rejig the calculations slightly.
2016-10-07Optimise painters: Use SWAR to accelerate plotting.Robin Watts
Used for the file from bug 697122. Makes a small improvement overall. (31.3s to 31s for a cutdown file). The equivalent code using 64bit operations is slower.
2016-10-07Tweak painters: If painting 0 alpha, skip it.Robin Watts
2016-10-07Tweak painters.Robin Watts
If we have a source alpha, and it's 0, then nothing to paint.
2016-10-07Fix signed/unsigned warning in filter-thunder.cRobin Watts
2016-10-07Rename fz_process_mesh to fz_process_shade.Robin Watts
Better name as not all shadings are meshes.
2016-10-07Add ctx to fz_font functions.Robin Watts
2016-10-07Fix HAVE_JPEGXR code for colorspace changes.Robin Watts
2016-10-07Update Noto fonts.Tor Andersson
New Devanagari serif font, several other updated fonts.
2016-10-07pdf: Support UTF-8 encoded text strings.Tor Andersson
New in PDF 2.0.
2016-10-07pdf: Separate functions to read text strings and text streams as UTF-8.Tor Andersson
The stream loading is used only by the JS code loading.
2016-10-07js: Add PDFObject explicit accessors.Tor Andersson
2016-10-07pdf: Remove unneccessary document argument to pdf_to_utf8 etc.Tor Andersson
2016-10-07Add annotation editing functions and clean interface of existing ones.Tor Andersson
2016-10-07Remove separate tmp/deleted/changed annotation lists.Tor Andersson
Use a flag in the pdf_annot struct instead. Don't pass pdf_document to annotation edit functions.
2016-10-07js: Make PDFDocument, PDFPage, and PDFAnnotation subclasses.Tor Andersson
Add isPDF methods to query availability of PDF specific methods.
2016-10-06Squash compiler warning.Robin Watts
font->name can never be NULL as it is an array.
2016-10-06Hide internals of fz_colorspaceRobin Watts
The implementation does not need to be in the public API.
2016-10-06Bug 697159: Fix memory leak in CBZ error handling.Robin Watts
If we fail to open a CBZ page, we were dropping the CBZ specific part, but not the fz_page part.
2016-10-06Only build murun if we have mujs enabled.Robin Watts
Otherwise we were tripping over the lack of the header file.
2016-10-06Squash warnings in cluster builds.Robin Watts
2016-10-06Update Xref reading code to cope with 19 byte entries.Robin Watts
The spec says entries should be 20 bytes long. In practise we see 19 byte long ones more often than we like. This is due to the use of a single EOL char rather than 2. The PCLm files I've seen use 19 byte ones, so update the code to cope with these.
2016-10-06Bug 697194: Document -gggg in muclean.Robin Watts
2016-10-06Bug 697182: Fix memory leak in html-layout.Robin Watts
Only create a text object if we are definitely going to use it, and then take care of exceptions being thrown.
2016-10-05Bug 697177: Avoid SEGV in Epub file.Robin Watts
Thanks to Vlad Glagolev for the example file, analysis and patch. We had failed to initialise the "last break class" value, so that when we use it as an index into an array, we run the risk of crashing. The fix is simply to initialise it. By initialising it to OP we don't allow any softbreaks to be added when it's uninitialised, which feels right to me.
2016-10-05Add a const to a lookup function.Robin Watts
2016-10-05Simplify fz_new_type3_fontRobin Watts
Call fz_calloc rather than fz_malloc_array and then manually clearing.
2016-10-05Uncouple font shaper data from harfbuzz.Robin Watts
The fz_font structure now doesn't know anything about harfbuzz at all, it merely offers an abstract 'fz_shaper_data_t' entry.
2016-10-05Move fz_font definition to be private.Robin Watts
Move the definition of fz_font to be in a private header file rather than in the public API. Add accessors for specific parts of the structure and use them as appropriate. The font flags, and the harfbuzz records remain public. This means that only 3 files now need access to the font implementation (font.c, pdf-font.c and pdf-type3.c). This may be able to be improved further in future.
2016-09-27Fix typo in fz_valgrind_pixmapRobin Watts
Function exists purely for doing valgrind testing of pixmap definedness.
2016-09-28tiff: Do not clobber input buffer if fill order is reversed.Sebastian Rasmussen
2016-09-28tiff: Do error handling for decoders in a single place.Sebastian Rasmussen
2016-09-28tiff: Validate that tag/tile/strip offsets are within bounds.Sebastian Rasmussen
2016-09-28Bug 697166: tiff: Avoid freeing offset/bytecount arrays twice.Sebastian Rasmussen
2016-09-28Bug 697165: tiff: Do not allow duplicate array tags.Sebastian Rasmussen
Previously this caused a memory leak.
2016-09-28Bug 697155: tiff: Drop stream if compression is unknown.Sebastian Rasmussen
m5-299787ea764c0a88bc481364eded5556.tif
2016-09-28Bug 697157: tiff: Rational tag denominators may not be zero.Sebastian Rasmussen
2016-09-28Bug 697156: tiff: Free tile arrays after use.Sebastian Rasmussen
2016-09-28Bug 697154: tiff: Detect error when decoding strip/tile data.Sebastian Rasmussen
2016-09-27Bug 697153: tiff: Image dimensions must always be bigger than 0.Sebastian Rasmussen
2016-09-27Bug 697152: jpeg: Use correct macro to get client data.Sebastian Rasmussen
In commit 6a8abce9603f69b57e407f0df4044be919f507d7 an agnostic memory handler was introduced for libjpeg. While this commit changed error_exit_dct() it forgot to make a similar change in error_exit().
2016-09-27Bug 697163: gif: Fix integer overflow in image dimensions.Sebastian Rasmussen
2016-09-27Bug 697162: gif: Color index must be inside color table.Sebastian Rasmussen
2016-09-27Bug 697161: gif: Frames may not be bigger than the image.Sebastian Rasmussen
2016-09-27Bug 697160: gif: Transparency index must be inside color table.Sebastian Rasmussen
2016-09-26Update OpenJPEG to the latest (git) version.Robin Watts
Part of the change in this code is to require opj_malloc and co. Sadly, opj_malloc and co do not take a context field, so a we need to wrap calls to openjpeg with a lock. I am reusing the freetype lock here for simplicity.
2016-09-27tiff: Fix typo in thunder decoder.Sebastian Rasmussen