Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

encode Jpeg by IJL

van
Beginner
217 Views
Hi,
Can I encode an 8-bits Gray, YUV422, YUV411image to jpeg by using IJL without converting it to 24-bits RGB image ?
I learn that there a IJL_G type used for 8 bits Gray image but when I use it :
Jcprops.DIBChannels = 1;
Jcprops.DIBColor = IJL_G;
Jcprops.JPGChannels = 1;
Jcprops.JPGColor = IJL_G;
Jcprops.DIBSubsampling = IJL_NONE;
Jcprops.JPGSubsampling = IJL_422;
an error : IJL_UNSUPPORTED_SUBSAMPLING display
Maybe IJL supports only for 24-bit color image (Jcprops.JPGChannels = 3).
Is it right ?
0 Kudos
1 Reply
Vladimir_Dudnik
Employee
217 Views
Hi,
Sampling is not applicable to one channel image, because sampling by definition is changing of size of one image component related to other and can be applyed only to multi-channel images. You should use IJL_NONE for JPGSubsampling to encode one channel image.
Regards,
Vladimir
0 Kudos
Reply