podcastparser icon indicating copy to clipboard operation
podcastparser copied to clipboard

Support for bitmaps in 8-bit arrays

Open rangeTonic opened this issue 8 years ago • 0 comments

Bitmaps encoded in 16 bit unsigned short arrays produce one garbage byte in memory per 2 pixels:

0000RRRR GGGGBBBB,  0000RRRR GGGGBBBB,  0000RRRR GGGGBBBB ...

As an alternative, bitmaps can be stored in 8 bit arrays instead, like this:

RRRRGGGG,  BBBBRRRR,  GGGGBBBB,  RRRRGGGG, BBBBRRRR,  GGGGBBBB ...

rangeTonic avatar Jul 13 '17 13:07 rangeTonic