[gs-devel] Getting a JPX stream's colorspace

Igor V. Melichev igor.melichev at artifex.com
Wed Nov 28 22:50:34 PST 2007


> I guess I should provide a .jpxgetcolorspace operator 

Agree due to we want to move to C implementations.

Igor.



----- Original Message ----- 
From: "Ralph Giles" <ralph.giles at artifex.com>
To: "Alex Cherepanov" <alexcher at quadnet.net>
Cc: <gs-devel at ghostscript.com>
Sent: Thursday, November 29, 2007 4:30 AM
Subject: [gs-devel] Getting a JPX stream's colorspace


> Alex,
> 
> I'd like to get your opinion on how to resolve Bug 689058. That is, when 
> an image dict is missing the /ColorSpace key, the image colorspace 
> should be determined by looking in the JPXDecode filtered stream.
> 
> It is straightforward to ask the decoder library for this information 
> once it has the data, or indeed to just parse the file for the 
> colorspace ourselves, but I'm not sure the best point at which to do 
> this. The workaround I attached just does a /ColorSpace knownoget in 
> pdf_draw.ps and stubs in one. Is it reasonable to access the stream data 
> itself at that point? (A similar change would have to be made for 
> softmask images.) If not, where would you suggest?
> 
> I guess I should provide a .jpxgetcolorspace operator in analogy to 
> .jbig2makeglobalctx and let you implement the rest? Do I need to do 
> anything special to create paletted colorspaces on the stack?
> 
> -r
> _______________________________________________
> gs-devel mailing list
> gs-devel at ghostscript.com
> http://www.ghostscript.com/mailman/listinfo/gs-devel


More information about the gs-devel mailing list