diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-06-09 17:27:22 -0400 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-06-28 09:44:09 -0400 |
commit | 969f215957b25ec014aeed6e440ecb450e6927c1 (patch) | |
tree | 11302d9c13c27716aceb3e1d1542dc813106fcf5 /libavcodec/hevc_sei.h | |
parent | a594f17f83a1ffdc1eec18818208fe39487dd5d7 (diff) | |
download | ffmpeg-969f215957b25ec014aeed6e440ecb450e6927c1.tar.gz |
hevc: 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/hevc_sei.h')
-rw-r--r-- | libavcodec/hevc_sei.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/hevc_sei.h b/libavcodec/hevc_sei.h index b699fef45d..e4aeac1fbe 100644 --- a/libavcodec/hevc_sei.h +++ b/libavcodec/hevc_sei.h @@ -54,6 +54,7 @@ typedef enum { HEVC_SEI_TYPE_REGION_REFRESH_INFO = 134, HEVC_SEI_TYPE_MASTERING_DISPLAY_INFO = 137, HEVC_SEI_TYPE_CONTENT_LIGHT_LEVEL_INFO = 144, + HEVC_SEI_TYPE_ALTERNATIVE_TRANSFER_CHARACTERISTICS = 147, } HEVC_SEI_Type; typedef struct HEVCSEIPictureHash { @@ -74,10 +75,16 @@ typedef struct HEVCSEIDisplayOrientation { int hflip, vflip; } HEVCSEIDisplayOrientation; +typedef struct HEVCSEIAlternativeTransfer { + int present; + int preferred_transfer_characteristics; +} HEVCSEIAlternativeTransfer; + typedef struct HEVCSEI { HEVCSEIPictureHash picture_hash; HEVCSEIFramePacking frame_packing; HEVCSEIDisplayOrientation display_orientation; + HEVCSEIAlternativeTransfer alternative_transfer; } HEVCSEI; int ff_hevc_decode_nal_sei(GetBitContext *gb, void *logctx, HEVCSEI *s, |