Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

How Can I Convert RGB32 to RUV using Media SDK?

chang__xuling
Beginner
753 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
753 Views

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

0 Kudos
Petter_L_Intel
Employee
753 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 

0 Kudos
chang__xuling
Beginner
753 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!

0 Kudos
Reply