pub fn compact_in_place_with_pulse(
buf: &mut PixelBuf,
alpha_strategy: AlphaCompaction,
pulse: Option<&dyn Pulse>,
) -> Result<CompactOutcome, At<ConvertError>>Expand description
Analyze and compact buf in place with optional cooperative cancellation and progress
via pulse (pass None when not needed).
Cooperative cancellation is checked throughout the read-only analysis scan before any
in-place byte mutation begins, so a cancelled call leaves buf unmodified.