summaryrefslogtreecommitdiff
path: root/source/fitz/output-png.c
AgeCommit message (Collapse)Author
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.
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-10-12Optimise fz_new_buffer_from_image_as_png.Robin Watts
This function calls png_from_pixmap, an auxiliary function to do the work. This was done deliberately to allow us to make the optimisation of dropping the pixmap early if it is not required. This keeps the memory use down in the case when a color conversion is required. Sadly, I never appear to have made the trivial change to actually use it in this mode. Do that now.
2016-10-12Change code from using bandheight to using band_height.Robin Watts
Keep to our naming conventions.
2016-10-12Regularize 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-09-23Fix warning: set but unused variable.Tor Andersson
2016-07-20Fix memory leak in fz_new_buffer_from_image_as_png.Robin Watts
2016-07-08Separate close and drop functionality for devices and writers.Tor Andersson
Closing a device or writer may throw exceptions, but much of the foreign language bindings (JNI and JS) depend on drop to never throw an exception (exceptions in finalizers are bad).
2016-06-17Add device space transform state to draw device.Tor Andersson
Allows us to remove the out parameter 'transform' from fz_begin_page.
2016-06-17Improve banding API.Robin Watts
Previously the API assumed that all bands had to be the same height. By moving the multiplication into the caller, we can lift that assumption.
2016-06-16Fix MSVC build; PATH_MAX not defined.Robin Watts
2016-06-16Add PNG output for mutool convert.Tor Andersson
2016-06-16Drop save_alpha argument from image writing functions.Tor Andersson
2016-06-16Split image output functions into separate files.Tor Andersson