fuchsia_image_format

Function image_format_plane_byte_offset

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

Returns the byte offset for the given plane.

Returns an error if the plane is unsupported or a valid offset can’t be generated from image_format.