添加像素格式要求 支持传入 PixelFormat 或 FourCC (会自动转换)
(mut self, fmt: T, p: Priority)
| 49 | /// 添加像素格式要求 |
| 50 | /// 支持传入 PixelFormat 或 FourCC (会自动转换) |
| 51 | pub fn format<T: Into<PixelFormat>>(mut self, fmt: T, p: Priority) -> Self { |
| 52 | self.format_req.push((fmt.into(), p)); |
| 53 | self |
| 54 | } |
| 55 | |
| 56 | /// 设置缓冲区数量 (默认 3) |
| 57 | pub fn buffer_count(mut self, count: usize) -> Self { |