summaryrefslogtreecommitdiff
path: root/libavcodec/cbs_h264.h
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-05-07 23:33:36 +0100
committerMark Thompson <sw@jkqxz.net>2018-05-10 23:54:01 +0100
commitac687add84a1a87b0b9460c3cdbbeb9bac02fb34 (patch)
treebb5ee468eea798a4ef00cbfccc395d906127dce1 /libavcodec/cbs_h264.h
parentd94dda742c8eab3141197270fb78063ed22442aa (diff)
downloadffmpeg-ac687add84a1a87b0b9460c3cdbbeb9bac02fb34.tar.gz
cbs_h264: Add support for mastering display SEI messages
Diffstat (limited to 'libavcodec/cbs_h264.h')
-rw-r--r--libavcodec/cbs_h264.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/cbs_h264.h b/libavcodec/cbs_h264.h
index bc1ce1256f..92277e4750 100644
--- a/libavcodec/cbs_h264.h
+++ b/libavcodec/cbs_h264.h
@@ -306,6 +306,15 @@ typedef struct H264RawSEIDisplayOrientation {
uint8_t display_orientation_extension_flag;
} H264RawSEIDisplayOrientation;
+typedef struct H264RawSEIMasteringDisplayColourVolume {
+ uint16_t display_primaries_x[3];
+ uint16_t display_primaries_y[3];
+ uint16_t white_point_x;
+ uint16_t white_point_y;
+ uint32_t max_display_mastering_luminance;
+ uint32_t min_display_mastering_luminance;
+} H264RawSEIMasteringDisplayColourVolume;
+
typedef struct H264RawSEIPayload {
uint32_t payload_type;
uint32_t payload_size;
@@ -318,6 +327,7 @@ typedef struct H264RawSEIPayload {
H264RawSEIUserDataUnregistered user_data_unregistered;
H264RawSEIRecoveryPoint recovery_point;
H264RawSEIDisplayOrientation display_orientation;
+ H264RawSEIMasteringDisplayColourVolume mastering_display_colour_volume;
struct {
uint8_t *data;
size_t data_length;