判断是否为压缩格式 (JPEG, H264)
(&self)
| 90 | impl PixelFormat { |
| 91 | /// 判断是否为压缩格式 (JPEG, H264) |
| 92 | pub fn is_compressed(&self) -> bool { |
| 93 | match self { |
| 94 | Self::Known(cc) => matches!(*cc, FourCC::MJPEG | FourCC::H264), |
| 95 | _ => false, |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | /// 判断是否为 Bayer 原始格式 (需要 Demosaic) |
| 100 | pub fn is_bayer(&self) -> bool { |
nothing calls this directly
no outgoing calls
no test coverage detected