NV12 to RGB24 conversion code in C++

Ramanand Bhat picture Ramanand Bhat · Apr 20, 2012 · Viewed 12.6k times · Source

Does anyone know how to convert Intel Media SDK (version: Media SDK 2010) H.264 video frame decoded output NV12 format to RGB888 (RGB24) bit conversion?

Basically Media SDK decoder output will be in NV12 format and the render needs the RGB24 bit format, so if any conversion code avaiable for converting NV12-->RGB24 would be great help for us.

Answer

Sebastian Dressler picture Sebastian Dressler · Apr 20, 2012

Have a look at YUV to RGB Conversion and afterwards you can use the information about YUV pixel formats (link directs to NV12) as input to the first link and do the conversion.