[vlc-commits] dxgi_fmt: B5G6R5 is more like 5 bits per channel

Steve Lhomme git at videolan.org
Mon Aug 1 09:55:21 CEST 2016


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Fri Jul 29 09:15:18 2016 +0200| [d704ea0b4b55218785a287056bc3883bd9a1d777] | committer: Jean-Baptiste Kempf

dxgi_fmt: B5G6R5 is more like 5 bits per channel

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d704ea0b4b55218785a287056bc3883bd9a1d777
---

 modules/video_chroma/dxgi_fmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_chroma/dxgi_fmt.c b/modules/video_chroma/dxgi_fmt.c
index bd8cef0..a8a9d41 100644
--- a/modules/video_chroma/dxgi_fmt.c
+++ b/modules/video_chroma/dxgi_fmt.c
@@ -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}
 };



More information about the vlc-commits mailing list