apple-cf 0.7.1

Safe Rust bindings for Apple's shared Core* frameworks (CoreFoundation, CoreMedia, CoreVideo, CoreGraphics, IOSurface, Dispatch).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Core Video types and wrappers.
//!
//! Provides safe Rust wrappers for `CVPixelBuffer` and `CVPixelBufferPool`,
//! the `CoreVideo` primitives that pair an `IOSurface` with format metadata
//! (pixel format, dimensions, planes). Required for any pipeline that
//! talks to `VideoToolbox` decoders, Vision, or `AVFoundation` capture.

mod buffer;
mod metal_texture_cache;
mod pixel_buffer;

pub use buffer::{CVAttachmentMode, CVBuffer, CVImageBuffer, CVImageRect, CVImageSize};
pub use metal_texture_cache::CVMetalTextureCache;
pub use pixel_buffer::{
    CVPixelBuffer, CVPixelBufferLockFlags, CVPixelBufferLockGuard, CVPixelBufferPool,
    PixelBufferCursorExt,
};