pub(crate) fn check_dimension_overflow( width: u32, height: u32, bytes_per_pixel: u8, ) -> bool
Checks if the provided dimensions would cause an overflow.