pub enum NonDirectionalMode {
Dc,
Smooth,
SmoothV,
SmoothH,
Paeth,
}Expand description
Non-directional prediction modes.
Variants§
Dc
DC prediction.
Smooth
Smooth prediction (bilinear interpolation).
SmoothV
Smooth vertical only.
SmoothH
Smooth horizontal only.
Paeth
Paeth prediction (adaptive).
Implementations§
Source§impl NonDirectionalMode
impl NonDirectionalMode
Sourcepub const fn from_intra_mode(mode: IntraMode) -> Option<Self>
pub const fn from_intra_mode(mode: IntraMode) -> Option<Self>
Convert from IntraMode.
Trait Implementations§
Source§impl Clone for NonDirectionalMode
impl Clone for NonDirectionalMode
Source§fn clone(&self) -> NonDirectionalMode
fn clone(&self) -> NonDirectionalMode
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 moreSource§impl Debug for NonDirectionalMode
impl Debug for NonDirectionalMode
Source§impl Default for NonDirectionalMode
impl Default for NonDirectionalMode
Source§fn default() -> NonDirectionalMode
fn default() -> NonDirectionalMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for NonDirectionalMode
impl PartialEq for NonDirectionalMode
impl Copy for NonDirectionalMode
impl Eq for NonDirectionalMode
impl StructuralPartialEq for NonDirectionalMode
Auto Trait Implementations§
impl Freeze for NonDirectionalMode
impl RefUnwindSafe for NonDirectionalMode
impl Send for NonDirectionalMode
impl Sync for NonDirectionalMode
impl Unpin for NonDirectionalMode
impl UnsafeUnpin for NonDirectionalMode
impl UnwindSafe for NonDirectionalMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more