summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2010-06-09 11:56:03 +0300
committerAlexander Larsson <alexl@redhat.com>2010-06-09 11:21:22 +0200
commitace7d06a7b633269ca11cd9a3fa4c84d52be9e89 (patch)
tree15aae1420a5a92d66eb7b779fc94011d99128787
parent9e73c41877613b008298d23e1599d1f09e1dc7b4 (diff)
add image type for jpeg
-rw-r--r--spice/draw.h8
1 files changed, 7 insertions, 1 deletions
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,