diff options
author | Philip de Nier <philipn@rd.bbc.co.uk> | 2012-02-28 14:16:39 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-07-10 13:51:04 +0200 |
commit | fda891e108f53b1dd2d9801232c2893e45c072a1 (patch) | |
tree | 06d69f54eba16431ee67c574d19408eb11209c87 /libavformat/mxf.h | |
parent | dfefede00e3ea03f2a1bdfcb1b6db11699229049 (diff) | |
download | ffmpeg-fda891e108f53b1dd2d9801232c2893e45c072a1.tar.gz |
mxfdec: set pixel format for cdci picture formats
The properties of the CDCI Descriptor are insufficient to specify
the pixel format for uncompressed picture data. SMPTE 377-1 and
RP224v10 have defined a set of picture coding labels to indicate what
formatting was used.
This patch uses 2 labels to detect UYVY422 or YUYV422 pixel formats.
It defaults to UYVY422 for 8-bit 4:2:2 pictures to support files
that were created before the coding labels were introduced ~2008
The codec pix_fmt default was changed from 0 (PIX_FMT_YUV420P) to
-1 (PIX_FMT_NONE)
Reviewed-by: Baptiste Coudurier <baptiste.coudurier@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mxf.h')
-rw-r--r-- | libavformat/mxf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mxf.h b/libavformat/mxf.h index beb66281ab..8d3c0b9c55 100644 --- a/libavformat/mxf.h +++ b/libavformat/mxf.h @@ -60,6 +60,7 @@ typedef struct { extern const MXFCodecUL ff_mxf_data_definition_uls[]; extern const MXFCodecUL ff_mxf_codec_uls[]; +extern const MXFCodecUL ff_mxf_pixel_format_uls[]; int ff_mxf_decode_pixel_layout(const char pixel_layout[16], enum PixelFormat *pix_fmt); |