Skip to main content

webp_dequantize_levels

Function webp_dequantize_levels 

Source
pub fn webp_dequantize_levels(
    data: Option<&mut [u8]>,
    width: i32,
    height: i32,
    stride: i32,
    strength: i32,
) -> bool
Expand description

Smooths a plane that was quantized to a few levels, with a filter whose radius grows with strength (0 to 100). Returns false for a missing plane, a non-positive size, a strength outside [0, 100], or an allocation failure; the plane is then unchanged.

ยงPanics

Panics when data is shorter than stride * height samples.