Enum libvda::encode::event::Event

source ·
pub enum Event {
    RequireInputBuffers {
        input_count: u32,
        input_frame_width: u32,
        input_frame_height: u32,
        output_buffer_size: u32,
    },
    ProcessedInputBuffer(VeaInputBufferId),
    ProcessedOutputBuffer {
        output_buffer_id: VeaOutputBufferId,
        payload_size: u32,
        key_frame: bool,
        timestamp: i64,
    },
    FlushResponse {
        flush_done: bool,
    },
    NotifyError(VeaError),
}
Expand description

Represents a notified event from libvda.

Variants§

§

RequireInputBuffers

Fields

§input_count: u32
§input_frame_width: u32
§input_frame_height: u32
§output_buffer_size: u32

Requests the user to provide input buffers.

§

ProcessedInputBuffer(VeaInputBufferId)

Notifies the user that an input buffer has been processed.

§

ProcessedOutputBuffer

Fields

§output_buffer_id: VeaOutputBufferId
§payload_size: u32
§key_frame: bool
§timestamp: i64

Notifies the user that an output buffer has been processed.

§

FlushResponse

Fields

§flush_done: bool

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

§

NotifyError(VeaError)

Notifies the user of an error.

Implementations§

Creates a new Event from a vea_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.