pub struct ReferenceSelection { /* private fields */ }Expand description
Reference selection optimizer.
Implementations§
Source§impl ReferenceSelection
impl ReferenceSelection
Sourcepub fn new(max_references: usize, temporal_bias: f64) -> Self
pub fn new(max_references: usize, temporal_bias: f64) -> Self
Creates a new reference selector.
Sourcepub fn select_references(
&self,
current_poc: i32,
available_frames: &[(usize, i32)],
src: &[u8],
) -> Vec<usize>
pub fn select_references( &self, current_poc: i32, available_frames: &[(usize, i32)], src: &[u8], ) -> Vec<usize>
Selects best reference frames.
Sourcepub fn should_keep_as_reference(&self, frame_type: FrameType, layer: u8) -> bool
pub fn should_keep_as_reference(&self, frame_type: FrameType, layer: u8) -> bool
Determines if a frame should be kept as reference.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReferenceSelection
impl RefUnwindSafe for ReferenceSelection
impl Send for ReferenceSelection
impl Sync for ReferenceSelection
impl Unpin for ReferenceSelection
impl UnsafeUnpin for ReferenceSelection
impl UnwindSafe for ReferenceSelection
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