[vlc-commits] avcodec: Add XYZ colorspace

Nicolas Bertrand git at videolan.org
Tue Apr 30 11:39:34 CEST 2013


vlc | branch: master | Nicolas Bertrand <nicoinattendu at gmail.com> | Tue Apr 30 11:36:45 2013 +0200| [59a4b45858db31f74a307e8c2dfdc245eb2b24d5] | committer: Jean-Baptiste Kempf

avcodec: Add XYZ colorspace

Adding XYZ colorspace allow usage of jpeg2000 decoders for
digital cinema

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=59a4b45858db31f74a307e8c2dfdc245eb2b24d5
---

 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 }
 };
 



More information about the vlc-commits mailing list