h265parse: parsing HDR metadata SEI messages
@ph0b
Submitted by Xavier Hallade Link to original bug (#785823)
Description
Created attachment 356968
patch adding HDR metadata SEI messages parsing to h265parse
Hi,
I've added HDR SEI Metadata headers and simple parsing with h265parse in the patch attached.
There are three different types of HDR-related HEVC SEI Metadata at the moment so I've added them all:
- transfer characteristics, like the one sometimes defined in VUI headers, but here for HDR either 18 (arib-std-b67 for HLG) or 16 (smpte-st-2084 for HDR10).
- mastering display primaries and min/max luminance (mandatory for HDR10 content)
- content light level max and max frame-average (optional, for HDR10)
The end goal is to use these information downstream, mainly in sinks.
This patch alone isn't taking care of this in order to keep it clean and simple.
I intend to go further this path and do HDR rendering in a sink - so I'm also looking for advices/feedback on the cleanest way to pass all these information downstream.. should we add a single big HdrMetadata caps and fill it from h265parse? (and matroskaparse, since the same info can come from mkvs)
Patch 356968, "patch adding HDR metadata SEI messages parsing to h265parse":
0001-h265parse-added-HDR-Metadata-SEI-messages-parsing.patch