pub struct PredictionEngine { /* private fields */ }Expand description
Main prediction engine coordinating intra and inter prediction.
Implementations§
Source§impl PredictionEngine
impl PredictionEngine
Sourcepub fn predict_block(
&mut self,
mode_info: &BlockModeInfo,
x: u32,
y: u32,
plane: u8,
dst: &mut [u16],
stride: usize,
) -> CodecResult<()>
pub fn predict_block( &mut self, mode_info: &BlockModeInfo, x: u32, y: u32, plane: u8, dst: &mut [u16], stride: usize, ) -> CodecResult<()>
Predict a block.
Sourcepub fn set_reference_frame(&mut self, idx: usize, frame: VideoFrame)
pub fn set_reference_frame(&mut self, idx: usize, frame: VideoFrame)
Set reference frame.
Sourcepub fn set_current_frame(&mut self, frame: VideoFrame)
pub fn set_current_frame(&mut self, frame: VideoFrame)
Set current frame.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PredictionEngine
impl RefUnwindSafe for PredictionEngine
impl Send for PredictionEngine
impl Sync for PredictionEngine
impl Unpin for PredictionEngine
impl UnsafeUnpin for PredictionEngine
impl UnwindSafe for PredictionEngine
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 more