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

Method open

rustcv-backend-avf/src/lib.rs:70–79  ·  view source on GitHub ↗
(
        &self,
        id: &str,
        config: CameraConfig,
    )

Source from the content-addressed store, hash-verified

68 }
69
70 fn open(
71 &self,
72 id: &str,
73 config: CameraConfig,
74 ) -> Result<(Box<dyn Stream>, DeviceControls), CameraError> {
75 let stream = stream::AvfStream::new(id, config)
76 .map_err(|e| CameraError::Io(std::io::Error::other(e)))?;
77 let controls = create_dummy_controls();
78 Ok((Box::new(stream), controls))
79 }
80}
81
82fn create_dummy_controls() -> DeviceControls {

Callers 1

mainFunction · 0.45

Calls 1

create_dummy_controlsFunction · 0.85

Tested by

no test coverage detected