()
| 163 | |
| 164 | #[test] |
| 165 | fn unknown_fourcc_preserved() { |
| 166 | // Unknown FourCC values should round-trip through Other(u32). |
| 167 | // 未知的 FourCC 值应通过 Other(u32) 完成往返转换。 |
| 168 | let unknown = 0xDEADBEEF; |
| 169 | let fmt = PixelFormat::from_fourcc(unknown); |
| 170 | assert_eq!(fmt, PixelFormat::Other(unknown)); |
| 171 | assert_eq!(fmt.to_fourcc(), unknown); |
| 172 | } |
| 173 | } |
nothing calls this directly
no outgoing calls
no test coverage detected