2 releases

0.1.1 Apr 12, 2023
0.1.0 Apr 12, 2023

#771 in Hardware support

Download history 8/week @ 2023-12-11 12/week @ 2023-12-18 1/week @ 2023-12-25 6/week @ 2024-01-08 7/week @ 2024-01-15 3/week @ 2024-01-22 10/week @ 2024-02-05 19/week @ 2024-02-12 79/week @ 2024-02-19 52/week @ 2024-02-26 25/week @ 2024-03-04 18/week @ 2024-03-11 15/week @ 2024-03-18

143 downloads per month
Used in imagine

Zlib OR Apache-2.0 OR MIT

33KB
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