aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h2645_sei.h
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2023-07-12 19:57:13 +0300
committerJan Ekström <jeebjp@gmail.com>2023-07-27 21:45:43 +0300
commit43e63ff20a51e0296c446a9deec613df6fd52cb8 (patch)
tree1d1f5d50493db2ae4a6747ca0c5edacc1066dded /libavcodec/h2645_sei.h
parent33358b862c8b796362218f12555e351aaf35a8f4 (diff)
downloadffmpeg-43e63ff20a51e0296c446a9deec613df6fd52cb8.tar.gz
avcodec: move content light level SEI handling to h2645_sei
This allows this common H.274 SEI to be parsed from both H.264 as well as HEVC, as well as probably from VVC in the future. Generally attempts to keep the original code as similar as possible. FATE test refererence changes only change the order of side data export within a single frame. Nothing else seems to have changed.
Diffstat (limited to 'libavcodec/h2645_sei.h')
-rw-r--r--libavcodec/h2645_sei.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/h2645_sei.h b/libavcodec/h2645_sei.h
index 83e1b2ec16..0ebf48011a 100644
--- a/libavcodec/h2645_sei.h
+++ b/libavcodec/h2645_sei.h
@@ -113,6 +113,12 @@ typedef struct H2645SEIMasteringDisplay {
uint32_t min_luminance;
} H2645SEIMasteringDisplay;
+typedef struct H2645SEIContentLight {
+ int present;
+ uint16_t max_content_light_level;
+ uint16_t max_pic_average_light_level;
+} H2645SEIContentLight;
+
typedef struct H2645SEI {
H2645SEIA53Caption a53_caption;
H2645SEIAFD afd;
@@ -125,6 +131,7 @@ typedef struct H2645SEI {
H2645SEIFilmGrainCharacteristics film_grain_characteristics;
H2645SEIAmbientViewingEnvironment ambient_viewing_environment;
H2645SEIMasteringDisplay mastering_display;
+ H2645SEIContentLight content_light;
} H2645SEI;
enum {