Function image::codecs::bmp::decoder::check_for_overflow

source ยท
fn check_for_overflow(
    width: i32,
    length: i32,
    channels: usize,
) -> ImageResult<()>
Expand description

Convenience function to check if the combination of width, length and number of channels would result in a buffer that would overflow.