pub struct DeltaOptions<'a> {
pub width: u16,
pub height: u16,
pub palette: &'a [Rgb],
pub transparent_idx: u8,
pub fuzz_threshold: u32,
pub dither: DitherType,
pub dither_strength: f32,
}Expand description
Options for delta compression. Options for configuring the delta compression engine.
Fields§
§width: u16Width of the frame.
height: u16Height of the frame.
palette: &'a [Rgb]The global palette to use for indexing.
transparent_idx: u8The index to use for transparent pixels.
fuzz_threshold: u32Squared perceptual threshold for “fuzzy” equality.
dither: DitherTypeType of dithering to apply to opaque pixels.
dither_strength: f32Strength of the dithering effect (0.0 to 1.0).
Auto Trait Implementations§
impl<'a> Freeze for DeltaOptions<'a>
impl<'a> RefUnwindSafe for DeltaOptions<'a>
impl<'a> Send for DeltaOptions<'a>
impl<'a> Sync for DeltaOptions<'a>
impl<'a> Unpin for DeltaOptions<'a>
impl<'a> UnwindSafe for DeltaOptions<'a>
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