dxgi_fmt: B5G6R5 is more like 5 bits per channel
authorSteve Lhomme <robUx4@videolabs.io>
Fri, 29 Jul 2016 07:15:18 +0000 (09:15 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 1 Aug 2016 07:54:36 +0000 (09:54 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/video_chroma/dxgi_fmt.c

index bd8cef0..a8a9d41 100644 (file)
@@ -77,7 +77,7 @@ static const d3d_format_t d3d_formats[] = {
     { "B8G8R8A8", DXGI_FORMAT_B8G8R8A8_UNORM, VLC_CODEC_BGRA,          8, DXGI_FORMAT_B8G8R8A8_UNORM,     0 },
     { "VA_BGRA",  DXGI_FORMAT_B8G8R8A8_UNORM, VLC_CODEC_D3D11_OPAQUE,  8, DXGI_FORMAT_B8G8R8A8_UNORM,     0 },
     { "R8G8B8X8", DXGI_FORMAT_B8G8R8X8_UNORM, VLC_CODEC_RGB32,         8, DXGI_FORMAT_B8G8R8X8_UNORM,     0 },
-    { "B5G6R5",   DXGI_FORMAT_B5G6R5_UNORM,   VLC_CODEC_RGB16,         8, DXGI_FORMAT_B5G6R5_UNORM,       0 },
+    { "B5G6R5",   DXGI_FORMAT_B5G6R5_UNORM,   VLC_CODEC_RGB16,         5, DXGI_FORMAT_B5G6R5_UNORM,       0 },
 
     { NULL, 0, 0, 0, 0, 0}
 };