#[repr(i8)]enum ChromaMode {
DC = 0,
V = 1,
H = 2,
TM = 3,
}
Variants§
DC = 0
Predict DC using row above and column to the left.
V = 1
Predict rows using row above.
H = 2
Predict columns using column to the left.
TM = 3
Propagate second differences.
Implementations§
Trait Implementations§
source§impl Clone for ChromaMode
impl Clone for ChromaMode
source§fn clone(&self) -> ChromaMode
fn clone(&self) -> ChromaMode
Returns a copy 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 ChromaMode
impl Debug for ChromaMode
source§impl Default for ChromaMode
impl Default for ChromaMode
source§fn default() -> ChromaMode
fn default() -> ChromaMode
Returns the “default value” for a type. Read more
source§impl PartialEq for ChromaMode
impl PartialEq for ChromaMode
source§fn eq(&self, other: &ChromaMode) -> bool
fn eq(&self, other: &ChromaMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ChromaMode
impl Eq for ChromaMode
impl StructuralPartialEq for ChromaMode
Auto Trait Implementations§
impl Freeze for ChromaMode
impl RefUnwindSafe for ChromaMode
impl Send for ChromaMode
impl Sync for ChromaMode
impl Unpin for ChromaMode
impl UnwindSafe for ChromaMode
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> 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 moresource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.