]> git.sesse.net Git - vlc/commitdiff
add XYZ colorspace/fourcc
authorNicolas Bertrand <nicoinattendu@gmail.com>
Thu, 28 Feb 2013 09:22:10 +0000 (10:22 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 28 Feb 2013 09:25:47 +0000 (10:25 +0100)
Creation of XYZ colorspace for 12 bit depth images.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
include/vlc_fourcc.h
src/misc/es_format.c
src/misc/fourcc.c

index 4b2a257502a1bd4d1ba0522664dd43d4cfa3c471..9fc887aa9496e64e0299102493aaaf5cb5710fea 100644 (file)
 #define VLC_CODEC_EBU_STL   VLC_FOURCC('S','T','L',' ')
 #define VLC_CODEC_SCTE_27   VLC_FOURCC('S','C','2','7')
 
+/* XYZ colorspace 12 bits packed in 16 bits, organisation |XXX0|YYY0|ZZZ0| */
+#define VLC_CODEC_XYZ12     VLC_FOURCC('X','Y','1','2')
+
 
 /* Special endian dependant values
  * The suffic N means Native
index b26783035c217202e707f65b1602505ce8c83876..1e7c51fafef7c6850696e4f01cccdb53324e2bbb 100644 (file)
@@ -206,6 +206,10 @@ void video_format_Setup( video_format_t *p_fmt, vlc_fourcc_t i_chroma,
         p_fmt->i_bits_per_pixel = 8;
         break;
 
+    case VLC_CODEC_XYZ12:
+        p_fmt->i_bits_per_pixel = 48;
+        break;
+
     default:
         p_fmt->i_bits_per_pixel = 0;
         break;
index 57a428f0cf8008c78cb717cba05c9d6ccda92c93..ee6b48d078ec203d8a8cb30c6027191d6e521c67 100644 (file)
@@ -843,6 +843,10 @@ static const staticentry_t p_list_video[] = {
     B(VLC_CODEC_I444_10B, "Planar 4:4:4 YUV 10-bit BE"),
         A("I4AB"),
 
+    /* XYZ color space */
+    B(VLC_CODEC_XYZ12, "Packed XYZ 12-bit BE"),
+        A("XY12"),
+
     /* Videogames Codecs */
 
     /* Interplay MVE */
@@ -1958,6 +1962,7 @@ static const struct
     { { VLC_CODEC_RGBA,  0 },                  PACKED_FMT(4, 32) },
 
     { { VLC_CODEC_Y211, 0 },                   { 1, { {{1,4}, {1,1}} }, 4, 32 } },
+    { { VLC_CODEC_XYZ12,  0 },                 PACKED_FMT(6, 48) },
 
     { {0}, { 0, {}, 0, 0 } }
 };