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:
- Get the operation’s
OpRequirement - Generate candidate working formats
- For each candidate: compute source→working cost + suitability + working→output cost
- Filter by quality threshold
- Pick lowest total cost among qualifying paths
Structs§
- Conversion
Path - A complete conversion path through the pipeline.
- Matrix
Stats - Summary statistics for a path matrix.
- Path
Entry - An entry in the full path matrix.
Enums§
- Loss
Bucket - Perceptual loss buckets, calibrated against CIEDE2000 measurements.
- Quality
Threshold - 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.