Struct crabgrab::feature::bitmap::FrameBitmapYCbCr

source ·
pub struct FrameBitmapYCbCr<LumaData: BitmapDataLuma, ChromaData: BitmapDataChroma> {
    pub luma_data: LumaData,
    pub luma_width: usize,
    pub luma_height: usize,
    pub chroma_data: ChromaData,
    pub chroma_width: usize,
    pub chroma_height: usize,
    pub range: VideoRange,
}
Expand description

A YCbCr image, corresponding to either V420 or F420 pixel formats.

Dual-planar, with luminance (Y) in one plane, and chrominance (CbCr) in another. Note that each plane may have a different size, as with V420 format, where the chroma plane is 2 by 2 blocks, but luma is per-pixel

Fields§

§luma_data: LumaData§luma_width: usize§luma_height: usize§chroma_data: ChromaData§chroma_width: usize§chroma_height: usize§range: VideoRange

Auto Trait Implementations§

§

impl<LumaData, ChromaData> Freeze for FrameBitmapYCbCr<LumaData, ChromaData>
where LumaData: Freeze, ChromaData: Freeze,

§

impl<LumaData, ChromaData> RefUnwindSafe for FrameBitmapYCbCr<LumaData, ChromaData>
where LumaData: RefUnwindSafe, ChromaData: RefUnwindSafe,

§

impl<LumaData, ChromaData> Send for FrameBitmapYCbCr<LumaData, ChromaData>
where LumaData: Send, ChromaData: Send,

§

impl<LumaData, ChromaData> Sync for FrameBitmapYCbCr<LumaData, ChromaData>
where LumaData: Sync, ChromaData: Sync,

§

impl<LumaData, ChromaData> Unpin for FrameBitmapYCbCr<LumaData, ChromaData>
where LumaData: Unpin, ChromaData: Unpin,

§

impl<LumaData, ChromaData> UnwindSafe for FrameBitmapYCbCr<LumaData, ChromaData>
where LumaData: UnwindSafe, ChromaData: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,

§

impl<T> WasmNotSend for T
where T: Send,

§

impl<T> WasmNotSendSync for T
where T: WasmNotSend + WasmNotSync,

§

impl<T> WasmNotSync for T
where T: Sync,