To actually decode the PNG images Papyrix depends on an Arduino library called "Pngle" (PNG Loader for Embedding), so how does it work?
Its aided by some macros & enum for enforcing bounds, logging, & error reporting. There's an enum & a few globals declaring some of PNG's magic numbers, & a struct holding the parsed data & some buffers.
There's some deserialization utilities, & further clamping utils. There's a reset routine freeing any buffers & resetting properties.
1/?