3 releases

0.1.2 May 25, 2024
0.1.1 Apr 12, 2023
0.1.0 Apr 12, 2023

#249 in Images

33 downloads per month
Used in imagine

Zlib OR Apache-2.0 OR MIT

32KB
564 lines

Docs.rs

png_filters

PNG filtering related functions


lib.rs:

Functions to remove the PNG Filters from encoded bytes.

This crate has functions to "reconstruct" the bytes using plain rust and also using explicit SIMD. There's some overhead to move data into and out of SIMD registers, so at a low number of bytes per pixel you are advised to not use the SIMD functions.

Generally you should just call unfilter_lines, which will handle an entire image all at once, and it will automatically select the best functions based on the bytes per pixel.

No runtime deps