Browse Source

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.
pull/162/head
Steve Lhomme 3 years ago
parent
commit
622a5812e3
  1. 4
      modules/access/shm.c

4
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;

Loading…
Cancel
Save