pub(crate) enum StreamMetadataState {
    Unparsed {
        display: Rc<Display>,
    },
    Parsed(ParsedStreamMetadata),
}
Expand description

State of the input stream, which can be either unparsed (we don’t know the stream properties yet) or parsed (we know the stream properties and are ready to decode).

Variants

Unparsed

Fields

display: Rc<Display>

The metadata for the current stream has not yet been parsed.

Parsed(ParsedStreamMetadata)

The metadata for the current stream has been parsed and a suitable VAContext has been created to accomodate it.

Implementations

Returns a reference to the parsed metadata state or an error if we haven’t reached that state yet.

Returns a mutable reference to the parsed metadata state or an error if we haven’t reached that state yet.

Gets a set of supported formats for the particular stream being processed. This requires that some buffers be processed before this call is made. Only formats that are compatible with the current color space, bit depth, and chroma format are returned such that no conversion is needed.

Initializes or reinitializes the codec state.

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.