Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-10-12 | Bug 696958: parse css hex colors that are missing the '#' prefix. | Tor Andersson | |
2016-10-12 | Bug 696958: Workarounds for 'rem' and 'ch' units in epub. | Tor Andersson | |
2016-10-12 | Remove superfluous context null checks. | Tor Andersson | |
Code MUST pass a non-null context to all functions. Checking ctx for null and failing silently is no more useful than segfaulting. fz_keep_imp and fz_drop_imp handle NULL pointers safely, so the NULL checks for this can also be dropped at the same time. | |||
2016-10-12 | Fix (harmless) typo in function prototypes. | Tor Andersson | |
2016-10-12 | Split fz_html into fz_html and fz_html_box for nodes. | Tor Andersson | |
Removes the need to carry fz_pool along in all boxes. | |||
2016-10-12 | Bug 697012: Avoid overflow in xps_parse_real_num. | Robin Watts | |
2016-10-12 | Bug 696939: Fix mutool info -I flag. | Robin Watts | |
When using -I without -X we were not seeing the expected images listed. Adopt the solution suggested by the bug reporter. Many thanks! | |||
2016-10-12 | Change code from using bandheight to using band_height. | Robin Watts | |
Keep to our naming conventions. | |||
2016-10-12 | Regularize band writer interface. | Robin Watts | |
We have various functions that, for different image formats, write a header, then a band, then (sometimes) a trailer. Push them all through a single interface. This change also fixes potential problems caused by the trailer writing being an implicit destructor, which can cause problems in cleanup code if the trailer writing throws an error. | |||
2016-10-12 | Always call fz_drop_document() to drop the document. | Sebastian Rasmussen | |
2016-10-11 | Free document in fz_drop_document(), not in subclassing documents. | Sebastian Rasmussen | |
2016-10-10 | Bug 697050: Allow mutool extract to keep JPEGs as JPEGs. | Robin Watts | |
If an image is a JPEG (without a mask, or a colorkey, or using decode), then extract it as such. | |||
2016-10-10 | PDF Images: Add a flag for if we need to apply the decode array | Robin Watts | |
This avoids us having to check the entire array each time, and makes the next commit simpler. | |||
2016-10-10 | Remove unused variable. | Robin Watts | |
2016-10-10 | Bug 697075: Fix tile repeat calculations. | Robin Watts | |
When calculating how many repeats of tiles are required, we need to allow for the fact that the bbox of the tile can be larger than the repeat step in PDF. The calculation to do this before was incorrectly being done using the scissor bbox, when it should have been the tile bbox. | |||
2016-10-10 | Bug 697123: epub: Adjust anchor positions using fragments. | Robin Watts | |
2016-10-10 | Simplify linked list handling in epub-doc.c | Robin Watts | |
2016-10-10 | Remove needless parameter passing. | Robin Watts | |
2016-10-10 | HTML: Keep 'Anchors' in the html box list. | Robin Watts | |
Keep them as 'FLOW' entries rather than box entries. Although they technically enclose areas of text, we only ever use them as points. Thanks to Tor for fixing this code. | |||
2016-10-10 | Use more bitfields in HTML. | Robin Watts | |
Saves 12 bytes per fz_html, and we have a lot. | |||
2016-10-10 | Change HTML agent to use bitfields rather than chars. | Robin Watts | |
Saves 8 bytes on every css_style (and we have a lot of those). | |||
2016-10-09 | Open document file in fz_open_document(). | Sebastian Rasmussen | |
This relieves all document formats from reimplementing opening a fz_stream unless the format wants to do something more than just opening the raw file. | |||
2016-10-09 | html: Fix leak of buffer when opening as stream. | Sebastian Rasmussen | |
2016-10-09 | html: Add missing function pointer when opening as stream. | Sebastian Rasmussen | |
2016-10-09 | cbz: Remove unused variable. | Sebastian Rasmussen | |
2016-10-09 | Fix HAVE_JPEGXR and HAVE_LURATECH code for colorspace changes. | Sebastian Rasmussen | |
2016-10-07 | Ensure 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-07 | More 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-07 | SWAR optimisation in plotters. | Robin Watts | |
2016-10-07 | Correct 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-07 | Optimise 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-07 | Tweak painters: If painting 0 alpha, skip it. | Robin Watts | |
2016-10-07 | Tweak painters. | Robin Watts | |
If we have a source alpha, and it's 0, then nothing to paint. | |||
2016-10-07 | Fix signed/unsigned warning in filter-thunder.c | Robin Watts | |
2016-10-07 | Rename fz_process_mesh to fz_process_shade. | Robin Watts | |
Better name as not all shadings are meshes. | |||
2016-10-07 | Add ctx to fz_font functions. | Robin Watts | |
2016-10-07 | Fix HAVE_JPEGXR code for colorspace changes. | Robin Watts | |
2016-10-07 | Update Noto fonts. | Tor Andersson | |
New Devanagari serif font, several other updated fonts. | |||
2016-10-07 | pdf: Support UTF-8 encoded text strings. | Tor Andersson | |
New in PDF 2.0. | |||
2016-10-07 | pdf: 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-07 | js: Add PDFObject explicit accessors. | Tor Andersson | |
2016-10-07 | pdf: Remove unneccessary document argument to pdf_to_utf8 etc. | Tor Andersson | |
2016-10-07 | Add annotation editing functions and clean interface of existing ones. | Tor Andersson | |
2016-10-07 | Remove 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-07 | js: Make PDFDocument, PDFPage, and PDFAnnotation subclasses. | Tor Andersson | |
Add isPDF methods to query availability of PDF specific methods. | |||
2016-10-06 | Squash compiler warning. | Robin Watts | |
font->name can never be NULL as it is an array. | |||
2016-10-06 | Hide internals of fz_colorspace | Robin Watts | |
The implementation does not need to be in the public API. | |||
2016-10-06 | Bug 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-06 | Only build murun if we have mujs enabled. | Robin Watts | |
Otherwise we were tripping over the lack of the header file. | |||
2016-10-06 | Squash warnings in cluster builds. | Robin Watts | |