MCPcopy Create free account
hub / github.com/ImageOptim/libimagequant / liq_max3

Function liq_max3

src/blur.rs:33–35  ·  view source on GitHub ↗
(src: &[u8], dst: &mut [u8], width: usize, height: usize)

Source from the content-addressed store, hash-verified

31/// Picks maximum of neighboring pixels (blur + lighten)
32#[inline(never)]
33pub(crate) fn liq_max3(src: &[u8], dst: &mut [u8], width: usize, height: usize) {
34 liq_op3(src, dst, width, height, |a, b| a.max(b));
35}
36
37pub(crate) fn liq_op3(src: &[u8], dst: &mut [u8], width: usize, height: usize, op: impl Fn(u8, u8) -> u8) {
38 for j in 0..height {

Callers 1

contrast_mapsMethod · 0.85

Calls 1

liq_op3Function · 0.85

Tested by

no test coverage detected