MCPcopy Create free account
hub / github.com/RustCV/RustCV / unknown_fourcc_preserved

Function unknown_fourcc_preserved

rustcv-camera/src/pixel_format.rs:165–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected