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

Encode Jpeg by IJL

yasu
Débutant
1 146 Visites
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 Compliments
1 Répondre
Vladimir_Dudnik
Employé
1 146 Visites
please take a look at thread Encode Jpeg by IJLfor sample code

0 Compliments
Répondre