IPP UIC unable to encode from YUV420 to JPEG

IPP UIC unable to encode from YUV420 to JPEG

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

2 posts / novo 0
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.

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 

Regards,
Sergey

Deixar um comentário

Faça login para adicionar um comentário. Não é membro? Inscreva-se hoje mesmo!