struct Backend {
    backend: VaapiBackend<Header>,
}

Fields

backend: VaapiBackend<Header>

Implementations

Create a new codec backend for VP8.

A clamp such that min <= x <= max

Gets the VASurfaceID for the given picture.

Trait Implementations

Called when new stream parameters are found.
Called when the decoder wants the backend to finish the decoding operations for picture. The argument block dictates whether this call should wait until the current decode finishes, or whether it should return immediately. Read more
The type that the backend returns as a result of a decode operation. This will usually be some backend-specific type with a resource and a resource pool so that said buffer can be reused for another decode operation when it goes out of scope. Read more
Returns the current coded resolution of the bitstream being processed. This may be None if we have not read the stream parameters yet. Read more
Returns the current display resolution of the bitstream being processed. This may be None if we have not read the stream parameters yet. Read more
Gets the number of output resources allocated by the backend.
Gets the number of output resources left in the backend.
Gets the chosen format. This is set to a default after the decoder reads enough stream metadata from the bitstream. Some buffers need to be processed first before the default format can be set. Read more
Try altering the decoded format.
Poll for any ready pictures. block dictates whether this call should block on the operation or return immediately. Read more
Whether the handle is ready for presentation. The decoder will check this before returning the handle to clients. Read more
Block on handle handle.

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.