Skip to main content

prepare_batch

Function prepare_batch 

Source
pub fn prepare_batch(
    inputs: Vec<EncodedImage>,
    options: BatchDecodeOptions,
) -> Result<PreparedBatch, BatchInfrastructureError>
Expand description

Inspect, validate, and group owned encoded images without decoding pixels.

Per-image failures are retained in PreparedBatch::errors. The outer error is reserved for batch infrastructure and allocation failures.