Browse Source

xwd: replace VLC_CODEC_RGB15 with RGB555LE/BE

This is the format depending on the host byte order.
pull/162/head
Steve Lhomme 3 years ago
committed by Jean-Baptiste Kempf
parent
commit
77f57b0592
  1. 3
      modules/codec/xwd.c

3
modules/codec/xwd.c

@ -68,7 +68,8 @@ static int Decode (decoder_t *dec, block_t *block)
break;
case 15:
if (ntohl(hdr->bits_per_pixel) == 16)
chroma = VLC_CODEC_RGB15;
chroma = ntohl(hdr->byte_order) == 0 /* LSBFirst */ ?
VLC_CODEC_RGB555LE : VLC_CODEC_RGB555BE;
break;
case 16:
if (ntohl(hdr->bits_per_pixel) == 16)

Loading…
Cancel
Save