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

Method stop

rustcv-camera/src/backend/linux/mod.rs:177–185  ·  view source on GitHub ↗

Stop video streaming. 停止视频流。

(&mut self)

Source from the content-addressed store, hash-verified

175 /// Stop video streaming.
176 /// 停止视频流。
177 pub fn stop(&mut self) -> Result<()> {
178 if !self.streaming {
179 return Ok(());
180 }
181 v4l2_sys::stream_off(self.fd)?;
182 self.streaming = false;
183 self.pending_queue = None;
184 Ok(())
185 }
186
187 /// Dequeue a frame from the driver (blocking).
188 /// 从驱动出队一帧(阻塞)。

Callers 1

dropMethod · 0.45

Calls 1

stream_offFunction · 0.85

Tested by

no test coverage detected