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.
3072 Discussions

How to convert Intel Media SDK NV12 format to rgb565 format

Kothari__Smit
Beginner
944 Views

Hi ,

I have decoded my camera  live stream using intel media sdk and its give format NV12. but my renderer application needs RGB565 Format. also I m using hardware acceleration for decoding.

After little research i found we can not convert NV12 to RGB565 directly using VPP. 

Questions : 

1. Can Intel Media SDK decode directly into RGB565 ?

2. If not then how can I convert NV12 to RGB565 ? 

0 Kudos
4 Replies
Mark_L_Intel1
Moderator
944 Views

Hi Smit,

No we don't support RGB565, you can check the following develop reference at page 11 and 12:

https://github.com/Intel-Media-SDK/MediaSDK/blob/master/doc/mediasdk-man.pdf

You can see we don't support HW accelerated conversion. For work around, you can try to use IPP:

https://software.intel.com/en-us/intel-ipp

Mark Liu

0 Kudos
Kothari__Smit
Beginner
944 Views

Hi Liu,

Can we decode input frame in RGB32 format without using VPP? if yes would u please which changes we need to do?

0 Kudos
Mark_L_Intel1
Moderator
944 Views

Not quite understand what do you meant, are you going to have a H.264 stream with RGB32 color space?

Mark Liu

0 Kudos
Mark_L_Intel1
Moderator
944 Views

Hi Smit:

For your previous question, I can see the use case from RGB565 to NV12 because of the camera support, but what is your situation to convert NV12 to RGB565?

Mark

0 Kudos
Reply