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

Method export_state

rustcv-backend-msmf/src/controls.rs:151–162  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

149 }
150
151 fn export_state(&self) -> Result<serde_json::Value> {
152 use serde_json::json;
153
154 let exposure = unsafe {
155 get_media_type_uint64(&self.source_reader.0, &MF_MT_VIDEO_LIGHTING).map(|v| v as u32)
156 };
157
158 Ok(json!({
159 "backend": "msmf",
160 "exposure": exposure,
161 }))
162 }
163}

Callers

nothing calls this directly

Calls 1

get_media_type_uint64Function · 0.85

Tested by

no test coverage detected