Skip to main content

compact_to_buf

Function compact_to_buf 

Source
pub fn compact_to_buf(
    view: &PixelView<'_>,
) -> Result<Option<PixelBuf>, At<ConvertError>>
Expand description

Analyze view and compact into a newly allocated PixelBuf if a narrower bit-exact representation exists (Ok(None) if already minimal), preserving allocation errors.