#[repr(u8)]pub enum IntraMode {
Show 14 variants
Dc = 0,
Vertical = 1,
Horizontal = 2,
D45 = 3,
D135 = 4,
D113 = 5,
D157 = 6,
D203 = 7,
D67 = 8,
Smooth = 9,
SmoothV = 10,
SmoothH = 11,
Paeth = 12,
FilterIntra = 13,
}Expand description
Intra prediction mode enumeration (shared by AV1 and VP9).
Variants§
Dc = 0
DC prediction (average of neighbors).
Vertical = 1
Vertical prediction (project top samples down).
Horizontal = 2
Horizontal prediction (project left samples right).
D45 = 3
Diagonal 45 degrees (down-right).
D135 = 4
Diagonal 135 degrees (up-left).
D113 = 5
Diagonal 113 degrees (AV1 naming).
D157 = 6
Diagonal 157 degrees (AV1 naming).
D203 = 7
Diagonal 203 degrees (AV1 naming).
D67 = 8
Diagonal 67 degrees (AV1 naming).
Smooth = 9
Smooth prediction (AV1).
SmoothV = 10
Smooth vertical prediction (AV1).
SmoothH = 11
Smooth horizontal prediction (AV1).
Paeth = 12
Paeth prediction (AV1).
FilterIntra = 13
Filter intra (AV1 small blocks).
Implementations§
Source§impl IntraMode
impl IntraMode
Sourcepub const fn is_directional(self) -> bool
pub const fn is_directional(self) -> bool
Check if this is a directional mode.
Sourcepub const fn nominal_angle(self) -> Option<u16>
pub const fn nominal_angle(self) -> Option<u16>
Get the nominal angle for directional modes (in degrees * 2). Returns None for non-directional modes.
Trait Implementations§
impl Copy for IntraMode
impl Eq for IntraMode
impl StructuralPartialEq for IntraMode
Auto Trait Implementations§
impl Freeze for IntraMode
impl RefUnwindSafe for IntraMode
impl Send for IntraMode
impl Sync for IntraMode
impl Unpin for IntraMode
impl UnsafeUnpin for IntraMode
impl UnwindSafe for IntraMode
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