autocommit 2022-03-11 20:04:41 CET
This commit is contained in:
parent
0ae73ab9c4
commit
eb1d500561
10 changed files with 93 additions and 75 deletions
|
|
@ -29,11 +29,11 @@ pub fn formats() -> &'static AHashMap<u32, &'static Format> {
|
|||
&*FORMATS_MAP
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
const fn fourcc_code(a: char, b: char, c: char, d: char) -> u32 {
|
||||
(a as u32) | ((b as u32) << 8) | ((c as u32) << 16) | ((d as u32) << 24)
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn debug(fourcc: u32) -> impl Debug {
|
||||
debug_fn(move |fmt| {
|
||||
fmt.write_char(fourcc as u8 as char)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue