Function aravis::buffer_size_wh

source ·
pub fn buffer_size_wh(format: PixelFormat, width: usize, height: usize) -> usize
Expand description

Calculate the size in bytes for a image with a pixel format, width and height.

For packed formats, the returned size is rounded up to the nearest whole byte.