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

Intel VPL: The order of Display Primaries is wrong on HEVC encoding.

SYama6142
Beginner
2,439 Views

Hi, everyone.

I'm working with Intel VPL to encode HDR video with HEVC codec.

I can successfully get HEVC video with display primaries metadata by adding mfxExtMasteringDisplayColourVolume to mfxVideoParam, but the order of Display Primaries is not right.

SYama6142_1-1739152227376.png

The highlighten part is Display Color Primaries SEI message, and this is the decoded result.

display_primaries_x[0] = 33905 (0x8471)
display_primaries_y[0] = 15945 (0x3E49)
display_primaries_x[1] = 11825 (0x2E31)
display_primaries_y[1] = 35240 (0x89A8)
display_primaries_x[2] = 7049 (0x1B89)
display_primaries_y[2] = 2445 (0x098D)
white_point_x = 15634 (0x3D12)
white_point_y = 16450 (0x4042)

The ordering of values in the mdcv SEI message is GBR but it is written in RGB order.

In the comment of mfxExtMasteringDisplayColourVolume in mfxstructures.h, the ordering of values is RGB order.

During video processing: If the application attaches this structure for video processing, InsertPayloadToggle will be ignored.
And DisplayPrimariesX[3], DisplayPrimariesY[3] specify the color primaries where 0,1,2 specifies Red, Green, Blue respectively.

Is the comment not correct or is this just an hevc encoder's bug?

0 Kudos
0 Replies
Reply