summaryrefslogtreecommitdiff
path: root/libavcodec/h264_sei.h
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2017-06-09 17:27:22 -0400
committerVittorio Giovara <vittorio.giovara@gmail.com>2017-08-10 15:40:16 +0200
commit8c34a2024da77b50470e62789e4859b45959932e (patch)
tree2d1e483df3ef247682b335743dc8eb6875233c27 /libavcodec/h264_sei.h
parent9042402ec78ad050eb7ad129610450ef90371df4 (diff)
h264: Add support for alternative transfer characterics SEI
The use of this SEI is for backward compatibility in HLG HDR systems: older devices that cannot interpret the "arib-std-b67" transfer will get the compatible transfer (usually bt709 or bt2020) from the VUI, while newer devices that can interpret HDR will read the SEI and use its value instead. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavcodec/h264_sei.h')
-rw-r--r--libavcodec/h264_sei.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/libavcodec/h264_sei.h b/libavcodec/h264_sei.h
index da3b391860..5f5d895e89 100644
--- a/libavcodec/h264_sei.h
+++ b/libavcodec/h264_sei.h
@@ -32,7 +32,8 @@ typedef enum {
SEI_TYPE_RECOVERY_POINT = 6, ///< recovery point (frame # to decoder sync)
SEI_TYPE_FRAME_PACKING = 45, ///< frame packing arrangement
SEI_TYPE_DISPLAY_ORIENTATION = 47, ///< display orientation
- SEI_TYPE_GREEN_METADATA = 56 ///< GreenMPEG information
+ SEI_TYPE_GREEN_METADATA = 56, ///< GreenMPEG information
+ SEI_TYPE_ALTERNATIVE_TRANSFER = 147, ///< alternative transfer
} SEI_Type;
/**
@@ -144,6 +145,11 @@ typedef struct H264SEIGreenMetaData {
uint16_t xsd_metric_value;
} H264SEIGreenMetaData;
+typedef struct H264SEIAlternativeTransfer {
+ int present;
+ int preferred_transfer_characteristics;
+} H264SEIAlternativeTransfer;
+
typedef struct H264SEIContext {
H264SEIPictureTiming picture_timing;
H264SEIAFD afd;
@@ -154,6 +160,7 @@ typedef struct H264SEIContext {
H264SEIFramePacking frame_packing;
H264SEIDisplayOrientation display_orientation;
H264SEIGreenMetaData green_metadata;
+ H264SEIAlternativeTransfer alternative_transfer;
} H264SEIContext;
struct H264ParamSets;