// Exact PNG decoding for common 8-bit formats; see pngdecode.c. #pragma once #include #include // On success returns 1 and a malloc'd buffer (caller frees) of width*height*channels bytes. int fx_png_decode(const uint8_t *data, size_t size, uint8_t **out, int *width, int *height, int *channels);