[vlc-commits] [Git][videolan/vlc][master] mft: map MFVideoFormat_ARGB32 to VLC_CODEC_BGRA

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sun Sep 17 10:42:30 UTC 2023



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
17c28a8d by Steve Lhomme at 2023-09-17T10:23:10+00:00
mft: map MFVideoFormat_ARGB32 to VLC_CODEC_BGRA

The documentation [1] says that it's equivalent to D3DFMT_A8R8G8B8.
And the d3d10 porting documentation [2] says it's equivalent to
DXGI_FORMAT_B8G8R8A8_UNORM.

[1] https://learn.microsoft.com/en-us/windows/win32/medfound/video-subtype-guids
[2] https://learn.microsoft.com/en-us/windows/win32/direct3d10/d3d10-graphics-programming-guide-resources-legacy-formats

- - - - -


1 changed file:

- modules/codec/mft.cpp


Changes:

=====================================
modules/codec/mft.cpp
=====================================
@@ -294,7 +294,7 @@ static const pair_format_guid video_format_table[] =
 static const pair_format_guid d3d_format_table[] = {
     { VLC_CODEC_RGB32, MFVideoFormat_RGB32  },
     { VLC_CODEC_RGB24, MFVideoFormat_RGB24  },
-    { VLC_CODEC_RGBA,  MFVideoFormat_ARGB32 },
+    { VLC_CODEC_BGRA,  MFVideoFormat_ARGB32 },
     { VLC_CODEC_GREY,  MFVideoFormat_L8 },
     { 0, GUID_NULL }
 };



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/17c28a8dbe38b26b93b811fa73ab4972b7cbff6a

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/17c28a8dbe38b26b93b811fa73ab4972b7cbff6a
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