<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/shared-module/displayio/OnDiskBitmap.c, branch 6.1.x</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=6.1.x</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=6.1.x'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2020-12-17T16:54:37+00:00</updated>
<entry>
<title>OnDiskBitmap: Correct handling of "0 color palette" images</title>
<updated>2020-12-17T16:54:37+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2020-12-17T16:54:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f224ed18488b1e92b6d13b09b696769a2ac380ce'/>
<id>urn:sha1:f224ed18488b1e92b6d13b09b696769a2ac380ce</id>
<content type='text'>
Microsoft documentation says:

&gt; If biCompression equals BI_RGB and the bitmap uses 8 bpp or less, the bitmap has a color table immediatelly following the BITMAPINFOHEADER structure. The color table consists of an array of RGBQUAD values. The size of the array is given by the biClrUsed member. If biClrUsed is zero, the array contains the maximum number of colors for the given bitdepth; that is, 2^biBitCount colors.

Formerly, we treated 0 colors as "no image palette" during construction,
but then during common_hal_displayio_ondiskbitmap_get_pixel indexed into
the palette anyway.  This could have unpredictable results.  On a pygamer,
it gave an image that was blue and black.  On magtag, it gave a crash.
</content>
</entry>
<entry>
<title>More cleanup</title>
<updated>2019-08-22T23:16:09+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2019-08-22T23:16:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=72e7ffa324f8184cb2d9a5ca9fa620a2a5a56b69'/>
<id>urn:sha1:72e7ffa324f8184cb2d9a5ca9fa620a2a5a56b69</id>
<content type='text'>
</content>
</entry>
<entry>
<title>EPaper displays work mostly.</title>
<updated>2019-08-22T21:08:33+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2019-08-02T23:17:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=70680d5b22aa6cb797ccf26645d553a4c72b5100'/>
<id>urn:sha1:70680d5b22aa6cb797ccf26645d553a4c72b5100</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix off by one error in OnDiskBitmap</title>
<updated>2019-04-17T22:17:11+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2019-04-17T22:17:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c372567330fe8019ee306e8a45638f2703a09ca0'/>
<id>urn:sha1:c372567330fe8019ee306e8a45638f2703a09ca0</id>
<content type='text'>
It resulted in the first row of pixels being pulled for out of bounds.

Fixes #1801
</content>
</entry>
<entry>
<title>fixed typo</title>
<updated>2019-03-01T15:32:46+00:00</updated>
<author>
<name>Bryan Siepert</name>
<email>bsiepert@gmail.com</email>
</author>
<published>2019-03-01T15:32:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=76dc8e1ac861b11d01c2e82ecfdbaea761c84fd0'/>
<id>urn:sha1:76dc8e1ac861b11d01c2e82ecfdbaea761c84fd0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fixed whitespace, clarified variable name, and updated error messages</title>
<updated>2019-03-01T15:17:50+00:00</updated>
<author>
<name>Bryan Siepert</name>
<email>bsiepert@gmail.com</email>
</author>
<published>2019-03-01T15:16:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=014595bff593e51012483515adf92e21c7126f5d'/>
<id>urn:sha1:014595bff593e51012483515adf92e21c7126f5d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>added monochrome, 8bpp indexed, and 32bpp ARGB BMPs</title>
<updated>2019-03-01T07:08:12+00:00</updated>
<author>
<name>Bryan Siepert</name>
<email>bsiepert@gmail.com</email>
</author>
<published>2019-02-28T05:02:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=398c7060f8a51bb83b0f5e0c2a1611d684603d2b'/>
<id>urn:sha1:398c7060f8a51bb83b0f5e0c2a1611d684603d2b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>(fork rebuild) Initial support for 16bpp 555&amp;565 and 8bpp grayscale bitmaps</title>
<updated>2019-02-23T18:58:46+00:00</updated>
<author>
<name>Bryan Siepert</name>
<email>bsiepert@gmail.com</email>
</author>
<published>2019-02-23T18:58:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b81072e7501045bfa5e8e5b74631dfe01327af2b'/>
<id>urn:sha1:b81072e7501045bfa5e8e5b74631dfe01327af2b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>adding height and width to OnDiskBitmap for #1460</title>
<updated>2019-01-21T06:33:22+00:00</updated>
<author>
<name>Bryan Siepert</name>
<email>bsiepert@gmail.com</email>
</author>
<published>2019-01-21T06:33:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ab2ad7ba4542c2e133ced64ccb8e9d0b4065e86f'/>
<id>urn:sha1:ab2ad7ba4542c2e133ced64ccb8e9d0b4065e86f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add OnDiskBitmap which loads pixel data straight from disk.</title>
<updated>2018-09-12T22:25:59+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2018-09-11T05:00:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f21cf15c384756ae462fdffded79c4bda8afcc28'/>
<id>urn:sha1:f21cf15c384756ae462fdffded79c4bda8afcc28</id>
<content type='text'>
Also, renamed Sprite's palette to pixel_shader so it can be
anything that produces colors based on values (including color values).
Added a ColorConverter that converts RGB888 (found in bitmaps) to
RGB565 for the display.

Fixes #1182
</content>
</entry>
</feed>
