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.



publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

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

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya