[vlc-commits] d3d11_shaders: add support for BRGA/BGRX to NV12

Steve Lhomme git at videolan.org
Mon May 28 13:25:58 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jan 30 14:04:44 2018 +0100| [c5a673339b4167a0fd1ba7a00b658cfc9fdcecfb] | committer: Steve Lhomme

d3d11_shaders: add support for BRGA/BGRX to NV12

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

 modules/video_output/win32/d3d11_shaders.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_output/win32/d3d11_shaders.c b/modules/video_output/win32/d3d11_shaders.c
index 5f73ff04bb..0d3eabd341 100644
--- a/modules/video_output/win32/d3d11_shaders.c
+++ b/modules/video_output/win32/d3d11_shaders.c
@@ -275,6 +275,8 @@ HRESULT D3D11_CompilePixelShader(vlc_object_t *o, d3d11_handle_t *hd3d, bool leg
                      sample.a = 1;";
             break;
         case DXGI_FORMAT_R8G8B8A8_UNORM:
+        case DXGI_FORMAT_B8G8R8A8_UNORM:
+        case DXGI_FORMAT_B8G8R8X8_UNORM:
             /* Y */
             psz_sampler[0] =
                     "sample = shaderTexture[0].Sample(samplerState, coords);\n";



More information about the vlc-commits mailing list