[vlc-commits] [Git][videolan/vlc][master] access/dshow: map MEDIASUBTYPE_ARGB32 to VLC_CODEC_BGRA

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Sep 16 06:40:32 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
6040a1df by Steve Lhomme at 2023-09-16T06:20:07+00:00
access/dshow: map MEDIASUBTYPE_ARGB32 to VLC_CODEC_BGRA

According to the documentation [1], that's the proper byte order.

[1] https://learn.microsoft.com/en-us/windows/win32/directshow/uncompressed-rgb-video-subtypes?redirectedfrom=MSDN#remarks

- - - - -


1 changed file:

- modules/access/dshow/filter.cpp


Changes:

=====================================
modules/access/dshow/filter.cpp
=====================================
@@ -120,7 +120,7 @@ vlc_fourcc_t GetFourCCFromMediaType( const AM_MEDIA_TYPE &media_type )
             else if( media_type.subtype == MEDIASUBTYPE_RGB32 )
                i_fourcc = VLC_CODEC_RGB32;
             else if( media_type.subtype == MEDIASUBTYPE_ARGB32 )
-               i_fourcc = VLC_CODEC_RGBA;
+               i_fourcc = VLC_CODEC_BGRA;
 
             /* Planar YUV formats */
             else if( media_type.subtype == MEDIASUBTYPE_I420 )



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6040a1df198f48acae5f82891bd76858d08b3fca

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