dithereens

Crates.iodithereens
lib.rsdithereens
version0.1.0
sourcesrc
created_at2024-06-17 17:49:12.199893
updated_at2024-06-17 17:49:12.199893
descriptionFunctions & traits for quantizing values with error-diffusion
homepage
repositoryhttps://github.com/virtualritz/dithereeens/
max_upload_size
id1274678
size7,581
Moritz Mœller (virtualritz)

documentation

https://docs.rs/dithereeens/

README

dithereens

Functions and traits for quantizing values with error-diffusion.

This is mostly useful when e.g. quantizing from a [f32]- or [f16]-per-channel color resolution to something like [u16]- or [u8]-per-channel. In these cases quantization without error-diffusion would lead to banding.

The crate uses generics to allow interpolation of any type for which certain traits are defined.

License

Apache-2.0 OR BSD-3-Clause OR MIT OR Zlib at your discretion.

Commit count: 0

cargo fmt