[Spice-devel] [PATCH] add image type for images that are compressed by zlib after they have been compressed by glz
Yonit Halperin
yhalperi at redhat.com
Sun Jun 13 08:42:23 PDT 2010
---
spice/draw.h | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/spice/draw.h b/spice/draw.h
index 1cf59c8..596a376 100644
--- a/spice/draw.h
+++ b/spice/draw.h
@@ -169,6 +169,7 @@ enum {
SPICE_IMAGE_TYPE_SURFACE,
SPICE_IMAGE_TYPE_JPEG,
SPICE_IMAGE_TYPE_FROM_CACHE_LOSSLESS,
+ SPICE_IMAGE_TYPE_ZLIB_GLZ_RGB,
};
enum {
@@ -260,6 +261,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;
+
enum {
SPICE_IMAGE_SCALE_MODE_INTERPOLATE,
SPICE_IMAGE_SCALE_MODE_NEAREST,
--
1.6.6.1
More information about the Spice-devel
mailing list