diff options
author | Tomas Härdin <tomas.hardin@codemill.se> | 2010-06-30 07:55:05 +0000 |
---|---|---|
committer | Tomas Härdin <tomas.hardin@codemill.se> | 2010-06-30 07:55:05 +0000 |
commit | 11fdc4d4fcd1eecd4912354ecbc2c6a8dc97635c (patch) | |
tree | c89214f676eddd47b71bd393f14054d1f48910e6 /libavformat/mxf.h | |
parent | 85b76ce9901120b7a2ed9ab607dff8daa43e1b0d (diff) | |
download | ffmpeg-11fdc4d4fcd1eecd4912354ecbc2c6a8dc97635c.tar.gz |
mxfdec: Improve parsing of the PixelLayout item
Originally committed as revision 23898 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mxf.h')
-rw-r--r-- | libavformat/mxf.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavformat/mxf.h b/libavformat/mxf.h index 99553a5378..26832c27be 100644 --- a/libavformat/mxf.h +++ b/libavformat/mxf.h @@ -61,6 +61,15 @@ typedef struct { extern const MXFCodecUL ff_mxf_data_definition_uls[]; extern const MXFCodecUL ff_mxf_codec_uls[]; +typedef struct { + enum PixelFormat pix_fmt; + const char data[16]; +} MXFPixelLayout; + +extern const MXFPixelLayout ff_mxf_pixel_layouts[]; + +int ff_mxf_decode_pixel_layout(const char pixel_layout[16], enum PixelFormat *pix_fmt); + #ifdef DEBUG #define PRINT_KEY(pc, s, x) dprintf(pc, "%s %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X\n", s, \ (x)[0], (x)[1], (x)[2], (x)[3], (x)[4], (x)[5], (x)[6], (x)[7], (x)[8], (x)[9], (x)[10], (x)[11], (x)[12], (x)[13], (x)[14], (x)[15]) |