[vlc-commits] avcodec: Add XYZ colorspace

Nicolas Bertrand git at videolan.org
Tue Apr 30 11:31:54 CEST 2013


vlc | branch: master | Nicolas Bertrand <nicoinattendu at gmail.com> | Tue Apr 30 10:38:11 2013 +0200| [365ca68a5143a23ca9446e824d6c43bc0e320182] | 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=365ca68a5143a23ca9446e824d6c43bc0e320182
---

 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..4e97c44 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 <libavcodec/version.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