pub struct VideoFrameCreator;Implementations§
Source§impl VideoFrameCreator
impl VideoFrameCreator
pub fn create( &self, format: PixelFormat, width: u32, height: u32, ) -> Result<Frame<'static>>
pub fn create_with_descriptor( &self, desc: VideoFrameDescriptor, ) -> Result<Frame<'static>>
pub fn create_from_buffer<'a, T>( &self, format: PixelFormat, width: u32, height: u32, buffer: T, ) -> Result<Frame<'a>>
pub fn create_from_buffer_with_descriptor<'a, T>( &self, desc: VideoFrameDescriptor, buffer: T, ) -> Result<Frame<'a>>
pub fn create_from_aligned_buffer<'a, T>( &self, format: PixelFormat, width: u32, height: u32, stride: u32, buffer: T, ) -> Result<Frame<'a>>
pub fn create_from_aligned_buffer_with_descriptor<'a, T>( &self, desc: VideoFrameDescriptor, stride: NonZeroU32, buffer: T, ) -> Result<Frame<'a>>
pub fn create_from_packed_buffer<'a, T>( &self, format: PixelFormat, width: u32, height: u32, stride: u32, buffer: T, ) -> Result<Frame<'a>>
pub fn create_from_packed_buffer_with_descriptor<'a, T>( &self, desc: VideoFrameDescriptor, stride: NonZeroU32, buffer: T, ) -> Result<Frame<'a>>
pub fn create_from_buffers<'a>( &self, format: PixelFormat, width: u32, height: u32, buffers: &[(&'a [u8], u32)], ) -> Result<Frame<'a>>
pub fn create_from_buffers_with_descriptor<'a>( &self, desc: VideoFrameDescriptor, buffers: &[(&'a [u8], u32)], ) -> Result<Frame<'a>>
pub fn create_empty( &self, format: PixelFormat, width: u32, height: u32, ) -> Result<Frame<'static>>
pub fn create_empty_with_descriptor( &self, desc: VideoFrameDescriptor, ) -> Result<Frame<'static>>
Auto Trait Implementations§
impl Freeze for VideoFrameCreator
impl RefUnwindSafe for VideoFrameCreator
impl Send for VideoFrameCreator
impl Sync for VideoFrameCreator
impl Unpin for VideoFrameCreator
impl UnwindSafe for VideoFrameCreator
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
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