]> git.sesse.net Git - vlc/commitdiff
Blend: allow YUV 4:4:4 16bit
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 18 Feb 2014 11:15:35 +0000 (12:15 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 18 Feb 2014 11:16:45 +0000 (12:16 +0100)
This is notably needed for old vouts like Xv and DDraw

modules/video_filter/blend.cpp

index 65528997b2ee0de2dbd7242c1a6b1d900ee9d34b..befe88616eaaa49ef0d12b10d4901696f876ad60 100644 (file)
@@ -425,6 +425,7 @@ struct convertBits {
 };
 typedef convertBits< 9, 8> convert8To9Bits;
 typedef convertBits<10, 8> convert8To10Bits;
+typedef convertBits<16, 8> convert8To16Bits;
 
 struct convertRgbToYuv8 {
     convertRgbToYuv8(const video_format_t *, const video_format_t *) {}
@@ -598,9 +599,11 @@ static const struct {
 #ifdef WORDS_BIGENDIAN
     YUV(VLC_CODEC_I444_9B,  CPictureI444_16,  convert8To9Bits),
     YUV(VLC_CODEC_I444_10B, CPictureI444_16,  convert8To10Bits),
+    YUV(VLC_CODEC_I444_16B, CPictureI444_16,  convert8To16Bits),
 #else
     YUV(VLC_CODEC_I444_9L,  CPictureI444_16,  convert8To9Bits),
     YUV(VLC_CODEC_I444_10L, CPictureI444_16,  convert8To10Bits),
+    YUV(VLC_CODEC_I444_16L, CPictureI444_16,  convert8To16Bits),
 #endif
 
     YUV(VLC_CODEC_YUYV,     CPictureYUYV,     convertNone),