summaryrefslogtreecommitdiff
path: root/libavcodec/hevcdec.h
diff options
context:
space:
mode:
authorSteve Lhomme <robux4@gmail.com>2017-04-03 09:29:46 +0200
committerJames Almer <jamrial@gmail.com>2017-04-06 11:38:15 -0300
commit157e57a1810c6783779b046c1817a4f9737b2cb3 (patch)
tree8aa1bc2141c029a3381d894ada77ccee16fd29da /libavcodec/hevcdec.h
parentb378f5bd640177801681479ddb9fe80ececd9cf8 (diff)
lavc: Add Content Light Level side metadata found in HEVC
These data are necessary when transmitting HDR over HDMI. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/hevcdec.h')
-rw-r--r--libavcodec/hevcdec.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/hevcdec.h b/libavcodec/hevcdec.h
index 0c7881286c..e5879a5c2b 100644
--- a/libavcodec/hevcdec.h
+++ b/libavcodec/hevcdec.h
@@ -596,6 +596,11 @@ typedef struct HEVCContext {
uint32_t max_mastering_luminance;
uint32_t min_mastering_luminance;
+ /* content light level */
+ int sei_content_light_present;
+ uint16_t max_content_light_level;
+ uint16_t max_pic_average_light_level;
+
} HEVCContext;
int ff_hevc_decode_nal_sei(HEVCContext *s);