pub enum VideoDecoderBackendEvent {
StreamFormatChanged,
InputBufferDone {
buffer_id: u32,
error: i32,
},
FrameCompleted {
buffer_id: u32,
timestamp: timeval,
bytes_used: Vec<u32>,
is_last: bool,
},
}Expand description
Events reported by the VideoDecoderBackendSession::next_event method.
Variants§
StreamFormatChanged
Sent whenever the format of the stream has changed. The new format can be read using
VideoDecoderBackendSession::current_format.
InputBufferDone
Sent whenever an OUTPUT buffer is done processing and can be reused.
Fields
FrameCompleted
Sent whenever a decoded frame is ready on the CAPTURE queue.
Trait Implementations§
Source§impl Clone for VideoDecoderBackendEvent
impl Clone for VideoDecoderBackendEvent
Source§fn clone(&self) -> VideoDecoderBackendEvent
fn clone(&self) -> VideoDecoderBackendEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VideoDecoderBackendEvent
impl Debug for VideoDecoderBackendEvent
impl Eq for VideoDecoderBackendEvent
Source§impl PartialEq for VideoDecoderBackendEvent
impl PartialEq for VideoDecoderBackendEvent
Source§fn eq(&self, other: &VideoDecoderBackendEvent) -> bool
fn eq(&self, other: &VideoDecoderBackendEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VideoDecoderBackendEvent
Auto Trait Implementations§
impl Freeze for VideoDecoderBackendEvent
impl RefUnwindSafe for VideoDecoderBackendEvent
impl Send for VideoDecoderBackendEvent
impl Sync for VideoDecoderBackendEvent
impl Unpin for VideoDecoderBackendEvent
impl UnsafeUnpin for VideoDecoderBackendEvent
impl UnwindSafe for VideoDecoderBackendEvent
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