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

Method start

rustcv-backend-msmf/src/stream.rs:455–473  ·  view source on GitHub ↗

Starts the video capture stream. This initiates the first sample request, which triggers the callback pipeline.

(&mut self)

Source from the content-addressed store, hash-verified

453 ///
454 /// This initiates the first sample request, which triggers the callback pipeline.
455 async fn start(&mut self) -> Result<()> {
456 self.shared.is_running.store(true, Ordering::Release);
457
458 unsafe {
459 self.source_reader
460 .0
461 .ReadSample(
462 MF_SOURCE_READER_FIRST_VIDEO_STREAM.0 as u32,
463 0,
464 None,
465 None,
466 None,
467 None,
468 )
469 .map_err(win_err)?;
470 }
471
472 Ok(())
473 }
474
475 /// Stops the video capture stream.
476 ///

Callers 1

main_bodyFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected