IPP UIC unable to encode from YUV420 to JPEG

IPP UIC unable to encode from YUV420 to JPEG


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.



2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.


Leave a Comment

Please sign in to add a comment. Not a member? Join today