[vlc-commits] [Git][videolan/vlc][master] access/shm: use default 15-bit/16-bit chroma without a mask

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Oct 4 18:06:51 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
622a5812 by Steve Lhomme at 2023-10-04T17:53:33+00:00
access/shm: use default 15-bit/16-bit chroma without a mask

These correspond to the format with the "fixed" mask depending on endianness.

SHM was always using the native endianness and the default masks for each
bit depth.

- - - - -


1 changed file:

- modules/access/shm.c


Changes:

=====================================
modules/access/shm.c
=====================================
@@ -158,10 +158,10 @@ static int Open (vlc_object_t *obj)
             chroma = VLC_CODEC_RGB24; bpp = 24;
             break;
         case 16:
-            chroma = VLC_CODEC_RGB16; bpp = 16;
+            chroma = VLC_CODEC_RGB565; bpp = 16;
             break;
         case 15:
-            chroma = VLC_CODEC_RGB15; bpp = 16;
+            chroma = VLC_CODEC_RGB555; bpp = 16;
             break;
         case 8:
             chroma = VLC_CODEC_RGB233; bpp = 8;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/622a5812e320ac6cfc3d1d2fd638536cf2810ef3

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