[vlc-devel] [PATCH V2] avcodec: Add XYZ colorspace
Nicolas Bertrand
nicoinattendu at gmail.com
Tue Apr 30 11:36:45 CEST 2013
Adding XYZ colorspace allow usage of jpeg2000 decoders for
digital cinema
---
Oooops
Fix and replace the previous one.
modules/codec/avcodec/chroma.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/modules/codec/avcodec/chroma.c b/modules/codec/avcodec/chroma.c
index 8d439a3..4dc18a1 100644
--- a/modules/codec/avcodec/chroma.c
+++ b/modules/codec/avcodec/chroma.c
@@ -31,6 +31,7 @@
#include <libavutil/avutil.h>
#include <libavutil/pixfmt.h>
+#include "avcommon.h"
#include "chroma.h"
/*****************************************************************************
@@ -120,7 +121,10 @@ static const struct
/* Paletized RGB */
{VLC_CODEC_RGBP, PIX_FMT_PAL8, 0, 0, 0},
-
+ /* XYZ */
+#if LIBAVUTIL_VERSION_CHECK(52, 10, 0, 25, 100)
+ {VLC_CODEC_XYZ12, AV_PIX_FMT_XYZ12, 0xfff0, 0xfff0, 0xfff0},
+#endif
{ 0, 0, 0, 0, 0 }
};
--
1.7.9.5
More information about the vlc-devel
mailing list