video-hdr: Rework for GstVideoMasteringDisplayInfo and GstVideoContentLightLevel...
authorSeungha Yang <seungha@centricular.com>
Tue, 10 Mar 2020 11:36:16 +0000 (20:36 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 1 Apr 2020 11:11:15 +0000 (11:11 +0000)
commit1dee0f05a70abb65ee067ef39ae20b3f695a6417
treef41ef091dfd5dc946c8c4498a5ea2c7d140d11af
parent476eaf94250c01dd1185b8baf3cdbc1ce8ac71b4
video-hdr: Rework for GstVideoMasteringDisplayInfo and GstVideoContentLightLevel struct

This commit modifies GstVideoMasteringDisplayInfo and GstVideoContentLightLevel
structs so that each value is to be more like hdr_metadata_infoframe struct
of linux drm header and DXGI_HDR_METADATA_HDR10 struct of Windows.
So each value is no more fraction but normalized one as per CTA 861.G spec.
Also the unit of each value will be consistent with H.264, H.265
specifications, hdr_metadata_infoframe struct for linux and
DXGI_HDR_METADATA_HDR10 struct for Windows.
gst-libs/gst/video/video-hdr.c
gst-libs/gst/video/video-hdr.h
tests/check/libs/video.c