circuitpython/shared-module/displayio
Jeff Epler c34b6f757f Implement gifio.GifWriter
This involves:
 * Adding a new "L8" colorspace for colorconverters
 * factoring out displayio_colorconverter_convert_pixel
 * Making a minimal "colorspace only" version of displayio for the
   unix port (testing purposes)
 * fixing an error message

I only tested writing B&W animated images, with the following script:
```python
import displayio
import gifio

with gifio.GifWriter("foo.gif", 64, 64, displayio.Colorspace.L8) as g:
    for i in range(0, 256, 14):
        data = bytes([i, 255-i] * 32 + [255-i, i] * 32) * 32
        print("add_frame")
        g.add_frame(data)

# expected to raise an error, buffer is not big enough
with gifio.GifWriter("/dev/null", 64, 64, displayio.Colorspace.L8) as g:
    g.add_frame(bytes([3,3,3]))
```
2021-10-26 08:54:18 -05:00
..
__init__.c Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
__init__.h Actually fix building ports without parallel displays 2021-08-29 11:49:47 -05:00
area.h move to displayio_area_union and away from _expand 2021-03-25 11:21:39 -05:00
Bitmap.c displayio.Bitmap: Allow modification though the buffer protocol 2021-04-03 10:41:20 -05:00
Bitmap.h displayio_bitmap_set_dirty_area: rewrite in terms of displayio_area 2021-03-18 09:20:56 -05:00
ColorConverter.c Implement gifio.GifWriter 2021-10-26 08:54:18 -05:00
ColorConverter.h Remove the pixel_luma parameter from displayio_colorconverter_compute_tricolor (Closes #5194) 2021-08-21 16:32:36 +01:00
display_core.c Actually fix building ports without parallel displays 2021-08-29 11:49:47 -05:00
display_core.h run code formatting script 2021-03-15 19:27:36 +05:30
Display.c add initial esp32c3 support 2021-09-26 09:39:40 +05:30
Display.h run code formatting script 2021-03-15 19:27:36 +05:30
EPaperDisplay.c add initial esp32c3 support 2021-09-26 09:39:40 +05:30
EPaperDisplay.h Fixing comments for PR 2021-08-25 15:07:19 -07:00
FourWire.c run code formatting script 2021-03-15 19:27:36 +05:30
FourWire.h run code formatting script 2021-03-15 19:27:36 +05:30
Group.c vectorio: add draw protocol 2021-08-02 20:19:54 -07:00
Group.h run code formatting script 2021-03-15 19:27:36 +05:30
I2CDisplay.c run code formatting script 2021-03-15 19:27:36 +05:30
I2CDisplay.h run code formatting script 2021-03-15 19:27:36 +05:30
mipi_constants.h Minor tweaks based on feedback 2018-09-06 14:49:49 -07:00
OnDiskBitmap.c OnDiskBitmap: Fix memory corruption when using palette image 2021-07-19 09:25:26 -05:00
OnDiskBitmap.h OnDiskBitmap: INCOMPATIBLE CHANGE: Allow them to use palettes 2021-05-28 10:53:21 -05:00
Palette.c Remove the pixel_luma parameter from displayio_colorconverter_compute_tricolor (Closes #5194) 2021-08-21 16:32:36 +01:00
Palette.h OnDiskBitmap: INCOMPATIBLE CHANGE: Allow them to use palettes 2021-05-28 10:53:21 -05:00
Shape.c run code formatting script 2021-03-15 19:27:36 +05:30
Shape.h run code formatting script 2021-03-15 19:27:36 +05:30
TileGrid.c Fix format (expand tab) 2021-06-10 12:11:12 +09:00
TileGrid.h run code formatting script 2021-03-15 19:27:36 +05:30