Struct av_metrics::video::FrameInfo
source · [−]pub struct FrameInfo<T: Pixel> {
pub planes: Arc<[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: Arc<[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> Send for FrameInfo<T>
impl<T> Sync for FrameInfo<T>
impl<T> Unpin for FrameInfo<T>
impl<T> UnwindSafe for FrameInfo<T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more