1 /*
2 * MXF
3 * Copyright (c) 2006 SmartJog S.A., Baptiste Coudurier <baptiste dot coudurier at smartjog dot com>
4 *
5 * This file is part of FFmpeg.
6 *
7 * FFmpeg is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * FFmpeg is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with FFmpeg; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21 #ifndef AVFORMAT_MXF_H
22 #define AVFORMAT_MXF_H
23
24 #include <stdint.h>
29
31
57 };
58
65 };
66
71
78
86
91
93
94 #define FF_MXF_MasteringDisplay_PREFIX 0x06,0x0e,0x2b,0x34,0x01,0x01,0x01,0x0e,0x04,0x20,0x04,0x01,0x01
95 #define FF_MXF_MasteringDisplayPrimaries { FF_MXF_MasteringDisplay_PREFIX,0x01,0x00,0x00 }
96 #define FF_MXF_MasteringDisplayWhitePointChromaticity { FF_MXF_MasteringDisplay_PREFIX,0x02,0x00,0x00 }
97 #define FF_MXF_MasteringDisplayMaximumLuminance { FF_MXF_MasteringDisplay_PREFIX,0x03,0x00,0x00 }
98 #define FF_MXF_MasteringDisplayMinimumLuminance { FF_MXF_MasteringDisplay_PREFIX,0x04,0x00,0x00 }
99
100 #define FF_MXF_MASTERING_CHROMA_DEN 50000
101 #define FF_MXF_MASTERING_LUMA_DEN 10000
102
111
119
122
123
125 "%02x.%02x.%02x.%02x." \
126 "%02x.%02x.%02x.%02x." \
127 "%02x.%02x.%02x.%02x." \
128 "%02x.%02x.%02x.%02x"
129
131 (x)[0], (x)[1], (x)[2], (x)[3], \
132 (x)[4], (x)[5], (x)[6], (x)[7], \
133 (x)[8], (x)[9], (x)[10], (x)[11], \
134 (x)[12], (x)[13], (x)[14], (x)[15] \
135
136 #ifdef DEBUG
137 #define PRINT_KEY(pc, s, x) \
138 av_log(pc, AV_LOG_VERBOSE, \
139 "%s " \
140 "0x%02x,0x%02x,0x%02x,0x%02x," \
141 "0x%02x,0x%02x,0x%02x,0x%02x," \
142 "0x%02x,0x%02x,0x%02x,0x%02x," \
143 "0x%02x,0x%02x,0x%02x,0x%02x ", \
144 s, UID_ARG(x)); \
145 av_log(pc, AV_LOG_INFO, \
146 "%s " \
147 "%02x.%02x.%02x.%02x." \
148 "%02x.%02x.%02x.%02x." \
149 "%02x.%02x.%02x.%02x." \
150 "%02x.%02x.%02x.%02x\n", \
151 s, UID_ARG(x))
152 #else
153 #define PRINT_KEY(pc, s, x) do { if(0) \
154 av_log(pc, AV_LOG_VERBOSE, \
155 "%s " \
156 "0x%02x,0x%02x,0x%02x,0x%02x," \
157 "0x%02x,0x%02x,0x%02x,0x%02x," \
158 "0x%02x,0x%02x,0x%02x,0x%02x," \
159 "0x%02x,0x%02x,0x%02x,0x%02x ", \
160 s, UID_ARG(x)); \
161 }while(0)
162 #endif
163
164 #endif /* AVFORMAT_MXF_H */