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

Function fourcc

rustcv-camera/src/pixel_format.rs:77–79  ·  view source on GitHub ↗

Helper macro to build a FourCC u32 from 4 ASCII bytes. 辅助宏:从 4 个 ASCII 字节构造 FourCC u32 值。

(a: u8, b: u8, c: u8, d: u8)

Source from the content-addressed store, hash-verified

75/// Helper macro to build a FourCC u32 from 4 ASCII bytes.
76/// 辅助宏:从 4 个 ASCII 字节构造 FourCC u32 值。
77const fn fourcc(a: u8, b: u8, c: u8, d: u8) -> u32 {
78 (a as u32) | ((b as u32) << 8) | ((c as u32) << 16) | ((d as u32) << 24)
79}
80
81/// Well-known FourCC constants matching V4L2 / kernel definitions.
82/// 与 V4L2 / 内核定义一致的常用 FourCC 常量。

Callers 1

pixel_format.rsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected