pub mod video {
pub const H264: u32 = 0x61766331;
pub const HEVC: u32 = 0x68766331;
pub const MPEG4: u32 = 0x6d703476;
pub const PRORES_422: u32 = 0x6170636e;
pub const PRORES_4444: u32 = 0x61703468;
pub const JPEG: u32 = 0x6a706567;
}
pub mod pixel {
pub const BGRA32: u32 = 0x42475241;
pub const ARGB32: u32 = 0x00000020;
pub const RGBA32: u32 = 0x52474241;
pub const YUV420_BIPLANAR_VIDEO_RANGE: u32 = 0x34323076;
pub const YUV420_BIPLANAR_FULL_RANGE: u32 = 0x34323066;
pub const YUV422: u32 = 0x79343232;
pub const RGB24: u32 = 0x00000018;
}
pub mod audio {
pub const AAC: u32 = 0x61616320;
pub const LPCM: u32 = 0x6c70636d;
pub const ALAC: u32 = 0x616c6163;
pub const MP3: u32 = 0x2e6d7033;
pub const OPUS: u32 = 0x6f707573;
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_video_codecs() {
assert_eq!(video::H264, u32::from_be_bytes(*b"avc1"));
assert_eq!(video::HEVC, u32::from_be_bytes(*b"hvc1"));
assert_eq!(video::MPEG4, u32::from_be_bytes(*b"mp4v"));
}
#[test]
fn test_pixel_formats() {
assert_eq!(pixel::BGRA32, u32::from_be_bytes(*b"BGRA"));
}
#[test]
fn test_audio_codecs() {
assert_eq!(audio::AAC, u32::from_be_bytes(*b"aac "));
}
}