Skip to main content

optimal_path

Function optimal_path 

Source
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 data
  • operation - What operation will be performed
  • output - Target pixel format (for encoder)
  • threshold - Maximum acceptable quality loss