pub struct VideoFrameDescriptor {Show 15 fields
pub format: PixelFormat,
pub dimensions: Dimensions,
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§dimensions: Dimensions§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>
pub fn width(&self) -> NonZeroU32
pub fn height(&self) -> NonZeroU32
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§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 FrameDescriptorSpec for VideoFrameDescriptor
impl FrameDescriptorSpec for VideoFrameDescriptor
fn media_type(&self) -> MediaType
fn create_frame(&self) -> Result<Frame<'static, Self>>
fn as_video(&self) -> Option<&VideoFrameDescriptor>
fn as_audio(&self) -> Option<&AudioFrameDescriptor>
fn as_data(&self) -> Option<&DataFrameDescriptor>
Source§impl FrameSpec<VideoFrameDescriptor> for VideoFrame<'_>
impl FrameSpec<VideoFrameDescriptor> for VideoFrame<'_>
fn new_with_descriptor( desc: VideoFrameDescriptor, ) -> Result<Frame<'static, VideoFrameDescriptor>>
fn media_type(&self) -> MediaType
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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