MCPcopy Index your code
hub / github.com/RustCV/RustCV / read_decoded

Method read_decoded

rustcv-camera/src/camera.rs:133–137  ·  view source on GitHub ↗

Capture and decode the next frame into a reusable [`Mat`]. 采集并解码下一帧到可复用的 [`Mat`]。 This combines `next_frame()` + decode in a single call. The `Mat` is reused across calls to avoid per-frame allocation. 将 `next_frame()` + 解码合并为单次调用。 `Mat` 跨调用复用以避免每帧分配。

(&mut self, mat: &mut Mat)

Source from the content-addressed store, hash-verified

131 /// 将 `next_frame()` + 解码合并为单次调用。
132 /// `Mat` 跨调用复用以避免每帧分配。
133 pub fn read_decoded(&mut self, mat: &mut Mat) -> Result<bool> {
134 let frame = self.next_frame()?;
135 crate::decode::decode_frame(&frame, mat, None)?;
136 Ok(true)
137 }
138
139 /// Get the resolved (actual) configuration.
140 /// 获取已协商的(实际)配置。

Callers 1

readMethod · 0.80

Calls 2

decode_frameFunction · 0.85
next_frameMethod · 0.45

Tested by

no test coverage detected