pub fn linear_size(
    coded_height: u32,
    bytes_per_row: u32,
    type_: &PixelFormatType
) -> Result<u32, Error>
Expand description

Returns the linear size for the given type_.

Returns an error if type_ is unsupported.