Skip to main content

Module path

Module path 

Source
Expand description

Conversion path solver — find the optimal (source, operation, output) path.

Given a source format, an operation category, and an output format, the solver finds the cheapest conversion chain that satisfies quality constraints.

The algorithm:

  1. Get the operation’s OpRequirement
  2. Generate candidate working formats
  3. For each candidate: compute source→working cost + suitability + working→output cost
  4. Filter by quality threshold
  5. Pick lowest total cost among qualifying paths

Structs§

ConversionPath
A complete conversion path through the pipeline.
MatrixStats
Summary statistics for a path matrix.
PathEntry
An entry in the full path matrix.

Enums§

LossBucket
Perceptual loss buckets, calibrated against CIEDE2000 measurements.
QualityThreshold
Quality threshold for path selection.

Functions§

generate_path_matrix
Generate optimal paths for all (source, op, output) triples across codec pairs.
matrix_stats
Compute summary statistics for a path matrix.
optimal_path
Find the optimal conversion path for a (source, operation, output) triple.