pub enum VideoPresentOutcome {
Presented {
pts_us: i64,
sample_index: usize,
generation: u64,
zero_copy_gpu: bool,
},
HoldCurrentFrame,
Buffering,
Ended,
}Expand description
Zero-clone presentation outcome returned by VideoPlaybackPipeline::present_vsync.
Variants§
Presented
A new frame replaced pipeline.current_frame() without cloning frame pixel storage.
Fields
HoldCurrentFrame
Display refresh cadence is faster than video frame rate; held existing frame without forging pixels.
Buffering
Background decoder is filling the PTS queue.
Ended
Stream reached end-of-stream and all queued frames were presented.
Trait Implementations§
Source§impl Clone for VideoPresentOutcome
impl Clone for VideoPresentOutcome
impl Copy for VideoPresentOutcome
Source§impl Debug for VideoPresentOutcome
impl Debug for VideoPresentOutcome
Source§impl Default for VideoPresentOutcome
impl Default for VideoPresentOutcome
impl Eq for VideoPresentOutcome
Source§impl Hash for VideoPresentOutcome
impl Hash for VideoPresentOutcome
Source§impl PartialEq for VideoPresentOutcome
impl PartialEq for VideoPresentOutcome
impl StructuralPartialEq for VideoPresentOutcome
Auto Trait Implementations§
impl Forget for VideoPresentOutcome
impl Freeze for VideoPresentOutcome
impl Move for VideoPresentOutcome
impl RefUnwindSafe for VideoPresentOutcome
impl Send for VideoPresentOutcome
impl Sync for VideoPresentOutcome
impl Unpin for VideoPresentOutcome
impl UnsafeUnpin for VideoPresentOutcome
impl UnwindSafe for VideoPresentOutcome
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