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.

Full range of color conversion from RGB to YUV

Michael_S_Intel1
Employee
664 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
664 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.

0 Kudos
Reply