pub enum AlphaFilter {
None,
Horizontal,
Vertical,
Gradient,
}Expand description
Alpha filtering method (RFC 9649 §2.7.1 Figure 10, field F).
Variants§
None
No filtering: the predictor is always 0, so residuals are the alpha values themselves.
Horizontal
Horizontal: predict each value from the pixel to its left.
Vertical
Vertical: predict each value from the pixel above.
Gradient
Gradient: predict from clip(left + top − topleft).
Trait Implementations§
Source§impl Clone for AlphaFilter
impl Clone for AlphaFilter
Source§fn clone(&self) -> AlphaFilter
fn clone(&self) -> AlphaFilter
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 AlphaFilter
Source§impl Debug for AlphaFilter
impl Debug for AlphaFilter
impl Eq for AlphaFilter
Source§impl PartialEq for AlphaFilter
impl PartialEq for AlphaFilter
Source§fn eq(&self, other: &AlphaFilter) -> bool
fn eq(&self, other: &AlphaFilter) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AlphaFilter
Auto Trait Implementations§
impl Freeze for AlphaFilter
impl RefUnwindSafe for AlphaFilter
impl Send for AlphaFilter
impl Sync for AlphaFilter
impl Unpin for AlphaFilter
impl UnsafeUnpin for AlphaFilter
impl UnwindSafe for AlphaFilter
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