pub struct Av1ReferenceState { /* private fields */ }Expand description
Logical AV1 reference-map order hints and global-motion state supplied to a stateless frame parse.
Implementations§
Source§impl Av1ReferenceState
impl Av1ReferenceState
Sourcepub const fn new(order_hints: [Option<u8>; 8]) -> Self
pub const fn new(order_hints: [Option<u8>; 8]) -> Self
Construct state from the eight logical AV1 reference-map order hints.
Sourcepub const fn order_hint(&self, slot: usize) -> Option<u8>
pub const fn order_hint(&self, slot: usize) -> Option<u8>
Return the order hint currently associated with one logical map slot.
Sourcepub fn global_motion(&self, slot: usize) -> Option<&[[i32; 6]; 7]>
pub fn global_motion(&self, slot: usize) -> Option<&[[i32; 6]; 7]>
Return the saved global-motion matrices of the picture in one filled
logical map slot, or None when the slot has never been refreshed.
Sourcepub fn refresh(&mut self, frame: &Av1FrameHeader)
pub fn refresh(&mut self, frame: &Av1FrameHeader)
Apply the refresh mask of one newly decoded picture.
Trait Implementations§
Source§impl Clone for Av1ReferenceState
impl Clone for Av1ReferenceState
impl Copy for Av1ReferenceState
Source§impl Debug for Av1ReferenceState
impl Debug for Av1ReferenceState
Source§impl Default for Av1ReferenceState
impl Default for Av1ReferenceState
impl Eq for Av1ReferenceState
Source§impl PartialEq for Av1ReferenceState
impl PartialEq for Av1ReferenceState
impl StructuralPartialEq for Av1ReferenceState
Auto Trait Implementations§
impl Forget for Av1ReferenceState
impl Freeze for Av1ReferenceState
impl Move for Av1ReferenceState
impl RefUnwindSafe for Av1ReferenceState
impl Send for Av1ReferenceState
impl Sync for Av1ReferenceState
impl Unpin for Av1ReferenceState
impl UnsafeUnpin for Av1ReferenceState
impl UnwindSafe for Av1ReferenceState
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