mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2025-12-31 20:04:07 +00:00
Add surface type enum
This is used to specify how pixels map to colors in surfaces.
This commit is contained in:
parent
f50ca498cc
commit
32541ac871
11
spice/draw.h
11
spice/draw.h
@ -147,6 +147,17 @@ typedef struct SPICE_ATTR_PACKED SpicePalette {
|
||||
uint32_t ents[0];
|
||||
} SpicePalette;
|
||||
|
||||
enum {
|
||||
SPICE_SURFACE_FMT_INVALID,
|
||||
SPICE_SURFACE_FMT_1_A = 1,
|
||||
SPICE_SURFACE_FMT_8_A = 8,
|
||||
SPICE_SURFACE_FMT_16_555 = 16 + (0 << 6),
|
||||
SPICE_SURFACE_FMT_16_565 = 16 + (1 << 6),
|
||||
SPICE_SURFACE_FMT_32_xRGB = 32 + (0 << 6),
|
||||
SPICE_SURFACE_FMT_32_ARGB = 32 + (1 << 6),
|
||||
};
|
||||
#define SPICE_SURFACE_FMT_DEPTH(_d) ((_d) & 0x3f)
|
||||
|
||||
enum {
|
||||
SPICE_IMAGE_TYPE_BITMAP,
|
||||
SPICE_IMAGE_TYPE_QUIC,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user