1
0
Fork 0
forked from wry/wry

autocommit 2022-01-04 15:30:21 CET

This commit is contained in:
Julian Orth 2022-01-04 15:30:21 +01:00
parent 30376c595c
commit cbbc41a463
40 changed files with 725 additions and 189 deletions

View file

@ -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', ' ', ' '),