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

Method get_exposure

rustcv-backend-v4l2/src/controls.rs:62–75  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

60 }
61
62 fn get_exposure(&self) -> Result<u32> {
63 let val = self
64 .dev
65 .control(CID_EXPOSURE_ABSOLUTE)
66 .map_err(CameraError::Io)?;
67
68 match val.value {
69 Value::Integer(v) => Ok(v as u32),
70 _ => Err(CameraError::Io(std::io::Error::new(
71 std::io::ErrorKind::InvalidData,
72 "Invalid exposure value type",
73 ))),
74 }
75 }
76}
77
78// --- 2. 镜头控制 (Lens) ---

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected