libweston: add HDR metadata to weston_output

This adds hdr_meta field in weston_output_color_outcome. This field is
intended to be set by color manager modules, and read by backends which
will send the information to the video sink in SMPTE ST 2084 mode a.k.a
Perceptual Quantizer HDR system.

Such metadata is essential in ST 2084 mode for the video sink to produce
a good picture.

The validation of the data and the group split is based on the HDR
Static Metata Type 1 definition in CTA-861-G specification.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen
2021-07-23 17:35:22 +03:00
committed by Pekka Paalanen
parent 518d72a37b
commit cea53a90d4
5 changed files with 148 additions and 1 deletions
+2
View File
@@ -208,6 +208,8 @@ cmlcms_create_output_color_outcome(struct weston_color_manager *cm_base,
&co->from_sRGB_to_output))
goto out_fail;
co->hdr_meta.group_mask = 0;
return co;
out_fail: