pub enum PredictionMode {
Show 34 variants DC_PRED, V_PRED, H_PRED, D45_PRED, D135_PRED, D113_PRED, D157_PRED, D203_PRED, D67_PRED, SMOOTH_PRED, SMOOTH_V_PRED, SMOOTH_H_PRED, PAETH_PRED, UV_CFL_PRED, NEARESTMV, NEAR0MV, NEAR1MV, NEAR2MV, GLOBALMV, NEWMV, NEAREST_NEARESTMV, NEAR_NEAR0MV, NEAR_NEAR1MV, NEAR_NEAR2MV, NEAREST_NEWMV, NEW_NEARESTMV, NEAR_NEW0MV, NEAR_NEW1MV, NEAR_NEW2MV, NEW_NEAR0MV, NEW_NEAR1MV, NEW_NEAR2MV, GLOBAL_GLOBALMV, NEW_NEWMV,
}

Variants§

§

DC_PRED

§

V_PRED

§

H_PRED

§

D45_PRED

§

D135_PRED

§

D113_PRED

§

D157_PRED

§

D203_PRED

§

D67_PRED

§

SMOOTH_PRED

§

SMOOTH_V_PRED

§

SMOOTH_H_PRED

§

PAETH_PRED

§

UV_CFL_PRED

§

NEARESTMV

§

NEAR0MV

§

NEAR1MV

§

NEAR2MV

§

GLOBALMV

§

NEWMV

§

NEAREST_NEARESTMV

§

NEAR_NEAR0MV

§

NEAR_NEAR1MV

§

NEAR_NEAR2MV

§

NEAREST_NEWMV

§

NEW_NEARESTMV

§

NEAR_NEW0MV

§

NEAR_NEW1MV

§

NEAR_NEW2MV

§

NEW_NEAR0MV

§

NEW_NEAR1MV

§

NEW_NEAR2MV

§

GLOBAL_GLOBALMV

§

NEW_NEWMV

Implementations§

source§

impl PredictionMode

source

pub fn is_compound(self) -> bool

source

pub fn has_nearmv(self) -> bool

source

pub fn has_newmv(self) -> bool

source

pub fn ref_mv_idx(self) -> usize

source

pub fn predict_intra<T: Pixel>( self, tile_rect: TileRect, dst: &mut PlaneRegionMut<'_, T>, tx_size: TxSize, bit_depth: usize, ac: &[i16], intra_param: IntraParam, ief_params: Option<IntraEdgeFilterParameters>, edge_buf: &IntraEdge<'_, T>, cpu: CpuFeatureLevel )

Panics
  • If called on an inter PredictionMode
source

pub fn is_intra(self) -> bool

source

pub fn is_cfl(self) -> bool

source

pub fn is_directional(self) -> bool

source

pub const fn angle_delta_count(self) -> i8

source

pub fn predict_inter_single<T: Pixel>( self, fi: &FrameInvariants<T>, tile_rect: TileRect, p: usize, po: PlaneOffset, dst: &mut PlaneRegionMut<'_, T>, width: usize, height: usize, ref_frame: RefType, mv: MotionVector )

Inter prediction with a single reference (i.e. not compound mode)

Panics
  • If called on an intra PredictionMode
source

pub fn predict_inter_compound<T: Pixel>( self, fi: &FrameInvariants<T>, tile_rect: TileRect, p: usize, po: PlaneOffset, dst: &mut PlaneRegionMut<'_, T>, width: usize, height: usize, ref_frames: [RefType; 2], mvs: [MotionVector; 2], buffer: &mut InterCompoundBuffers )

Inter prediction with two references.

Panics
  • If called on an intra PredictionMode
source

pub fn predict_inter<T: Pixel>( self, fi: &FrameInvariants<T>, tile_rect: TileRect, p: usize, po: PlaneOffset, dst: &mut PlaneRegionMut<'_, T>, width: usize, height: usize, ref_frames: [RefType; 2], mvs: [MotionVector; 2], compound_buffer: &mut InterCompoundBuffers )

Inter prediction that determines whether compound mode is being used based on the second [RefType] in [ref_frames].

Trait Implementations§

source§

impl Clone for PredictionMode

source§

fn clone(&self) -> PredictionMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PredictionMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for PredictionMode

source§

fn default() -> PredictionMode

Returns the “default value” for a type. Read more
source§

impl Ord for PredictionMode

source§

fn cmp(&self, other: &PredictionMode) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for PredictionMode

source§

fn eq(&self, other: &PredictionMode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for PredictionMode

source§

fn partial_cmp(&self, other: &PredictionMode) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for PredictionMode

source§

impl Eq for PredictionMode

source§

impl StructuralEq for PredictionMode

source§

impl StructuralPartialEq for PredictionMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.