pub enum IntraMode {
Show 13 variants
Dc,
V,
H,
D45,
D135,
D113,
D157,
D203,
D67,
Smooth,
SmoothV,
SmoothH,
Paeth,
}Expand description
The 13 intra prediction modes (§6.10.2), in their coded order.
Variants§
Dc
DC_PRED (0).
V
V_PRED (1).
H
H_PRED (2).
D45
D45_PRED (3).
D135
D135_PRED (4).
D113
D113_PRED (5).
D157
D157_PRED (6).
D203
D203_PRED (7).
D67
D67_PRED (8).
Smooth
SMOOTH_PRED (9).
SmoothV
SMOOTH_V_PRED (10).
SmoothH
SMOOTH_H_PRED (11).
Paeth
PAETH_PRED (12).
Implementations§
Source§impl IntraMode
impl IntraMode
Sourcepub fn from_index(index: u8) -> Option<Self>
pub fn from_index(index: u8) -> Option<Self>
The mode for a coded index, or None if out of range.
Sourcepub fn is_directional(self) -> bool
pub fn is_directional(self) -> bool
Whether this is a directional mode (is_directional_mode, §7.11.2): the
eight modes V through D67.
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