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)
| 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 | /// 获取已协商的(实际)配置。 |
no test coverage detected