| 81 | /// 像素格式的高级枚举,包含元数据 |
| 82 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] |
| 83 | pub enum PixelFormat { |
| 84 | /// 已知的标准格式 |
| 85 | Known(FourCC), |
| 86 | /// 驱动返回了库不认识的私有格式 |
| 87 | Unknown(u32), |
| 88 | } |
| 89 | |
| 90 | impl PixelFormat { |
| 91 | /// 判断是否为压缩格式 (JPEG, H264) |
nothing calls this directly
no outgoing calls
no test coverage detected