pub fn get_bytes_per_pixel(
    pixel_format: PixelFormat
) -> Result<usize, GetBytesPerPixelError>
Expand description

Get number of bytes per pixel for given pixel_format. Currently only packed pixel formats are supported. Planar formats (e.g. NV12) are not supported.