[vlc-commits] [Git][videolan/vlc][master] opengl/dxva2: output D3DFMT_A8R8G8B8
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Aug 25 13:29:57 UTC 2023
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
9d6ad2ea by Steve Lhomme at 2023-08-25T13:15:35+00:00
opengl/dxva2: output D3DFMT_A8R8G8B8
If the source has alpha, we should keep it during the conversion to RGB.
- - - - -
1 changed file:
- modules/video_output/opengl/interop_dxva2.c
Changes:
=====================================
modules/video_output/opengl/interop_dxva2.c
=====================================
@@ -481,7 +481,7 @@ GLConvOpen(vlc_object_t *obj)
if (!priv)
return VLC_ENOMEM;
interop->priv = priv;
- priv->OutputFormat = D3DFMT_X8R8G8B8;
+ priv->OutputFormat = D3DFMT_A8R8G8B8;
priv->vt = vt;
HRESULT hr;
@@ -551,7 +551,7 @@ GLConvOpen(vlc_object_t *obj)
.w = {1, 1},
.h = {1, 1},
.internal = GL_RGBA,
- .format = GL_RGBA,
+ .format = GL_BGRA,
.type = GL_UNSIGNED_BYTE,
};
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9d6ad2ea387300d11eb7a3dc2f01dced233b4d22
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9d6ad2ea387300d11eb7a3dc2f01dced233b4d22
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list