diff options
author | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2019-04-21 15:49:49 +0300 |
---|---|---|
committer | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2019-04-23 17:02:13 +0300 |
commit | 6484da572117eaee88567f7b167ab261e28e7873 (patch) | |
tree | 3dccf95daeef8f31538e35181f93bb85546bafe5 /thirdparty/enet/peer.c | |
parent | 49b6423874e8ea2bdc866f5b3abe6acba1d54b1b (diff) |
Import 4/1 bit bmp images
Add some sanity checks according to bmp specification.
Read color table and index data within the same scope and
then simply extend the color palette.
This particular implementation has one limitation: not all 4/1 bit images
can be imported as it requires bit unpacking (size dimensions must be
a multiple of 8 for 1-bit and 2 (even) for 4-bit images).
Diffstat (limited to 'thirdparty/enet/peer.c')
0 files changed, 0 insertions, 0 deletions