pub struct DeltaConfig {
pub max_components: usize,
pub auto_inner_threshold_bytes: Option<usize>,
pub msssim_downsample_kernel: DownsampleKernel,
}Expand description
Tuning knobs for the inter-frame delta path.
Re-exposed for published-API shape compatibility. The fields feed the
(still blocked) AnimFrameMode::Delta / AnimFrameMode::Auto paths;
they have no effect on the lossless path.
Fields§
§max_components: usizeMaximum number of disjoint dirty-rectangle components to keep when diffing two frames before falling back to a full keyframe.
auto_inner_threshold_bytes: Option<usize>Optional byte threshold below which an inner sub-rectangle delta is
preferred. None disables the heuristic.
msssim_downsample_kernel: DownsampleKernelWhich kernel to use when downsampling for the MS-SSIM quality gate.
Implementations§
Source§impl DeltaConfig
impl DeltaConfig
Sourcepub fn max_components_override(self, n: usize) -> Self
pub fn max_components_override(self, n: usize) -> Self
Override the maximum dirty-rectangle component count (builder form).
Sourcepub fn auto_inner_threshold_bytes(self, bytes: Option<usize>) -> Self
pub fn auto_inner_threshold_bytes(self, bytes: Option<usize>) -> Self
Set the inner-rectangle byte threshold (builder form).
Sourcepub fn msssim_downsample_kernel(self, kernel: DownsampleKernel) -> Self
pub fn msssim_downsample_kernel(self, kernel: DownsampleKernel) -> Self
Select the MS-SSIM downsample kernel (builder form).
Trait Implementations§
Source§impl Clone for DeltaConfig
impl Clone for DeltaConfig
Source§fn clone(&self) -> DeltaConfig
fn clone(&self) -> DeltaConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DeltaConfig
Source§impl Debug for DeltaConfig
impl Debug for DeltaConfig
Source§impl Default for DeltaConfig
impl Default for DeltaConfig
impl Eq for DeltaConfig
Source§impl PartialEq for DeltaConfig
impl PartialEq for DeltaConfig
Source§fn eq(&self, other: &DeltaConfig) -> bool
fn eq(&self, other: &DeltaConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeltaConfig
Auto Trait Implementations§
impl Freeze for DeltaConfig
impl RefUnwindSafe for DeltaConfig
impl Send for DeltaConfig
impl Sync for DeltaConfig
impl Unpin for DeltaConfig
impl UnsafeUnpin for DeltaConfig
impl UnwindSafe for DeltaConfig
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