summaryrefslogtreecommitdiff
path: root/shared-bindings/bitmaptools/__init__.h
AgeCommit message (Collapse)Author
2021-03-17ran pre-commit for formatting fixesKevin Matocha
2021-03-17merge upstream/mainKevin Matocha
2021-03-16re-format with uncrustifyJeff Epler
2021-03-16Add reverse_rows option to bitmaptools.readintoKevin Matocha
2021-03-15add arrayblitJeff Epler
2021-03-14bitmaptools: Add readintoJeff Epler
When reading uncompressed bitmap data directly, readinto can work much more quickly than a Python-coded loop. On a Raspberry Pi Pico, I benchmarked a modified version of adafruit_bitmap_font's pcf reader which uses readinto instead of the existing code. My test font was a 72-point file created from Arial. This decreased the time to load all the ASCII glyphs from 4.9 seconds to just 0.44 seconds. While this attempts to support many pixel configurations (1/2/4/8/16/24/32 bpp; swapped words and pixels) only the single combination used by PCF fonts was tested.
2021-03-10add fill_region and draw_line to bitmaptoolsKevin Matocha
2021-02-23Add bitmaptools moduleKevin Matocha