diff options
author | Harry Mallon <harry.mallon@codex.online> | 2020-09-09 15:56:37 +0100 |
---|---|---|
committer | Tomas Härdin <tjoppen@acc.umu.se> | 2020-09-17 21:40:25 +0200 |
commit | 90e2a4d61bd18b19f91c90e4a071248d4334e735 (patch) | |
tree | b56791b5adc9c0f0bbc0e663f017beed942e2f75 /libavformat/mxf.c | |
parent | 7c66d24460a2b6b5984191dd31a5a4761cd62ab3 (diff) |
avformat/mxfdec: Read Mastering Display Colour Volume from MXF
Described in Annex B SMPTE ST 2067-21:2020
Signed-off-by: Harry Mallon <harry.mallon@codex.online>
Diffstat (limited to 'libavformat/mxf.c')
-rw-r--r-- | libavformat/mxf.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavformat/mxf.c b/libavformat/mxf.c index e51fc48a84..88f69ebcfb 100644 --- a/libavformat/mxf.c +++ b/libavformat/mxf.c @@ -22,6 +22,17 @@ #include "libavutil/common.h" #include "mxf.h" +const uint8_t ff_mxf_mastering_display_prefix[13] = { 0x06,0x0e,0x2b,0x34,0x01,0x01,0x01,0x0e,0x04,0x20,0x04,0x01,0x01 }; + +/* be careful to update references to this array if reordering */ +/* local tags are dynamic and must not clash with others in mxfenc.c */ +const MXFLocalTagPair ff_mxf_mastering_display_local_tags[4] = { + { 0x8301, { 0x06,0x0e,0x2b,0x34,0x01,0x01,0x01,0x0e,0x04,0x20,0x04,0x01,0x01,0x01,0x00,0x00 }}, /* Mastering Display Primaries */ + { 0x8302, { 0x06,0x0e,0x2b,0x34,0x01,0x01,0x01,0x0e,0x04,0x20,0x04,0x01,0x01,0x02,0x00,0x00 }}, /* Mastering Display White Point Chromaticity */ + { 0x8303, { 0x06,0x0e,0x2b,0x34,0x01,0x01,0x01,0x0e,0x04,0x20,0x04,0x01,0x01,0x03,0x00,0x00 }}, /* Mastering Display Maximum Luminance */ + { 0x8304, { 0x06,0x0e,0x2b,0x34,0x01,0x01,0x01,0x0e,0x04,0x20,0x04,0x01,0x01,0x04,0x00,0x00 }} /* Mastering Display Minimum Luminance */ +}; + /** * SMPTE RP224 http://www.smpte-ra.org/mdd/index.html */ |