pub struct VideoFrame { /* private fields */ }

Implementations

Creates a new VideoFrame which is empty: no allocated storage (reference-counted or otherwise). Can be filled via DecodeContext::decode_video.

Creates a new VideoFrame with an owned (not reference-counted) buffer of the specified dimensions.

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.