pub(crate) struct ParsedStreamMetadata {
    pub(crate) context: Rc<Context>,
    config: Config,
    pub(crate) surface_pool: SurfacePoolHandle,
    pub(crate) min_num_surfaces: usize,
    pub(crate) display_resolution: Resolution,
    pub(crate) map_format: Rc<VAImageFormat>,
    pub(crate) rt_format: u32,
    pub(crate) profile: i32,
}

Fields

context: Rc<Context>

A VAContext from which we can decode from.

config: Config

The VAConfig that created the context. It must kept here so that it does not get dropped while it is in use.

surface_pool: SurfacePoolHandle

A pool of surfaces. We reuse surfaces as they are expensive to allocate.

min_num_surfaces: usize

The number of surfaces required to parse the stream.

display_resolution: Resolution

The decoder current display resolution.

map_format: Rc<VAImageFormat>

The image format we will use to map the surfaces. This is usually the same as the surface’s internal format, but occasionally we can try mapping in a different format if requested and if the VA-API driver can do it.

rt_format: u32

The rt_format parsed from the stream.

profile: i32

The profile parsed from the stream.

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.