Enum v4l2r::decoder::DecoderEvent
source · pub enum DecoderEvent<P: HandlesProvider> {
FrameDecoded(DqBuffer<Capture, P::HandleType>),
EndOfStream,
}Variants§
FrameDecoded(DqBuffer<Capture, P::HandleType>)
Emitted when a frame is decoded.
The parameter is the dequeued buffer, containing the plane handles of
the decoded frame as well as its V4L2 parameters such as flags. The
flags remain untouched, but the client should not take action on some
of them: for instance, when the V4L2_BUF_FLAG_LAST is set, the proper
corresponding event (resolution change or end of stream) will be
signaled appropriately.
EndOfStream
Emitted when a previously requested drain request completes.
When this event is emitted, the client knows that all the frames
corresponding to all the input buffers queued before the drain request
have been emitted.
Auto Trait Implementations§
impl<P> Freeze for DecoderEvent<P>
impl<P> !RefUnwindSafe for DecoderEvent<P>
impl<P> Send for DecoderEvent<P>
impl<P> !Sync for DecoderEvent<P>
impl<P> Unpin for DecoderEvent<P>
impl<P> !UnwindSafe for DecoderEvent<P>
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