Create a new (uninitialized) AVFoundation backend. 创建新的(未初始化的)AVFoundation 后端。
()
| 110 | /// Create a new (uninitialized) AVFoundation backend. |
| 111 | /// 创建新的(未初始化的)AVFoundation 后端。 |
| 112 | pub fn new() -> Self { |
| 113 | Self { |
| 114 | cam: std::ptr::null_mut(), |
| 115 | frame_buf: Vec::new(), |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | /// Open the camera device at `index` (embedded in the `device` string). |
| 120 | /// 打开 `device` 字符串中 `index` 指定的摄像头设备。 |
nothing calls this directly
no outgoing calls
no test coverage detected