Set the desired pixel format. 设置期望的像素格式。 If not set, the format is auto-selected based on the requested fps. 如果未设置,将根据请求的帧率自动选择格式。
(mut self, format: PixelFormat)
| 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 缓冲区数量。 |
nothing calls this directly
no outgoing calls
no test coverage detected