How Can I Convert RGB32 to RUV using Media SDK?

How Can I Convert RGB32 to RUV using Media SDK?

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?

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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

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 

Quote:

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!

Leave a Comment

Please sign in to add a comment. Not a member? Join today