autocommit 2022-01-06 19:08:32 CET
This commit is contained in:
parent
cbbc41a463
commit
4a939477a2
51 changed files with 3438 additions and 207 deletions
|
|
@ -1,3 +1,4 @@
|
|||
use crate::pixman;
|
||||
use ahash::AHashMap;
|
||||
|
||||
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||
|
|
@ -5,6 +6,7 @@ pub struct Format {
|
|||
pub id: u32,
|
||||
pub name: &'static str,
|
||||
pub bpp: u32,
|
||||
pub pixman: pixman::Format,
|
||||
}
|
||||
|
||||
pub fn formats() -> AHashMap<u32, &'static Format> {
|
||||
|
|
@ -24,11 +26,13 @@ static FORMATS: &[Format] = &[
|
|||
id: 0,
|
||||
name: "argb8888",
|
||||
bpp: 4,
|
||||
pixman: pixman::A8R8G8B8,
|
||||
},
|
||||
Format {
|
||||
id: 1,
|
||||
name: "xrgb8888",
|
||||
bpp: 4,
|
||||
pixman: pixman::X8R8G8B8,
|
||||
},
|
||||
// Format {
|
||||
// id: fourcc_code('C', '8', ' ', ' '),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue