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

Method pixel_format

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

Set the desired pixel format. 设置期望的像素格式。 If not set, the format is auto-selected based on the requested fps. 如果未设置,将根据请求的帧率自动选择格式。

(mut self, format: PixelFormat)

Source from the content-addressed store, hash-verified

97 /// If not set, the format is auto-selected based on the requested fps.
98 /// 如果未设置,将根据请求的帧率自动选择格式。
99 pub fn pixel_format(mut self, format: PixelFormat) -> Self {
100 self.pixel_format = Some(format);
101 self
102 }
103
104 /// Set the number of mmap buffers to allocate.
105 /// 设置要分配的 mmap 缓冲区数量。

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected