Struct libvda::decode::session::Session

source ·
pub struct Session {
    connection: Rc<VdaConnection>,
    pipe: File,
    session_ptr: *mut vda_session_info,
}
Expand description

Represents a decode session.

Fields§

§connection: Rc<VdaConnection>§pipe: File§session_ptr: *mut vda_session_info

Implementations§

Creates a new Session.

Gets a reference of pipe that notifies events from VDA session.

Reads an Event object from a pipe provided a decode session.

Sends a decode request for a bitstream buffer given as fd.

fd will be closed by Chrome after decoding has occurred.

Sets the number of expected output buffers.

This function must be called after Event::ProvidePictureBuffers are notified. After calling this function, user_output_buffer must be called num_output_buffers times.

Provides an output buffer that will be filled with decoded frames.

Users calls this function after set_output_buffer_count. Then, libvda will fill next frames in the buffer and noitify Event::PictureReady.

This function is also used to notify that they consumed decoded frames in the output buffer.

This function takes ownership of output_buffer.

Returns an output buffer for reuse.

picture_buffer_id must be a value for which use_output_buffer has been called already.

Flushes the decode session.

When this operation has completed, Event::FlushResponse will be notified.

Resets the decode session.

When this operation has completed, Event::ResetResponse will be notified.

Trait Implementations§

Executes the destructor for this type. 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.