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

How can i decode jpeg to YCbCr?

zac_2000
Beginner
278 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
278 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

0 Kudos
Reply