Skip to main content

Resampling

Type Alias Resampling 

Source
pub type Resampling<T, const N: usize> = dyn ResamplingPlan<T, N> + Send + Sync;
Expand description

Type alias for a thread-safe, dynamically dispatched ResamplingPlan.

Returned by scaler planning methods (e.g. plan_rgba_resampling) and intended to be stored as Arc<Resampling<T, N>> so the plan can be shared across threads or held for the lifetime of a processing pipeline.

§Example

let plan: Arc<Resampling<u8, 4>> =
    scaler.plan_rgba_resampling(source_size, target_size, true)?;