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

Encode Jpeg by IJL

yasu
Beginner
298 Views
Hi,

I'm trying to encode YCbCr422(DIB) to JPEG by using IJL without converting it to 24-bits RGB image. However, the made JPEG image darkens compared with original image. Is it right ?

jCprops.DIBWidth = Wid;
jCprops.DIBHeight = Hei*(-1);
jCprops.DIBBytes = pYCbCr;
jCprops.DIBPadBytes = 0;
jCprops.DIBChannels = 3;
jCprops.DIBColor = IJL_YCBCR;
jCprops.DIBSubsampling = IJL_422; //?

jCprops.JPGFile = pJpegPath;
jCprops.JPGWidth = Wid;
jCprops.JPGHeight = Hei;
jCprops.JPGChannels = 3;
jCprops.JPGColor = IJL_YCBCR;
jCprops.JPGSubsampling = IJL_422; //?
// jCprops.JPGSubsampling = IJL_NONE; //?
jCprops.jquality = JQuality;

Is it right ?
0 Kudos
1 Reply
Vladimir_Dudnik
Employee
298 Views
please take a look at thread Encode Jpeg by IJLfor sample code

0 Kudos
Reply