autocommit 2022-01-04 15:30:21 CET
This commit is contained in:
parent
30376c595c
commit
cbbc41a463
40 changed files with 725 additions and 189 deletions
|
|
@ -4,6 +4,7 @@ use ahash::AHashMap;
|
|||
pub struct Format {
|
||||
pub id: u32,
|
||||
pub name: &'static str,
|
||||
pub bpp: u32,
|
||||
}
|
||||
|
||||
pub fn formats() -> AHashMap<u32, &'static Format> {
|
||||
|
|
@ -22,10 +23,12 @@ static FORMATS: &[Format] = &[
|
|||
Format {
|
||||
id: 0,
|
||||
name: "argb8888",
|
||||
bpp: 4,
|
||||
},
|
||||
Format {
|
||||
id: 1,
|
||||
name: "xrgb8888",
|
||||
bpp: 4,
|
||||
},
|
||||
// Format {
|
||||
// id: fourcc_code('C', '8', ' ', ' '),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue