Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Encode Jpeg by IJL

yasu
Beginner
709 Views
Hi,

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

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.JPGWidth = Wid;
jCprops.JPGHeight = Hei;
jCprops.JPGChannels = 3;
jCprops.JPGColor = IJL_YCBCR;
jCprops.JPGSubsampling = IJL_422;
jCprops.jquality = 100;

Is it right ?
0 Kudos
3 Replies
Vladimir_Dudnik
Employee
709 Views

Hi,

you can check with old IJL sample (please find it in attachment).

Regards,
Vladimir

0 Kudos
yasu
Beginner
709 Views
0 Kudos
Vladimir_Dudnik
Employee
709 Views

Hi,

could you please attach sample images, original and compressed, which became dark? I can't realize what is the problem. I tested some image with sample I attached here, this work and does not add dakness to image.

Regards,
Vladimir
0 Kudos
Reply