判断是否为 Bayer 原始格式 (需要 Demosaic)
(&self)
| 98 | |
| 99 | /// 判断是否为 Bayer 原始格式 (需要 Demosaic) |
| 100 | pub fn is_bayer(&self) -> bool { |
| 101 | match self { |
| 102 | Self::Known(cc) => matches!( |
| 103 | *cc, |
| 104 | FourCC::BA81 | FourCC::GBRG | FourCC::GRBG | FourCC::RGGB |
| 105 | ), |
| 106 | _ => false, |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | /// 估算每像素比特数 (Bits Per Pixel),用于计算带宽 |
| 111 | pub fn bpp_estimate(&self) -> u32 { |
nothing calls this directly
no outgoing calls
no test coverage detected