Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-03-23 | ARM code do_threshold_1 | Robin Watts | |
No clever SIMD tricks. | |||
2016-03-22 | Optimise the C for do_threshold_1. | Robin Watts | |
Simple unrolling. | |||
2016-03-22 | Remove dead code. | Robin Watts | |
2016-03-22 | Tweak paint-glyph.h | Robin Watts | |
Try to limit aliasing issues. | |||
2016-03-22 | Add Google Perf Tools build. | Robin Watts | |
"make build=gperf" will now build and link the google perf tools library into mutool. When mutool is then run, a mutool.prof file is dropped into the current directory that can be analysed. | |||
2016-03-21 | Bug 696668: Update the downscaling logic. | Robin Watts | |
An l2factor of 3 is equivalent to downscaling by a factor of 8. We can get an l2factor of 3 downscale out of the jpeglib. We can reasonably downscale by a further l2factor of 3 manually. Any more than that and we start to completely drop pixels without them having any effect. Therefore it's pointless us keeping any tiles around with l2factors > 6. Fix the bug (which was that we were using < instead of <=) and update the value to a more reasonable one anyway. | |||
2016-03-21 | Tweak NULL output code. | Robin Watts | |
In the quest for better mutool draw timings, make fz_outputs going to /dev/null be represented by a NULL pointer. Spot this in the output routines and just exit. | |||
2016-03-21 | Mudraw: Avoid reopening output files. | Robin Watts | |
It makes a strangely large difference in timings if we close and reopen the output file for every page. Only close and reopen the output file for each page if we really need to. | |||
2016-03-21 | Add .ps output to mutool draw. | Robin Watts | |
Simple PS wrapped images with flate compression. | |||
2016-03-21 | Allow building with old versions of freetype. | Tor Andersson | |
Debian stable still ships with freetype 2.5.2. We normally wouldn't care, but desktop java builds need to use the system freetype library as that's what AWT links against. | |||
2016-03-21 | Fix 696661: Missing annotations. | Tor Andersson | |
Add an explicit 'page setup' matrix to pdf-write device, which is only used when creating top level page content stream and not the child annotation content streams. | |||
2016-03-21 | Fix compiler warnings in murun.c and pdf-js.c by tagging rethrow as noreturn. | Tor Andersson | |
2016-03-21 | Fix error handling in fz_save_pixmap_as_pam. | Tor Andersson | |
2016-03-18 | Add 1bpp cmyk output to mutool draw. | Robin Watts | |
A request for a .pkm file will produce the same as a pamcmyk4 does on ghostscript. Ghostscripts pkmraw device does a 1bpp cmyk and then converts to rgb as writing to ppm, but that seems silly. | |||
2016-03-16 | mutool draw: Add banded mode output for pbm files. | Robin Watts | |
2016-03-16 | Avoid unused var warnings in Memento ref counting code. | Robin Watts | |
2016-03-16 | glyph plotter; Use repeated inclusion of header | Robin Watts | |
To avoid having to duplicate a fairly large block of code several times, use repeated inclusion of a header with some macros to generate optimised glyph plotters. | |||
2016-03-16 | Add optimised CMYK plotters. | Robin Watts | |
We have optimised plotters for 2 and 4 components (i.e. greyscale and rgb). Add equivalent ones for CMYK. | |||
2016-03-16 | Spot when we are fz_outputting to /dev/null or nul: | Robin Watts | |
2016-03-16 | Speed pam writing. | Robin Watts | |
2016-03-16 | Bug 696648: Send -sm output to stderr. | Robin Watts | |
Thanks to Marcos for spotting the missing case. | |||
2016-03-15 | Tweak fz_try/catch to fix overflow case. | Robin Watts | |
In the current code, when we hit the fz_try(), we check to see if we are about to overflow the exception stack. If we are, we throw. This does NOT throw to the fz_catch following the try, but rather to the enclosing fz_always/fz_catch blocks. This can cause leaks, as it's very hard to code correctly. It would be a far nicer behaviour to have a failure in fz_try() cause us to throw to the immediately following fz_always/fz_catch. This commit achieves that. | |||
2016-03-15 | Avoid shadowing 'stm' variable. | Robin Watts | |
This leads to a leak. | |||
2016-03-15 | Memento: Track fz_streams. | Robin Watts | |
2016-03-15 | Memento: Avoid warnings building without HAVE_LIBDL | Robin Watts | |
2016-03-15 | Fix leak in PDF device. | Robin Watts | |
2016-03-15 | Make PDF objects ref changes memento-trackable. | Robin Watts | |
2016-03-15 | Memento: Rename memento 'globals' to 'memento'. | Robin Watts | |
Neatness. | |||
2016-03-15 | Make all ref changes on storable items Memento trackable. | Robin Watts | |
2016-03-15 | Memento: Add Memento_{takeRef,dropRef,reference} functions. | Robin Watts | |
These work with MEMENTO_DETAILS to allow us to store the events where reference counts change. | |||
2016-03-15 | Fix leak in PDF inline image handling. | Robin Watts | |
2016-03-15 | mudraw: Fix leak of fz_output in stdout case. | Robin Watts | |
2016-03-15 | Fix mode2compress for PCL. | Robin Watts | |
Previously this would overrun buffers in the pathological case (ABBABBABB...). We now only break from literals to runs for a run of at least 3 (except at the start). | |||
2016-03-15 | Fix leak/missing error cleanup in halftoning code. | Robin Watts | |
Ensure we free buffers if we fail to malloc, and that we drop the temporary buffer at the end of halftoning a pixmap. | |||
2016-03-15 | Mutool draw: Simplify output handling code. | Robin Watts | |
At the moment we have the output file being opened in several different places, leading to several different places having to cope with the '-' handling. Simplify the code so that files are only opened in 1 place. | |||
2016-03-14 | Remove begin_page and end_page device calls. | Tor Andersson | |
To be moved into a new document writer interface later. | |||
2016-03-14 | Make pdf_is_stream work on loaded stream dictionary objects as well. | Tor Andersson | |
2016-03-14 | Fix 696507: Clamp correct values in fz_invert_pixmap_rect. | Tor Andersson | |
The loop is exclusive, but the clamp check was as if it were inclusive. | |||
2016-03-14 | html: Use pair break table from UAX #14 to add soft breaks. | Tor Andersson | |
Note: does not handle the case where certain classes of characters prohibit breaking at spaces between them. | |||
2016-03-14 | ucdn: Add support for UAX#14 linebreaking classes. | Sebastian Rasmussen | |
2016-03-14 | xml: Fix linebreak before closing tag test. | Tor Andersson | |
2016-03-14 | mudraw: Print summary information to stderr. | Tor Andersson | |
2016-03-14 | js: Document password and metadata. | Tor Andersson | |
2016-03-14 | js: Add DisplayList and DisplayListDevice. | Tor Andersson | |
2016-03-14 | js: Fix some reference counting errors. | Tor Andersson | |
2016-03-14 | js: Add upcasting to fz_document from pdf_document. | Tor Andersson | |
2016-03-14 | js: More object accessor functions. | Tor Andersson | |
2016-03-14 | js: Add pdf.countPages and pdf.findPage. | Tor Andersson | |
2016-03-14 | js: Add buffer.save() to write contents of buffer to file. | Tor Andersson | |
2016-03-14 | js: Add obj.writeStream and writeRawStream to update stream contents. | Tor Andersson | |