pub enum AlphFiltering {
None,
Horizontal,
Vertical,
Gradient,
}Expand description
Filtering method (F) per RFC 9649 §2.7.1.2.
The four values are exhaustive within the 2-bit field; the spec defines a prediction rule for each (None / A / B / clip(A+B-C)).
Variants§
None
0: predictor = 0 for every pixel (no filter).
Horizontal
1: predictor = A (the pixel to the left).
Vertical
2: predictor = B (the pixel above).
Gradient
3: predictor = clip(A + B - C) — the gradient predictor.
Trait Implementations§
Source§impl Clone for AlphFiltering
impl Clone for AlphFiltering
Source§fn clone(&self) -> AlphFiltering
fn clone(&self) -> AlphFiltering
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 AlphFiltering
Source§impl Debug for AlphFiltering
impl Debug for AlphFiltering
impl Eq for AlphFiltering
Source§impl PartialEq for AlphFiltering
impl PartialEq for AlphFiltering
Source§fn eq(&self, other: &AlphFiltering) -> bool
fn eq(&self, other: &AlphFiltering) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AlphFiltering
Auto Trait Implementations§
impl Freeze for AlphFiltering
impl RefUnwindSafe for AlphFiltering
impl Send for AlphFiltering
impl Sync for AlphFiltering
impl Unpin for AlphFiltering
impl UnsafeUnpin for AlphFiltering
impl UnwindSafe for AlphFiltering
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