Function compute_rgba8_byte_length_if_within_limit

Source
pub fn compute_rgba8_byte_length_if_within_limit(
    width: usize,
    height: usize,
) -> Option<usize>
Expand description

Computes image byte length, returning None if overflow occurred or the total length exceeds the maximum image allocation size.