SaveImageJpeg2000 with four channels fails with IE_UNSUP

SaveImageJpeg2000 with four channels fails with IE_UNSUP

Using release 7.0.4 source. Adapted JPEG-2000 libraries from uic_transcoder_con sample application, source jpeg2k.cpp. Function SaveImageJpeg2000 with argument CIppImage of four channels, which I presume is correct for 32 bit RGB, fails in switch (nOfComponents), where case 4 and default both return IE_UNSUP.

Examination of CIppImage reveals many methods which appear to handle four channels, but SaveImageJpeg2000 does not.

Must I convert 32 bit RGB to 24 bit RGB in order to use SaveImageJpeg2000?

Thanks.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi,Yes, you need to do that.Regards,Sergey

Regards, Sergey

Login to leave a comment.