| 2 | |
| 3 | #[derive(Debug, Clone)] |
| 4 | pub struct CameraConfig { |
| 5 | pub resolution_req: Vec<(u32, u32, Priority)>, |
| 6 | pub fps_req: Option<(u32, Priority)>, |
| 7 | pub format_req: Vec<(PixelFormat, Priority)>, |
| 8 | pub buffer_count: usize, // Ring Buffer 大小,默认 3 |
| 9 | pub align_stride: Option<usize>, // 强制内存对齐 (如 256字节) |
| 10 | } |
| 11 | |
| 12 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] |
| 13 | pub enum Priority { |
nothing calls this directly
no outgoing calls
no test coverage detected