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

Interface SensorControl

rustcv-core/src/traits.rs:133–137  ·  view source on GitHub ↗

传感器控制 Trait

Source from the content-addressed store, hash-verified

131
132/// 传感器控制 Trait
133pub trait SensorControl: Send + Sync {
134 fn set_exposure(&self, value_us: u32) -> Result<()>;
135 fn get_exposure(&self) -> Result<u32>;
136 // ... Gain, WhiteBalance 可以在此扩展
137}
138
139/// 镜头控制 Trait (允许并发操作,不阻塞 Sensor)
140pub trait LensControl: Send + Sync {

Callers

nothing calls this directly

Implementers 3

lib.rsrustcv-backend-avf/src/lib.rs
controls.rsrustcv-backend-msmf/src/controls.rs
controls.rsrustcv-backend-v4l2/src/controls.rs

Calls

no outgoing calls

Tested by

no test coverage detected