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

Method set_focus

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

Sets the camera focus position. # Arguments `focus` - Focus position (device-specific range)

(&self, focus: u32)

Source from the content-addressed store, hash-verified

109 ///
110 /// * `focus` - Focus position (device-specific range)
111 fn set_focus(&self, focus: u32) -> Result<()> {
112 unsafe {
113 set_media_type_uint64(&self.source_reader.0, &MF_MT_VIDEO_LIGHTING, focus as u64);
114 }
115 Ok(())
116 }
117}
118
119/// System control implementation for MSMF cameras.

Callers

nothing calls this directly

Calls 1

set_media_type_uint64Function · 0.85

Tested by

no test coverage detected