Crate png_filters

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§

fallbacks
Functions in this module are always available, they don’t depend on CPU intrinsics or even on a specific CPU architecture.
sse2
PNG filter functions specialized to the sse2 cpu extension.
sse4_1
PNG filter functions specialized to the sse2 cpu extension.

Functions§

unfilter_lines
Given the bytes for each filtered line, unfilters the data in place.