calculate_image_memory

Function calculate_image_memory 

Source
fn calculate_image_memory(width: u32, height: u32) -> Option<u64>
Expand description

Calculate the memory required to decode an image in bytes. Returns None if the calculation overflows.