pub struct GenericBackendHandle {
    state: PictureState,
    resolution: Resolution,
    surface_pool: SurfacePoolHandle,
}
Expand description

VA-API backend handle.

This includes the VA picture which can be pending rendering or complete, as well as useful meta-information.

Fields

state: PictureStateresolution: Resolution

The decoder resolution when this frame was processed. Not all codecs send resolution data in every frame header.

surface_pool: SurfacePoolHandle

A handle to the surface pool from which the backing surface originates.

Implementations

Creates a new pending handle on surface_id.

Returns a mapped VAImage. this maps the VASurface onto our address space. This can be used in place of “DynMappableHandle::map()” if the client wants to access the backend mapping directly for any reason.

Note that DynMappableHandle is downcastable.

Returns the picture of this handle.

Returns the id of the VA surface backing this handle.

Returns true if this handle is ready.

Trait Implementations

Executes the destructor for this type. Read more
Gets an exclusive reference to the backend handle of this picture. Assumes that this picture is backed by a handle and panics if not the case. 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.