pub struct Frame {
    pub kind: MediaKind,
    pub buf: Box<dyn FrameBuffer>,
    pub t: TimeInfo,
}
Expand description

Decoded frame information.

Fields

kind: MediaKind

The kind of frame (audio or video).

buf: Box<dyn FrameBuffer>

Frame buffer containing the data associated to each plane.

t: TimeInfo

Timestamp information associated to a frame.

Implementations

Creates a new frame.

Trait Implementations

Formats the value using the given formatter. Read more

Copies from a slice into a frame.

Copies a determined plane to an output buffer.

Copies a frame to an output buffer.

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.