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

Method set_exposure

rustcv-backend-msmf/src/controls.rs:61–70  ·  view source on GitHub ↗

Sets the camera exposure time. # Arguments `value_us` - Exposure time in microseconds

(&self, value_us: u32)

Source from the content-addressed store, hash-verified

59 ///
60 /// * `value_us` - Exposure time in microseconds
61 fn set_exposure(&self, value_us: u32) -> Result<()> {
62 unsafe {
63 set_media_type_uint64(
64 &self.source_reader.0,
65 &MF_MT_VIDEO_LIGHTING,
66 value_us as u64,
67 );
68 }
69 Ok(())
70 }
71
72 /// Gets the current exposure time.
73 ///

Callers

nothing calls this directly

Calls 1

set_media_type_uint64Function · 0.85

Tested by

no test coverage detected