circuitpython/ports/unix
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
..
variants Implement gifio.GifWriter 2021-10-26 08:54:18 -05:00
.gitignore Merge MicroPython 1.12 into CircuitPython 2021-05-03 14:01:18 -07:00
Makefile Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
alloc.c codeformat 2021-04-19 22:22:44 -07:00
coverage.c Rename EXTENDED_FIELDS -> MP_TYPE_EXTENDED_FIELDS 2021-07-12 06:57:59 -05:00
coveragecpp.cpp esp32,unix: Support building C++ code. 2020-10-29 15:29:50 +11:00
displayio_colorspace_only.c Implement gifio.GifWriter 2021-10-26 08:54:18 -05:00
fatfs_port.c unix/fatfs_port: Fix month offset in timestamp calculation. 2020-09-02 00:19:06 +10:00
gccollect.c Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
input.c Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
input.h ports: Make new ports/ sub-directory and move all ports there. 2017-09-06 13:40:51 +10:00
main.c Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
modffi.c Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
modjni.c py: Introduce and use mp_raise_type_arg helper. 2021-07-15 00:12:41 +10:00
modmachine.c Merge MicroPython 1.14 into CircuitPython 2021-05-11 15:07:40 -07:00
modos.c Merge MicroPython 1.13 into CircuitPython 2021-05-04 18:06:33 -07:00
modtermios.c Merge MicroPython 1.12 into CircuitPython 2021-05-03 14:01:18 -07:00
modtime.c Merge MicroPython 1.14 into CircuitPython 2021-05-11 15:07:40 -07:00
moduos_vfs.c Merge MicroPython 1.13 into CircuitPython 2021-05-04 18:06:33 -07:00
moduselect.c Rename EXTENDED_FIELDS -> MP_TYPE_EXTENDED_FIELDS 2021-07-12 06:57:59 -05:00
mpbthciport.c extmod/nimble: Make stm32 and unix NimBLE ports use synchronous events. 2020-11-13 17:19:05 +11:00
mpbtstackport.h unix: Implement BLE H4 HCI UART for btstack/nimble. 2020-09-08 12:53:24 +10:00
mpbtstackport_common.c unix/mpbtstackport_common: Implement mp_bluetooth_hci_active. 2021-02-12 12:07:05 +11:00
mpbtstackport_h4.c unix: Implement BLE H4 HCI UART for btstack/nimble. 2020-09-08 12:53:24 +10:00
mpbtstackport_usb.c extmod/modbluetooth: Refactor stack/hci/driver/port bindings. 2020-09-08 11:41:31 +10:00
mpconfigport.h Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
mpconfigport.mk Merge MicroPython 1.13 into CircuitPython 2021-05-04 18:06:33 -07:00
mphalport.h Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
mpnimbleport.c extmod/nimble: Make stm32 and unix NimBLE ports use synchronous events. 2020-11-13 17:19:05 +11:00
mpnimbleport.h unix: Implement BLE H4 HCI UART for btstack/nimble. 2020-09-08 12:53:24 +10:00
mpthreadport.c Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
mpthreadport.h Merge MicroPython 1.13 into CircuitPython 2021-05-04 18:06:33 -07:00
qstrdefsport.h Merge MicroPython 1.13 into CircuitPython 2021-05-04 18:06:33 -07:00
unix_mphal.c Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00