pub fn get_plane_row_bytes(
    image_format: &ImageFormat2,
    plane: u32
) -> Result<u32, Error>
Expand description

Returns the number of bytes per row for a given plane.

Returns an error if no such number of bytes can be found, either because a number can’t be generated from image_format or because the plane is unsupported.