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

Method buffer_count

rustcv-camera/src/config.rs:116–119  ·  view source on GitHub ↗

Set the number of mmap buffers to allocate. 设置要分配的 mmap 缓冲区数量。 Recommended values by target fps: - 30 fps: 5 buffers (default) - 60 fps: 8 buffers - 120 fps: 12 buffers 根据目标帧率的推荐值: - 30 fps:5 个缓冲区(默认) - 60 fps:8 个缓冲区 - 120 fps:12 个缓冲区

(mut self, count: u32)

Source from the content-addressed store, hash-verified

114 /// - 60 fps:8 个缓冲区
115 /// - 120 fps:12 个缓冲区
116 pub fn buffer_count(mut self, count: u32) -> Self {
117 self.buffer_count = count;
118 self
119 }
120}
121
122/// The actual configuration negotiated with the device driver.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected