MCPcopy Create free account
hub / github.com/RustCV/RustCV / new

Method new

rustcv-camera/src/backend/macos/mod.rs:112–117  ·  view source on GitHub ↗

Create a new (uninitialized) AVFoundation backend. 创建新的(未初始化的)AVFoundation 后端。

()

Source from the content-addressed store, hash-verified

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` 指定的摄像头设备。

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected