Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.

How Can I Convert RGB32 to RUV using Media SDK?

chang__xuling
Beginner
150 Views

I have captured RGB images and I want to encode it using Media SDK, but the encode part needs an RUV input.

So, How can I convert it from RGB to RUV?

0 Kudos
3 Replies
chang__xuling
Beginner
150 Views

I mean if there is a function in Media SDK to help me do this.

Petter_L_Intel
Employee
150 Views

Hi,

With "RUV" (RUV is not a known format) I am assuming you mean the NV12 color space format?

The Media SDK VPP component supports a few HW accelerated color space conversion methods, including RGB4 to NV12. So if your raw input surface is of 32 bit RGB format then you can safely use Media SDK to convert to NV12 before feeding that surface into the encoder.

There is an example part of the Media SDK Tutorial (http://software.intel.com/en-us/articles/intel-media-sdk-tutorial) showcasing how to do this. Sample name: "simple_6_encode - d3d - vpp_preproc"

Regards,
Petter 

chang__xuling
Beginner
150 Views

Petter Larsson (Intel) wrote:

Hi,

With "RUV" (RUV is not a known format) I am assuming you mean the NV12 color space format?

The Media SDK VPP component supports a few HW accelerated color space conversion methods, including RGB4 to NV12. So if your raw input surface is of 32 bit RGB format then you can safely use Media SDK to convert to NV12 before feeding that surface into the encoder.

There is an example part of the Media SDK Tutorial (http://software.intel.com/en-us/articles/intel-media-sdk-tutorial) showcasing how to do this. Sample name: "simple_6_encode - d3d - vpp_preproc"

Regards,
Petter 

Thank god you know what I mean. I'm sorry for typing 'YUV' into 'RUV'.

I got a surface from DX9 function GetFrontBuffer(Surface surface), and I want to convert it into the NV12 to encode it.

I will first check the Sample code and see if there is further questions.

Thank you!

Reply