[Spice-commits] 2 commits - spice/draw.h
Alexander Larsson
alexl at kemper.freedesktop.org
Wed Jun 9 02:42:20 PDT 2010
spice/draw.h | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
New commits:
commit ed14a2ab2e3b84f7b81eb9bf0aa1df9dd734157d
Author: Yonit Halperin <yhalperi at redhat.com>
Date: Wed Jun 9 11:56:04 2010 +0300
cache support for replacing images that were compressed using jpeg with lossless images
diff --git a/spice/draw.h b/spice/draw.h
index 91391c6..1cf59c8 100644
--- a/spice/draw.h
+++ b/spice/draw.h
@@ -168,11 +168,13 @@ enum {
SPICE_IMAGE_TYPE_FROM_CACHE,
SPICE_IMAGE_TYPE_SURFACE,
SPICE_IMAGE_TYPE_JPEG,
+ SPICE_IMAGE_TYPE_FROM_CACHE_LOSSLESS,
};
enum {
SPICE_IMAGE_FLAGS_CACHE_ME = (1 << 0),
SPICE_IMAGE_FLAGS_HIGH_BITS_SET = (1 << 1),
+ SPICE_IMAGE_FLAGS_CACHE_REPLACE_ME = (1 << 2),
};
typedef struct SPICE_ATTR_PACKED SpiceImageDescriptor {
commit ace7d06a7b633269ca11cd9a3fa4c84d52be9e89
Author: Yonit Halperin <yhalperi at redhat.com>
Date: Wed Jun 9 11:56:03 2010 +0300
add image type for jpeg
diff --git a/spice/draw.h b/spice/draw.h
index 3c373b7..91391c6 100644
--- a/spice/draw.h
+++ b/spice/draw.h
@@ -167,6 +167,7 @@ enum {
SPICE_IMAGE_TYPE_GLZ_RGB,
SPICE_IMAGE_TYPE_FROM_CACHE,
SPICE_IMAGE_TYPE_SURFACE,
+ SPICE_IMAGE_TYPE_JPEG,
};
enum {
@@ -228,7 +229,7 @@ typedef struct SPICE_ATTR_PACKED SpiceSurfaceImage {
typedef struct SPICE_ATTR_PACKED SpiceQUICData {
uint32_t data_size;
uint8_t data[0];
-} SpiceQUICData, SpiceLZRGBData;
+} SpiceQUICData, SpiceLZRGBData, SpiceJPEGData;
typedef struct SPICE_ATTR_PACKED SpiceQUICImage {
SpiceImageDescriptor descriptor;
@@ -252,6 +253,11 @@ typedef struct SPICE_ATTR_PACKED SpiceLZPLTImage {
SpiceLZPLTData lz_plt;
} SpiceLZPLTImage;
+typedef struct SPICE_ATTR_PACKED SpiceJPEGImage {
+ SpiceImageDescriptor descriptor;
+ SpiceJPEGData jpeg;
+} SpiceJPEGImage;
+
enum {
SPICE_IMAGE_SCALE_MODE_INTERPOLATE,
SPICE_IMAGE_SCALE_MODE_NEAREST,
More information about the Spice-commits
mailing list