Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

How can i decode jpeg to YCbCr?

zac_2000
Beginner
90 Views

I Can decode jpeg to RGB color space.

JPEG_CORE_PROPERTIES jcprops;

jcprops.JPGColor= IJL_YCBCR;

jcprops.DIBColor= IJL_RGB;

jcprops.DIBChannels= 3;

jcprops.DIBWidth = jcprops.JPGWidth=640;

jcprops.DIBHeight = jcprops.JPGHeight=480;

The Image is right;

when i change IJL_RGB to IJL_YCBCR the return pointer memory is wrong.

it only more than 640*480,and less than 640*480*3/2.

I see page 81 of ijlman.pdf ,is say can support YCBCR.

How can i do?

Thanks in advance!

0 Kudos
1 Reply
Vladimir_Dudnik
Employee
90 Views

Please refer to ijlman.pdf file for the details how to decode JPEG to YCbCr color sspace. Please also note, that only JPEG with 422 sampling can be decoded to YCbCr space with IJL or JPEGView IPP samples

Regards,
Vladimir

Reply