summaryrefslogtreecommitdiff
path: root/source/fitz/load-jpx.c
AgeCommit message (Collapse)Author
2017-11-01Use int64_t for public file API offsets.Tor Andersson
Don't mess with conditional compilation with LARGEFILE -- always expose 64-bit file offsets in our public API.
2017-10-25Fix colorspace reference counting in fz_load_*_info.Tor Andersson
These are called from fz_new_image_from_buffer.
2017-10-12Make image loading use const data pointers.Tor Andersson
2017-09-07Initialize variables to appease clang scan-build.Sebastian Rasmussen
2017-09-05Make luratech decoder glue compile after interface changes.Sebastian Rasmussen
2017-07-19Add spots to fz_pixmaps.Robin Watts
Update separations interface further to cope with whether spots should be rendered separately, or as composite colors.
2017-07-17Don't convert cmyka images to rgbaMichael Vrhel
We should handle the cmyka images in their native form now that we are holding the data inverted. Fixes fts_17_1700.pdf Also fixes fts_43xx.xps
2017-07-06fz_var() variables must be initialized before fz_try.Sebastian Rasmussen
2017-07-03Avoid leaking jpx structure if corrupt file.Robin Watts
2017-06-16MSVC: Avoid signed/unsigned warning.Robin Watts
2017-06-08Plug leak of opj decoder in case of fz_new_pixmap() throwing.Sebastian Rasmussen
2017-06-06Declare functions without arguments as taking void.Sebastian Rasmussen
2017-06-03jpx: Use subsampled width when reading subsampled data.Sebastian Rasmussen
This bug caused an indeterminism with issue726.j2k.
2017-05-31Avoid double literals causing casts to float.Sebastian Rasmussen
2017-05-29Tweak JPEG2000 colorspace detection.Tor Andersson
2017-04-27Include required system headers.Tor Andersson
2017-04-05jpx: Make Luratech decoder glue layer compile.Sebastian Rasmussen
2017-02-06Fix Win32 builds.Robin Watts
2017-01-23android: Add ndk-build makefile to build JNI library for android viewers.Sebastian Rasmussen
Run 'make android' to invoke ndk-build with the proper arguments. The results are placed in build/android.
2017-01-17Fix typos.Sebastian Rasmussen
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-27Common code to ensure we only premultiply pixmaps with additive colors.Tor Andersson
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-14Plug pixmap leak when fz_convert_pixmap() throws.Sebastian Rasmussen
2016-11-22Fix fz_warn() format compiler warning.Sebastian Rasmussen
2016-11-04Avoid warnings in 64bit windows builds of luratech bindings.Robin Watts
2016-11-02Explain conversion to RGB in jpx/jxr image loading.Sebastian Rasmussen
2016-10-13Bug 696885: Handle subsampled components in openjpeg decoder wrapper.Robin Watts
Also add simple ycc to rgb conversion (stolen from Sebastian's code).
2016-10-12Fix leak in fz_load_jpx_info.Robin Watts
2016-10-09Fix HAVE_JPEGXR and HAVE_LURATECH code for colorspace changes.Sebastian Rasmussen
2016-10-06Hide internals of fz_colorspaceRobin Watts
The implementation does not need to be in the public API.
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-19jpx: Fix off by one in palettized images.Sebastian Rasmussen