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

IPP UIC unable to encode from YUV420 to JPEG

Amol_A_
Beginner
357 Views

Hi, 

I want to convert a YUV420 frame to JPEG using IPP UIC but I am unable to do it. 

But I can convert a RGB frame to JPEG successfully.

I want to know, can UIC JPEGEncoder convert a YUV file to JPEG or not? If it can encode, I want to know how to use UIC for this.

Regards

Amol

0 Kudos
1 Reply
Sergey_K_Intel
Employee
357 Views

Hi Amol,

Out-of-box UIC is not able to do that.

Technically it is possible, because YUV frame has exact format necessary for JPEG encoding: the identical color model (YUV is almost YCbCr), plane format, IS_411 sampling model. But CJPEGEncoder::ColorConvert function, which is called for all encodings, will return UNSUPPORTED status, because there is no software path for this combination (source=IC_YCBCR, dest=IC_YCBCR, sampling=IS_411). You even don't need color conversion in this case, just to correctly set line steps for each of component planes in sources image structure. But, unfortunately there is no source code for that.

Regards,
Sergey 

0 Kudos
Reply