pub struct Frame { /* private fields */ }Expand description
One presentation of a decoded picture. Cheap to clone; outlives the decoder; may share its picture with another frame.
Implementations§
Source§impl Frame
impl Frame
Sourcepub fn new(
picture: Arc<dyn Picture>,
interpretation: Arc<FrameInterpretation>,
timing: FrameTiming,
presentation: Presentation,
) -> Frame
pub fn new( picture: Arc<dyn Picture>, interpretation: Arc<FrameInterpretation>, timing: FrameTiming, presentation: Presentation, ) -> Frame
A frame over picture.
Sourcepub fn represent(
&self,
timing: FrameTiming,
presentation: Presentation,
) -> Frame
pub fn represent( &self, timing: FrameTiming, presentation: Presentation, ) -> Frame
The same picture and interpretation presented again with other timing (AV1 show-existing, VP8 altref replay).
Sourcepub fn interpretation(&self) -> &Arc<FrameInterpretation> ⓘ
pub fn interpretation(&self) -> &Arc<FrameInterpretation> ⓘ
How to read the samples.
Sourcepub fn timing(&self) -> FrameTiming
pub fn timing(&self) -> FrameTiming
This presentation’s timing.
Sourcepub fn presentation(&self) -> Presentation
pub fn presentation(&self) -> Presentation
Facts about this presentation.
Whether both frames present the same picture storage.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Frame
impl !UnwindSafe for Frame
impl Freeze for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
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