pub struct PixelMomeryBuffer<'a> {
pub size: Size,
pub format: VideoFormat,
pub data: [&'a [u8]; 3],
pub linesize: [usize; 3],
/* private fields */
}
Fields§
§size: Size
§format: VideoFormat
§data: [&'a [u8]; 3]
§linesize: [usize; 3]
Implementations§
Source§impl<'a> PixelMomeryBuffer<'a>
impl<'a> PixelMomeryBuffer<'a>
pub fn as_ref(&self) -> CVPixelBufferRef
Trait Implementations§
Source§impl<'a> Drop for PixelMomeryBuffer<'a>
impl<'a> Drop for PixelMomeryBuffer<'a>
Source§impl<'a> From<(*mut CVBuffer, VideoFormat, Size)> for PixelMomeryBuffer<'a>
impl<'a> From<(*mut CVBuffer, VideoFormat, Size)> for PixelMomeryBuffer<'a>
Source§fn from((buffer, format, size): (CVPixelBufferRef, VideoFormat, Size)) -> Self
fn from((buffer, format, size): (CVPixelBufferRef, VideoFormat, Size)) -> Self
Converts to this type from the input type.
Source§impl<'a> From<*mut CVBuffer> for PixelMomeryBuffer<'a>
impl<'a> From<*mut CVBuffer> for PixelMomeryBuffer<'a>
Source§fn from(buffer: CVPixelBufferRef) -> Self
fn from(buffer: CVPixelBufferRef) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for PixelMomeryBuffer<'a>
impl<'a> !RefUnwindSafe for PixelMomeryBuffer<'a>
impl<'a> !Send for PixelMomeryBuffer<'a>
impl<'a> !Sync for PixelMomeryBuffer<'a>
impl<'a> Unpin for PixelMomeryBuffer<'a>
impl<'a> !UnwindSafe for PixelMomeryBuffer<'a>
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