()
| 25 | |
| 26 | impl CameraConfig { |
| 27 | pub fn new() -> Self { |
| 28 | Self { |
| 29 | resolution_req: vec![], |
| 30 | fps_req: None, |
| 31 | format_req: vec![], |
| 32 | buffer_count: 3, |
| 33 | align_stride: Some(256), // 默认对齐以利于 SIMD |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | /// 添加分辨率要求 |
| 38 | pub fn resolution(mut self, w: u32, h: u32, p: Priority) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected