libcamera/formats.rs
1//! Pixel format constants generated from the installed `libcamera/formats.h`.
2//!
3//! The names and values in this module mirror `libcamera::formats` for the
4//! libcamera version detected at build time. Use these to avoid hand-rolling
5//! fourcc/modifier pairs:
6//!
7//! ```text
8//! // Example:
9//! // let fmt = PixelFormat::parse("NV12").unwrap();
10//! // let info = fmt.info().unwrap();
11//! // assert_eq!(fmt.to_string(), info.name);
12//! ```
13include!(concat!(env!("OUT_DIR"), "/formats.rs"));