diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-11-28 15:10:00 +0300 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2017-08-04 20:18:34 +0300 |
commit | a13a783cdaf88e25de6ee70399ffeec62d55517a (patch) | |
tree | d7cc7172bd483165941b3426dd051d08ed652618 /libavutil | |
parent | 798744e6a66af648ff1f67e743bb91e04fded6fb (diff) |
matroskadec_haali: Export colorspace info in the mastering data struct
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/mastering_display_metadata.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libavutil/mastering_display_metadata.h b/libavutil/mastering_display_metadata.h index 847b0b62c6..1e022588e5 100644 --- a/libavutil/mastering_display_metadata.h +++ b/libavutil/mastering_display_metadata.h @@ -57,6 +57,30 @@ typedef struct AVMasteringDisplayMetadata { AVRational max_luminance; /** + * MPEG vs JPEG YUV range. + * It must be accessed using av_frame_get_color_range() and + * av_frame_set_color_range(). + * - encoding: Set by user + * - decoding: Set by libavcodec + */ + enum AVColorRange color_range; + + enum AVColorPrimaries color_primaries; + + enum AVColorTransferCharacteristic color_trc; + + /** + * YUV colorspace type. + * It must be accessed using av_frame_get_colorspace() and + * av_frame_set_colorspace(). + * - encoding: Set by user + * - decoding: Set by libavcodec + */ + enum AVColorSpace colorspace; + + enum AVChromaLocation chroma_location; + + /** * Flag indicating whether the display primaries (and white point) are set. */ int has_primaries; @@ -66,6 +90,10 @@ typedef struct AVMasteringDisplayMetadata { */ int has_luminance; + /** + * Flag indicating whether the color_range, color_primaries, color_trc, colorspace and chroma_location have been set + */ + int has_colorspace; } AVMasteringDisplayMetadata; /** |