Open quantum5 opened 2 years ago
This commit introduces support for all eight 10-bit colour formats supported by wl_shm.
wl_shm
le32toh is used to convert little endian pixels to host endianness. This function is available on Linux in <endian.h> and FreeBSD in <sys/endian.h>.
le32toh
<endian.h>
<sys/endian.h>
For readability, the if/else chain is converted into a switch.
if
else
switch
This fixes #80.
This commit introduces support for all eight 10-bit colour formats supported by
wl_shm
.le32toh
is used to convert little endian pixels to host endianness. This function is available on Linux in<endian.h>
and FreeBSD in<sys/endian.h>
.For readability, the
if
/else
chain is converted into aswitch
.This fixes #80.