PixelBuffer
struct · ferroui-media-apple · v0.5.0
struct PixelBuffer
Members
as_raw
fn as_raw(self: &Self) -> *mut c_void
Borrowed CoreVideo handle, valid only while this buffer remains leased. Native clients must retain it for asynchronous use and never mutate it.
from_owned
unsafe fn from_owned(handle: *mut c_void) -> Option<Self>
Adopts an immutable CoreVideo reference from a native producer.
Safety
The non-null pointer must be a valid +1 CVPixelBuffer reference. Its producer must not mutate/reuse pixels while any owner or lease exists.
info
fn info(self: &Self) -> (u32, u32, u64, u64, i32)
surface
fn surface(self: &Self) -> Option<usize>
Trait implementations
FreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherSendSyncDrop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.