Bug 690545

Summary: confirm JPXDecode streams support 12 and 16 bit
Product: Ghostscript Reporter: Ralph Giles <ralph.giles>
Component: JPX/JBIG2 encode/decodeAssignee: Alex Cherepanov <alex>
Status: RESOLVED FIXED    
Severity: normal CC: lars, michael.vrhel
Priority: P4 Keywords: bountiable
Version: master   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---

Description Ralph Giles 2009-06-17 22:43:52 UTC
Currently we assume JPXDecode images are always 8 bits per component. With r9801
I added support for 4 bpp grayscale.

We need to handle the full range of possible bit depths in PDF, and scale things
appropriately if the stream doesn't agree with the /BitsPerComponent key in the
image dictionary.
Comment 1 Ray Johnston 2009-06-18 11:00:24 UTC
Please attach sample files in some of the desired formats so that someone
can work on these. I've marked it bountiable.
Comment 2 Ray Johnston 2010-08-23 15:05:10 UTC
I think Michael and/or Alex already fixed this. One of the PDF 1.7 FTS files
has 16-bit JPX images.
Comment 3 Ray Johnston 2010-09-02 16:47:35 UTC
Michael Vrhel fixed this for jasper. We need to confirm that these work with
OpenJpeg as well.
Comment 4 Alex Cherepanov 2012-04-10 03:59:15 UTC
OpenJpeg currently supports all the files in our test suite.