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

Function create_controls

rustcv-backend-v4l2/src/controls.rs:30–36  ·  view source on GitHub ↗
(dev: Arc<Device>)

Source from the content-addressed store, hash-verified

28// --- 工厂函数 ---
29
30pub fn create_controls(dev: Arc<Device>) -> DeviceControls {
31 DeviceControls {
32 sensor: Box::new(V4l2Sensor { dev: dev.clone() }),
33 lens: Box::new(V4l2Lens { dev: dev.clone() }),
34 system: Box::new(V4l2System { dev }),
35 }
36}
37
38// --- 1. 传感器控制 (Sensor) ---
39struct V4l2Sensor {

Callers 1

openFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected