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>
impl<LumaData, ChromaData> RefUnwindSafe for FrameBitmapYCbCr<LumaData, ChromaData>where
ChromaData: RefUnwindSafe,
LumaData: RefUnwindSafe,
impl<LumaData, ChromaData> Send for FrameBitmapYCbCr<LumaData, ChromaData>
impl<LumaData, ChromaData> Sync for FrameBitmapYCbCr<LumaData, ChromaData>
impl<LumaData, ChromaData> Unpin for FrameBitmapYCbCr<LumaData, ChromaData>
impl<LumaData, ChromaData> UnwindSafe for FrameBitmapYCbCr<LumaData, ChromaData>where
ChromaData: UnwindSafe,
LumaData: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more