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

YUV420 Forced Output

Herrick_Muhlestein
428 Views
Hello,

When using the H264VideoDecoder::GetFrame API, and it seems the output VideoData color format is being overridden to always be YUV420 planar format regardless of the value passed into the Init function. I am passing in UMC::YUY2.

Also, when retreiving the data from the VideoData class in a composite format, should I use GetBufferPointer, GetDataPointer, or still use the GetPlanePointer API, even though this would not be a planar format?

Thank you,
Herrick
0 Kudos
3 Replies
Tamer_Assad
Innovator
428 Views

Hi Herrick,

UMC H264VideoDecoder will process YUV 420 or YV12 formats only, you may want to perform a format conversion outside the H264VideoDecoder.

Regards,

Tamer Assad

0 Kudos
Herrick_Muhlestein
428 Views
Hi Tamer,

Thank you for the clarification. I have been searching the IPP docs for conversion routines from YUV420 or YV12 to composite YUY2 (YUYV 4:2:0), is it this?

IppStatus ippiYCbCr420ToYCbCr422_8u_P2C2R()

The doc says: "The destination image pDst can be three-plane or two-channel". I assume the two-channels referred to a composite image?

This is for use on rendering on a Mac, which uses the common YUY2 as a native formet so the API must exist.
Could you clarify this for me and point me to sample code?

Thanks,
Herrick
0 Kudos
Chao_Y_Intel
Moderator
428 Views


Herric,

You can check the following file the UMC sample code:
codec\color_space_converter\src\umc_color_space_conversion.cpp

It includes the code for different color conversion.

Thanks,
Chao

0 Kudos
Reply