Commit 8cc28d2b authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Blend: allow YUV 4:4:4 16bit

This is notably needed for old vouts like Xv and DDraw
parent f95c3a0b
......@@ -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),
......
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