[vlc-devel] [PATCH 1/6] vlc_es: add support for mastering colour volume data & content light level
Steve Lhomme
robux4 at videolabs.io
Thu Mar 30 11:19:58 CEST 2017
As in HDR10 metadata speficied in SMPTE ST 2086 and CEA 861.3.
--
replaces https://patches.videolan.org/patch/16198/
- add content light level
---
include/vlc_es.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/include/vlc_es.h b/include/vlc_es.h
index 4210bc0d71..0c61808b60 100644
--- a/include/vlc_es.h
+++ b/include/vlc_es.h
@@ -345,6 +345,18 @@ struct video_format_t
float f_roll_degrees; /**< view point roll in degrees ]-180;180] */
float f_fov_degrees; /**< view point fov in degrees ]0;180[ */
} pose;
+ struct {
+ /* similar to SMPTE ST 2086 mastering display color volume */
+ uint16_t primaries[3*2]; /* G,B,R / x,y */
+ uint16_t white_point[2]; /* x,y */
+ uint32_t max_luminance;
+ uint32_t min_luminance;
+ } mastering;
+ struct {
+ /* similar to CEA 861.3 content light level */
+ uint16_t max_content_level;
+ uint16_t max_pic_avg_level;
+ } ligthing;
uint32_t i_cubemap_padding; /**< padding in pixels of the cube map faces */
};
--
2.11.1
More information about the vlc-devel
mailing list