diff options
author | Neil Birkbeck <neil.birkbeck@gmail.com> | 2016-01-17 03:19:38 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-19 18:43:31 +0300 |
commit | d91718107c33960ad295950d7419e6dba292d723 (patch) | |
tree | 7491c55faf2a1e675dd88d4ee61c87ecc474955e /libavutil/frame.h | |
parent | 22f64c23244f4b83f59b866387ebeb8edca21b0d (diff) |
libavutil: add mastering display metadata sidedata
Adding mastering display metadata struct to avutil. The mastering display metadata contains information
about the mastering display color volume (SMPTE 2086:2014).
This info comes from HEVC in the SEI_TYPE_MASTERING_DISPLAY_INFO and is soon to be included in MKV:
https://mailarchive.ietf.org/arch/search/?email_list=cellar&gbt=1&index=sZyfPTM-QY69P-0omfOIiTN622o
so it is similar to SEI FPA / stereo_mode in MKV and as such this patch follows how AVStereo3D is implemented.
I'll add support to HEVC in a follow-up (and MKV when spec is approved).
Signed-off-by: Neil Birkbeck <neil.birkbeck@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil/frame.h')
-rw-r--r-- | libavutil/frame.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libavutil/frame.h b/libavutil/frame.h index 9c6061a11b..406c8b5b66 100644 --- a/libavutil/frame.h +++ b/libavutil/frame.h @@ -106,12 +106,17 @@ enum AVFrameSideDataType { * @endcode */ AV_FRAME_DATA_SKIP_SAMPLES, - /** * This side data must be associated with an audio frame and corresponds to * enum AVAudioServiceType defined in avcodec.h. */ AV_FRAME_DATA_AUDIO_SERVICE_TYPE, + /** + * Mastering display metadata associated with a video frame. The payload is + * an AVMasteringDisplayMetadata type and contains information about the + * mastering display color volume. + */ + AV_FRAME_DATA_MASTERING_DISPLAY_METADATA }; enum AVActiveFormatDescription { |