FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PixelBuffer

    struct · ferroui-media-apple · v0.5.0

    struct PixelBuffer
    

    View source

    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.

    Source

    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.

    Source

    info

    fn info(self: &Self) -> (u32, u32, u64, u64, i32)
    

    Source

    surface

    fn surface(self: &Self) -> Option<usize>
    

    Source

    Trait implementations

    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Send
    • Sync
    • Drop

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.