From b07c09ca170ba1a157e99f27b90cc362e0f86bb2 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 28 Apr 2010 15:40:12 +0200 Subject: [PATCH] Add image flag for "all high bits are set to one" This lets us send rgba images with all high bytes 0xff as rgb, which is not all that uncommon. --- spice/draw.h | 1 + spice/qxl_dev.h | 1 + 2 files changed, 2 insertions(+) diff --git a/spice/draw.h b/spice/draw.h index 6aeb451..3c373b7 100644 --- a/spice/draw.h +++ b/spice/draw.h @@ -171,6 +171,7 @@ enum { enum { SPICE_IMAGE_FLAGS_CACHE_ME = (1 << 0), + SPICE_IMAGE_FLAGS_HIGH_BITS_SET = (1 << 1), }; typedef struct SPICE_ATTR_PACKED SpiceImageDescriptor { diff --git a/spice/qxl_dev.h b/spice/qxl_dev.h index b5d7cfa..80e5e08 100644 --- a/spice/qxl_dev.h +++ b/spice/qxl_dev.h @@ -410,6 +410,7 @@ typedef struct SPICE_ATTR_PACKED QXLImageID { enum { QXL_IMAGE_CACHE = (1 << 0), + QXL_IMAGE_HIGH_BITS_SET = (1 << 1), }; enum {