pub fn optimal_path(
source: PixelDescriptor,
provenance: Provenance,
operation: OpCategory,
output: PixelDescriptor,
threshold: QualityThreshold,
) -> Option<ConversionPath>Expand description
Find the optimal conversion path for a (source, operation, output) triple.
Returns None if no path satisfies the quality threshold.
ยงArguments
source- Source pixel format (from decoder)provenance- Origin precision of the source dataoperation- What operation will be performedoutput- Target pixel format (for encoder)threshold- Maximum acceptable quality loss