pub struct Surface {
    display: Rc<Display>,
    id: VASurfaceID,
}
Expand description

An owned VA surface that is tied to the lifetime of a particular VADisplay

Fields

display: Rc<Display>id: VASurfaceID

Implementations

Create Surfaces by wrapping around a vaCreateSurfaces call. This is just a helper for Display::create_surfaces.

Blocks until all pending operations on the render target have been completed. Upon return it is safe to use the render target for a different picture.

Convenience function to return a VASurfaceID vector. Useful to interface with the C API where a surface array might be needed.

Wrapper over vaQuerySurfaceStatus to find out any pending ops on the render target.

Returns the ID of this surface.

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.