Closed mixern6 closed 1 year ago
.jpc is a codestream that does not have the information on the input/output colorspace. To specify the colorspace for the reconstructed (decoded) image, you should use .jp2 file format. The JP2 file format is box-based. It has the "colour specification box" that defines one method by which an application can interpret the colorspace of the decompressed image data.
For the reason that Osama noted, what you are trying to do cannot work. Therefore, what you are observing is not a bug in JasPer. The warning message from JasPer is just trying to indicate that your code is doing something highly questionable and probably will not work as intended.
Hi, I have an image in YUV format (https://i.stack.imgur.com/2QNDQ.jpg), which Id' like to encode as YCbCr jpc. When I set the color space to JAS_CLRSPC_SYCBCR it still saves the image as if it is set to be JAS_CLRSPC_SRGB. Here is the code I use:
There are no errors, only this warning: "warning: color space apparently not RGB". The result image looks exactly the same as the source one if I open it in Photoshop. How can I tell jasper that the source image is in YUV format and not RGB?