Enum rav1e::prelude::PredictionMode
source · 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
impl PredictionMode
pub fn is_compound(self) -> bool
pub fn has_nearmv(self) -> bool
pub fn has_newmv(self) -> bool
pub fn ref_mv_idx(self) -> usize
sourcepub 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
)
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
pub fn is_intra(self) -> bool
pub fn is_cfl(self) -> bool
pub fn is_directional(self) -> bool
pub const fn angle_delta_count(self) -> i8
sourcepub 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
)
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
sourcepub 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
)
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 )
sourcepub 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
)
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
impl Clone for PredictionMode
source§fn clone(&self) -> PredictionMode
fn clone(&self) -> PredictionMode
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 PredictionMode
impl Debug for PredictionMode
source§impl Default for PredictionMode
impl Default for PredictionMode
source§fn default() -> PredictionMode
fn default() -> PredictionMode
Returns the “default value” for a type. Read more
source§impl Ord for PredictionMode
impl Ord for PredictionMode
source§fn cmp(&self, other: &PredictionMode) -> Ordering
fn cmp(&self, other: &PredictionMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PredictionMode
impl PartialEq for PredictionMode
source§fn eq(&self, other: &PredictionMode) -> bool
fn eq(&self, other: &PredictionMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PredictionMode
impl PartialOrd for PredictionMode
source§fn partial_cmp(&self, other: &PredictionMode) -> Option<Ordering>
fn partial_cmp(&self, other: &PredictionMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moreimpl Copy for PredictionMode
impl Eq for PredictionMode
impl StructuralPartialEq for PredictionMode
Auto Trait Implementations§
impl Freeze for PredictionMode
impl RefUnwindSafe for PredictionMode
impl Send for PredictionMode
impl Sync for PredictionMode
impl Unpin for PredictionMode
impl UnwindSafe for PredictionMode
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