Crate png_filters
source ·Expand description
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.
Modules
- Functions in this module are always available, they don’t depend on CPU intrinsics or even on a specific CPU architecture.
- PNG filter functions specialized to the
sse2
cpu extension. - PNG filter functions specialized to the
sse2
cpu extension.
Functions
- Given the bytes for each filtered line, unfilters the data in place.