[][src]Struct av_metrics::video::FrameInfo

pub struct FrameInfo<T: Pixel> {
    pub planes: [PlaneData<T>; 3],
    pub bit_depth: usize,
    pub chroma_sampling: ChromaSampling,
}

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: [PlaneData<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

impl<T: Clone + Pixel> Clone for FrameInfo<T>[src]

impl<T: Debug + Pixel> Debug for FrameInfo<T>[src]

Auto Trait Implementations

impl<T> Send for FrameInfo<T>

impl<T> Sync for FrameInfo<T>

impl<T> Unpin for FrameInfo<T> where
    T: Unpin

impl<T> UnwindSafe for FrameInfo<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for FrameInfo<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]