pub struct ConversionPath {
pub source_format: PixelDescriptor,
pub working_format: PixelDescriptor,
pub output_format: PixelDescriptor,
pub source_to_working: ConversionCost,
pub working_suitability: u16,
pub working_to_output: ConversionCost,
pub total_score: u32,
pub total_loss: u16,
pub proven_lossless: bool,
}Expand description
A complete conversion path through the pipeline.
Fields§
§source_format: PixelDescriptorSource format (from decoder).
working_format: PixelDescriptorConvert source to this format before the operation.
output_format: PixelDescriptorConvert working format to this for the encoder.
source_to_working: ConversionCostCost of source → working conversion.
working_suitability: u16Suitability loss of the working format for the operation.
working_to_output: ConversionCostCost of working → output conversion.
total_score: u32Total weighted score (lower is better).
total_loss: u16Total loss across all conversions + suitability.
proven_lossless: boolWhether this path is proven lossless by ULP test.
Implementations§
Source§impl ConversionPath
impl ConversionPath
Sourcepub fn loss_bucket(&self) -> LossBucket
pub fn loss_bucket(&self) -> LossBucket
The loss bucket this path falls into.
Trait Implementations§
Source§impl Clone for ConversionPath
impl Clone for ConversionPath
Source§fn clone(&self) -> ConversionPath
fn clone(&self) -> ConversionPath
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConversionPath
impl RefUnwindSafe for ConversionPath
impl Send for ConversionPath
impl Sync for ConversionPath
impl Unpin for ConversionPath
impl UnsafeUnpin for ConversionPath
impl UnwindSafe for ConversionPath
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more