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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.