]> git.sesse.net Git - vlc/commitdiff
avcodec: Add XYZ colorspace
authorNicolas Bertrand <nicoinattendu@gmail.com>
Tue, 30 Apr 2013 09:36:45 +0000 (11:36 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 30 Apr 2013 09:38:49 +0000 (11:38 +0200)
Adding XYZ colorspace allow usage of jpeg2000 decoders for
digital cinema

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/avcodec/chroma.c

index 8d439a3e3e72a3058faaf65cff2fccbdf3e55898..4dc18a1bcae4c08a6a4f23d61c6de2e3eed25ea5 100644 (file)
@@ -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 }
 };