Struct av_metrics_decoders::FrameInfo [−][src]
pub struct FrameInfo<T> where
T: Pixel, {
pub planes: [Plane<T>; 3],
pub bit_depth: usize,
pub chroma_sampling: ChromaSampling,
}
Expand description
A container holding the data for one video frame. This includes all planes of the video. Currently, only YUV/YCbCr format is supported. Bit depths up to 16-bit are supported.
Fields
planes: [Plane<T>; 3]
A container holding three planes worth of video data. The indices in the array correspond to the following planes:
- 0 - Y/Luma plane
- 1 - U/Cb plane
- 2 - V/Cr plane
bit_depth: usize
The number of bits per pixel.
chroma_sampling: ChromaSampling
The chroma sampling format of the video. Most videos are in 4:2:0 format.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for FrameInfo<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for FrameInfo<T> where
T: UnwindSafe + RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more