Lossy PNG compressor for RGBA PNGs. Has two modes: lossy averaging filter (blurizer) that denoises the image and optimal posterization using Median Cut quantization to reduce number of unique colors in the image with minimal visual distortion
In the original, colorError[0], colorError[1], and colorError[2] would end up all pointing to the same row after the first row. With the change, the buffers are rotated so that row1 becomes row0, row2 becomes row1, and row0 becomes row2.
In the original, colorError[0], colorError[1], and colorError[2] would end up all pointing to the same row after the first row. With the change, the buffers are rotated so that row1 becomes row0, row2 becomes row1, and row0 becomes row2.