Enum libvda::decode::event::Event

source ·
pub enum Event {
    ProvidePictureBuffers {
        min_num_buffers: u32,
        width: i32,
        height: i32,
        visible_rect_left: i32,
        visible_rect_top: i32,
        visible_rect_right: i32,
        visible_rect_bottom: i32,
    },
    PictureReady {
        buffer_id: i32,
        bitstream_id: i32,
        left: i32,
        top: i32,
        right: i32,
        bottom: i32,
    },
    NotifyEndOfBitstreamBuffer {
        bitstream_id: i32,
    },
    NotifyError(Response),
    ResetResponse(Response),
    FlushResponse(Response),
}
Expand description

Represents a notified event from libvda.

Variants§

§

ProvidePictureBuffers

Fields

§min_num_buffers: u32
§width: i32
§height: i32
§visible_rect_left: i32
§visible_rect_top: i32
§visible_rect_right: i32
§visible_rect_bottom: i32

Requests the users to provide output buffers.

§

PictureReady

Fields

§buffer_id: i32
§bitstream_id: i32
§left: i32
§top: i32
§right: i32
§bottom: i32

Notifies the user of a decoded frame ready for display. These events will arrive in display order.

§

NotifyEndOfBitstreamBuffer

Fields

§bitstream_id: i32

Notifies the end of bitstream buffer.

§

NotifyError(Response)

§

ResetResponse(Response)

Notifies the result of operation issued by Session::reset.

§

FlushResponse(Response)

Notifies the result of operation issued by Session::flush.

Implementations§

Creates a new Event from a vda_event_t instance. This function is safe if event was a value read from libvda’s pipe.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.