aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Bertrand <nicoinattendu@gmail.com>2013-03-26 23:21:15 +0100
committerDiego Biurrun <diego@biurrun.de>2013-04-04 19:53:07 +0200
commit28a807e28b4534326527df24ca7ae092ba0b15cd (patch)
tree8d16695f2cec6ba7821ca8b0dd2838ae137b98cc
parent8c65264595d5a82c56ae5043320e4b875a414229 (diff)
downloadffmpeg-28a807e28b4534326527df24ca7ae092ba0b15cd.tar.gz
libopenjpeg: Add support for XYZ colorspace, found in DCINEMA frames
Signed-off-by: Diego Biurrun <diego@biurrun.de>
-rw-r--r--libavcodec/libopenjpegdec.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/libopenjpegdec.c b/libavcodec/libopenjpegdec.c
index 19ab1605ec..9ff1429d0a 100644
--- a/libavcodec/libopenjpegdec.c
+++ b/libavcodec/libopenjpegdec.c
@@ -57,12 +57,15 @@
AV_PIX_FMT_YUV420P16, AV_PIX_FMT_YUV422P16, \
AV_PIX_FMT_YUV444P16
+#define XYZ_PIXEL_FORMATS AV_PIX_FMT_XYZ12
+
static const enum AVPixelFormat rgb_pix_fmts[] = {RGB_PIXEL_FORMATS};
static const enum AVPixelFormat gray_pix_fmts[] = {GRAY_PIXEL_FORMATS};
static const enum AVPixelFormat yuv_pix_fmts[] = {YUV_PIXEL_FORMATS};
static const enum AVPixelFormat any_pix_fmts[] = {RGB_PIXEL_FORMATS,
GRAY_PIXEL_FORMATS,
- YUV_PIXEL_FORMATS};
+ YUV_PIXEL_FORMATS,
+ XYZ_PIXEL_FORMATS};
typedef struct {
AVClass *class;