pub struct VideoFrameDescriptor {Show 16 fields
pub format: PixelFormat,
pub width: NonZeroU32,
pub height: NonZeroU32,
pub color_range: ColorRange,
pub color_matrix: ColorMatrix,
pub color_primaries: ColorPrimaries,
pub color_transfer_characteristics: ColorTransferCharacteristics,
pub chroma_location: ChromaLocation,
pub rotation: Rotation,
pub origin: Origin,
pub transparent: bool,
pub extra_alpha: bool,
pub crop_left: u32,
pub crop_top: u32,
pub crop_right: u32,
pub crop_bottom: u32,
}Fields§
§format: PixelFormat§width: NonZeroU32§height: NonZeroU32§color_range: ColorRange§color_matrix: ColorMatrix§color_primaries: ColorPrimaries§color_transfer_characteristics: ColorTransferCharacteristics§chroma_location: ChromaLocation§rotation: Rotation§origin: Origin§transparent: bool§extra_alpha: bool§crop_left: u32§crop_top: u32§crop_right: u32§crop_bottom: u32Implementations§
Source§impl VideoFrameDescriptor
impl VideoFrameDescriptor
pub fn new(format: PixelFormat, width: NonZeroU32, height: NonZeroU32) -> Self
pub fn try_new(format: PixelFormat, width: u32, height: u32) -> Result<Self>
Trait Implementations§
Source§impl Clone for VideoFrameDescriptor
impl Clone for VideoFrameDescriptor
Source§fn clone(&self) -> VideoFrameDescriptor
fn clone(&self) -> VideoFrameDescriptor
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 moreSource§impl Debug for VideoFrameDescriptor
impl Debug for VideoFrameDescriptor
Source§impl From<VideoFrameDescriptor> for FrameDescriptor
impl From<VideoFrameDescriptor> for FrameDescriptor
Source§fn from(desc: VideoFrameDescriptor) -> Self
fn from(desc: VideoFrameDescriptor) -> Self
Converts to this type from the input type.
Source§impl PartialEq for VideoFrameDescriptor
impl PartialEq for VideoFrameDescriptor
impl Eq for VideoFrameDescriptor
impl StructuralPartialEq for VideoFrameDescriptor
Auto Trait Implementations§
impl Freeze for VideoFrameDescriptor
impl RefUnwindSafe for VideoFrameDescriptor
impl Send for VideoFrameDescriptor
impl Sync for VideoFrameDescriptor
impl Unpin for VideoFrameDescriptor
impl UnwindSafe for VideoFrameDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more