Media (Intel® oneAPI 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 sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
3001 Discussions

How to convert Intel Media SDK NV12 format to rgb565 format

Kothari__Smit
Beginner
295 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
295 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

Kothari__Smit
Beginner
295 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?

Mark_L_Intel1
Moderator
295 Views

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

Mark Liu

Mark_L_Intel1
Moderator
295 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

Reply