summaryrefslogtreecommitdiff
path: root/source/fitz/load-jpx.c
AgeCommit message (Collapse)Author
2015-10-14Scale colors of JPEG2000 images with bit depths less than eight.Tor Andersson
2014-09-02Clean some whitespace.Tor Andersson
2014-07-18fix potential memory leak in load-jpx.cSimon Bünzli
2014-05-06Fix 694909: revert "Force colorspaces to match with JPX images." and ...Tor Andersson
... instead convert a JPEG2000 used as a soft mask into grayscale. This is more robust than trusting the PDF specified colorspace over the internal JPX colorspace. The spec implies that in a colorspace conflict, the internal JPX colorspace should be used. The PDF colorspace may be a DeviceN or Separation colorspace. DeviceN and Separation colorspaces are not valid destination colorspaces, so we may not always be able to convert the internal JPX colorspace into the PDF specified colorspace. Converting from the internal colorspace into grayscale is more robust, and solves the issue that the original commit was intended to fix.
2014-02-18Make the OpenJPEG I/O callbacks static.....Chris Liddell
and give them names more likely to be unique.
2014-01-13verify that openjpeg actually allocates dataSimon Bünzli
This can be seen e.g. in: 5db811ac25ef543fd0cfa0873e155329_signal_sigsegv_c9b60f_9636_76.pdf Thanks to Mateusz Jurczyk and Gynvael Coldwind of the Google Security Team for providing the example files.
2013-06-20Rearrange source files.Tor Andersson