pub fn linear_size( coded_height: u32, bytes_per_row: u32, type_: &PixelFormatType, ) -> Result<u32, Error>
Returns the linear size for the given type_.
type_
Returns an error if type_ is unsupported.