pub struct VideoFrameData {Show 15 fields
pub planes: Vec<FramePlane>,
pub width: u32,
pub height: u32,
pub format: PixelFormat,
pub picture_type: PictureType,
pub color_range: ColorRange,
pub color_space: ColorSpace,
pub color_primaries: ColorPrimaries,
pub color_trc: ColorTransferCharacteristic,
pub chroma_location: ChromaLocation,
pub sample_aspect_ratio: Rational,
pub crop_top: u32,
pub crop_bottom: u32,
pub crop_left: u32,
pub crop_right: u32,
}Expand description
Video-specific frame data.
Fields§
§planes: Vec<FramePlane>§width: u32§height: u32§format: PixelFormat§picture_type: PictureType§color_range: ColorRange§color_space: ColorSpace§color_primaries: ColorPrimaries§color_trc: ColorTransferCharacteristic§chroma_location: ChromaLocation§sample_aspect_ratio: Rational§crop_top: u32Crop rectangle — number of pixels to discard from each edge.
crop_bottom: u32§crop_left: u32§crop_right: u32Trait Implementations§
Source§impl Clone for VideoFrameData
impl Clone for VideoFrameData
Source§fn clone(&self) -> VideoFrameData
fn clone(&self) -> VideoFrameData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VideoFrameData
impl RefUnwindSafe for VideoFrameData
impl Send for VideoFrameData
impl Sync for VideoFrameData
impl Unpin for VideoFrameData
impl UnsafeUnpin for VideoFrameData
impl UnwindSafe for VideoFrameData
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