Commit b82c5233 authored by Nicolas Bertrand's avatar Nicolas Bertrand Committed by Jean-Baptiste Kempf

add XYZ colorspace/fourcc

Creation of XYZ colorspace for 12 bit depth images.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent d6aeeebe
...@@ -370,6 +370,9 @@ ...@@ -370,6 +370,9 @@
#define VLC_CODEC_EBU_STL VLC_FOURCC('S','T','L',' ') #define VLC_CODEC_EBU_STL VLC_FOURCC('S','T','L',' ')
#define VLC_CODEC_SCTE_27 VLC_FOURCC('S','C','2','7') #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 /* Special endian dependant values
* The suffic N means Native * The suffic N means Native
......
...@@ -206,6 +206,10 @@ void video_format_Setup( video_format_t *p_fmt, vlc_fourcc_t i_chroma, ...@@ -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; p_fmt->i_bits_per_pixel = 8;
break; break;
case VLC_CODEC_XYZ12:
p_fmt->i_bits_per_pixel = 48;
break;
default: default:
p_fmt->i_bits_per_pixel = 0; p_fmt->i_bits_per_pixel = 0;
break; break;
......
...@@ -843,6 +843,10 @@ static const staticentry_t p_list_video[] = { ...@@ -843,6 +843,10 @@ static const staticentry_t p_list_video[] = {
B(VLC_CODEC_I444_10B, "Planar 4:4:4 YUV 10-bit BE"), B(VLC_CODEC_I444_10B, "Planar 4:4:4 YUV 10-bit BE"),
A("I4AB"), A("I4AB"),
/* XYZ color space */
B(VLC_CODEC_XYZ12, "Packed XYZ 12-bit BE"),
A("XY12"),
/* Videogames Codecs */ /* Videogames Codecs */
/* Interplay MVE */ /* Interplay MVE */
...@@ -1958,6 +1962,7 @@ static const struct ...@@ -1958,6 +1962,7 @@ static const struct
{ { VLC_CODEC_RGBA, 0 }, PACKED_FMT(4, 32) }, { { VLC_CODEC_RGBA, 0 }, PACKED_FMT(4, 32) },
{ { VLC_CODEC_Y211, 0 }, { 1, { {{1,4}, {1,1}} }, 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 } } { {0}, { 0, {}, 0, 0 } }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment