Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

Full range of color conversion from RGB to YUV

Michael_S_Intel1
Employee
167 Views

 

A customer of us  wants to use VPP for doing a color conversion from RGB to YUV. It works fine but the output is according to BT.601 where the  Y range is [16,235] and UV is [16,240] in 8bit data depth. However, the customer wants to convert with a full swing [0, 255] on both Y, and U, V. He wants to run detection algorithms and therefore does not want to loose information depth.

Can we switch to full color depth conversion ?

Product used from us is APL , SW is Gordon Peak 1.04 (TSD).  It would be good to know in the first place  if the VPP HW can support this.

regards

Michael

0 Kudos
1 Reply
Seunghyuk_P_Intel
167 Views

Hi Michael S,

Please look for mfxExtVPPVideoSignalInfo structure. It can be initialized with

TransferMatrix = MFX_TRANSFERMATRIX_UNKNOWN;

NominalRange = MFX_NOMINALRANGE_0_255;

and passed as extension buffer to VPP Init.

There’s example of its usage in sample_decode, but there it is passed as extension buffer to every surface, but I was told that it is sufficient to pass it only once to Init function.

Regards,

Peter.

Reply