summaryrefslogtreecommitdiff
path: root/spice
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2010-06-20 15:22:42 +0300
committerAlexander Larsson <alexl@redhat.com>2010-06-21 14:55:59 +0200
commit63f1c6c01a347ae9564fbbc1f53d114147e04e96 (patch)
tree2c7568d354a5bd4d1a86d3219fa512c388dfb97e /spice
parent1f37a974bfea5edc8be64934c820e5151d771e01 (diff)
add image type for images that are compressed by zlib after they have been compressed by glz
Diffstat (limited to 'spice')
-rw-r--r--spice/draw.h11
-rw-r--r--spice/enums.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/spice/draw.h b/spice/draw.h
index ff70e7b..874681d 100644
--- a/spice/draw.h
+++ b/spice/draw.h
@@ -182,6 +182,17 @@ typedef struct SPICE_ATTR_PACKED SpiceJPEGImage {
SpiceJPEGData jpeg;
} SpiceJPEGImage;
+typedef struct SPICE_ATTR_PACKED SpiceZlibGlzRGBData {
+ uint32_t glz_data_size;
+ uint32_t data_size;
+ uint8_t data[0];
+} SpiceZlibGlzRGBData;
+
+typedef struct SPICE_ATTR_PACKED SpiceZlibGlzRGBImage {
+ SpiceImageDescriptor descriptor;
+ SpiceZlibGlzRGBData zlib_glz;
+} SpiceZlibGlzRGBImage;
+
typedef struct SPICE_ATTR_PACKED SpiceOpaque {
SPICE_ADDRESS src_bitmap;
SpiceRect src_area;
diff --git a/spice/enums.h b/spice/enums.h
index 0ea4e79..4dfda1f 100644
--- a/spice/enums.h
+++ b/spice/enums.h
@@ -129,6 +129,7 @@ enum SpiceImageType {
SPICE_IMAGE_TYPE_SURFACE,
SPICE_IMAGE_TYPE_JPEG,
SPICE_IMAGE_TYPE_FROM_CACHE_LOSSLESS,
+ SPICE_IMAGE_TYPE_ZLIB_GLZ_RGB,
SPICE_IMAGE_TYPE_ENUM_END
};