summaryrefslogtreecommitdiff
path: root/spice
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-04-19 15:46:10 +0200
committerAlexander Larsson <alexl@redhat.com>2010-04-19 15:46:10 +0200
commit32541ac87138b281ab2a0330855ef59a0eb69fd0 (patch)
treed7ad9f5aeb9977967ed59b7e8cf272d389262b6a /spice
parentf50ca498cc4e28b3f90ca948de8ce47daf7a4c4c (diff)
Add surface type enum
This is used to specify how pixels map to colors in surfaces.
Diffstat (limited to 'spice')
-rw-r--r--spice/draw.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/spice/draw.h b/spice/draw.h
index 075324b..2552fa0 100644
--- a/spice/draw.h
+++ b/spice/draw.h
@@ -148,6 +148,17 @@ typedef struct SPICE_ATTR_PACKED SpicePalette {
} 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,
SPICE_IMAGE_TYPE_RESERVED,