- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
![](/skins/images/7B0AB6865064EAE32B30EC9A4E94B48A/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page