1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! AVFoundation camera backend for macOS and iOS.
//!
//! Provides native Apple camera support through objc2 bindings.
//!
//! # Platform support
//!
//! - macOS and iOS using the linked Apple SDK frameworks
//! - Deployment support depends on the APIs used by the host application
//!
//! # Features
//!
//! Compared with UVC, the AVFoundation backend provides:
//!
//! - Support for native Apple cameras such as FaceTime HD and iOS cameras.
//! - Better power management.
//! - Front and rear camera switching.
//! - Integration with system camera permissions.
//!
//! # Architecture
//!
//! ```text
//! ┌─────────────────────────────────────────────────────────────┐
//! │ AVFoundationCamera │
//! │ (implements CameraManager, StreamingCamera, CameraControl) │
//! └─────────────────────────────────────────────────────────────┘
//! │
//! ▼
//! ┌─────────────────────────────────────────────────────────────┐
//! │ CaptureSession │
//! │ (wraps AVCaptureSession, AVCaptureDeviceInput, │
//! │ AVCaptureVideoDataOutput) │
//! └─────────────────────────────────────────────────────────────┘
//! │
//! ▼
//! ┌─────────────────────────────────────────────────────────────┐
//! │ FrameDelegate │
//! │ (frame callbacks, conversion, and channel delivery) │
//! └─────────────────────────────────────────────────────────────┘
//! ```
pub
pub use AVFoundationCamera;