pub struct PixelBuffer {
pub format: VideoFormat,
pub size: Size,
/* private fields */
}
Fields§
§format: VideoFormat
§size: Size
Implementations§
Source§impl PixelBuffer
impl PixelBuffer
pub fn as_ref(&self) -> &CVPixelBuffer
pub fn as_raw(&self) -> CVPixelBufferRef
Trait Implementations§
Source§impl Clone for PixelBuffer
impl Clone for PixelBuffer
Source§fn clone(&self) -> PixelBuffer
fn clone(&self) -> PixelBuffer
Returns a copy 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 From<(*mut CVBuffer, VideoFormat, Size)> for PixelBuffer
impl From<(*mut CVBuffer, VideoFormat, Size)> for PixelBuffer
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 From<*mut CVBuffer> for PixelBuffer
impl From<*mut CVBuffer> for PixelBuffer
Source§fn from(buffer: CVPixelBufferRef) -> Self
fn from(buffer: CVPixelBufferRef) -> Self
Converts to this type from the input type.
impl Copy for PixelBuffer
Auto Trait Implementations§
impl Freeze for PixelBuffer
impl !RefUnwindSafe for PixelBuffer
impl !Send for PixelBuffer
impl !Sync for PixelBuffer
impl Unpin for PixelBuffer
impl !UnwindSafe for PixelBuffer
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