summaryrefslogtreecommitdiff
path: root/libavcodec/h2645_sei.h
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2023-01-10 00:03:01 +0200
committerJan Ekström <jeebjp@gmail.com>2023-01-13 21:26:27 +0200
commit5de565107a32414aec9f079940c76812265157c5 (patch)
tree566315b53b2c4c95dd128b9a82389000c780859d /libavcodec/h2645_sei.h
parentbe76a9bd327bb49b1c10f44871253eddf6fc5100 (diff)
avcodec/h2645_sei: add support for Ambient Viewing Environment SEI
Defined by H.274, this SEI message is utilized by iPhones to save the nominal ambient viewing environment for the display of recorded HDR content. The contents of the message are exposed to API users as AVFrame side data containing AVAmbientViewingEnvironment. As the DV RPU test sample is from an iPhone and includes Ambient Viewing Environment SEI messages, its test result gets updated.
Diffstat (limited to 'libavcodec/h2645_sei.h')
-rw-r--r--libavcodec/h2645_sei.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/h2645_sei.h b/libavcodec/h2645_sei.h
index f3ee9af524..e07ae10376 100644
--- a/libavcodec/h2645_sei.h
+++ b/libavcodec/h2645_sei.h
@@ -76,6 +76,13 @@ typedef struct H2645SEIAlternativeTransfer {
int preferred_transfer_characteristics;
} H2645SEIAlternativeTransfer;
+typedef struct H2645SEIAmbientViewingEnvironment {
+ int present;
+ uint32_t ambient_illuminance;
+ uint16_t ambient_light_x;
+ uint16_t ambient_light_y;
+} H2645SEIAmbientViewingEnvironment;
+
typedef struct H2645SEIFilmGrainCharacteristics {
int present;
int model_id;
@@ -108,6 +115,7 @@ typedef struct H2645SEI {
H2645SEIDisplayOrientation display_orientation;
H2645SEIAlternativeTransfer alternative_transfer;
H2645SEIFilmGrainCharacteristics film_grain_characteristics;
+ H2645SEIAmbientViewingEnvironment ambient_viewing_environment;
} H2645SEI;
enum {