spice/client/x11
Alexander Larsson 774e5bd36f Client: Support pixmap format conversion in copy_pixels
In order to be able to support 16bit canvases on 32bit screens and 32bit
canvases on 16bit screens we need to handle format conversion when drawing
RedPixmaps.

The way this works now for X11 is that we only have one PIXELS_SOURCE_TYPE
for pixmaps, which always has a pixman_image_t for the data, but additionally
it has an XImage (shared mem or not) if the screen the pixmap was created
for (i.e. an explicit one or the default screen) has the same format as
the pixmap.

When we draw a pixmap on a drawable we have two variants. If the pixmap
has a XImage and it matches the format of the target drawable then we
just X(Shm)PutImage it to the drawable. If the formats differ, then we
create a temporary XImage and convert into that before drawing it to
the screen.

Right now this is a bit inefficient, because we always allocate a new
temporary image when converting. We want to add some caching here, but
at least this lets things work again.
2010-04-23 16:39:13 +02:00
..
images client: use spice icon instead-of solidice icon 2010-01-04 21:13:03 +02:00
.gitignore fresh start 2009-10-14 15:06:41 +02:00
atomic_count.h Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
event_sources_p.cpp Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
event_sources_p.h Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
main.cpp Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
Makefile.am Use libjpeg to decode mjpegs, not ffmpeg 2010-04-08 11:30:18 +02:00
named_pipe.cpp Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
named_pipe.h Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
pixels_source_p.h Client: Support pixmap format conversion in copy_pixels 2010-04-23 16:39:13 +02:00
pixels_source.cpp Client: Support pixmap format conversion in copy_pixels 2010-04-23 16:39:13 +02:00
platform_utils.cpp Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
platform_utils.h Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
platform.cpp X11 client: Add helper for XImage construction 2010-04-23 16:36:35 +02:00
playback.cpp Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
playback.h Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
record.cpp Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
record.h Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
red_drawable.cpp Client: Support pixmap format conversion in copy_pixels 2010-04-23 16:39:13 +02:00
red_pixmap_cairo.cpp Client: Support pixmap format conversion in copy_pixels 2010-04-23 16:39:13 +02:00
red_pixmap_gl.cpp Move RedPixmap::Format to RedDrawable::Format 2010-04-23 16:36:35 +02:00
red_pixmap.cpp Make client canvas and pixmaps handle more formats and simplify 2010-04-23 16:36:35 +02:00
red_window_p.h Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
red_window.cpp Client: Support pixmap format conversion in copy_pixels 2010-04-23 16:39:13 +02:00
res.cpp Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
res.h Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
resource.h Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
x_icon.cpp Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
x_icon.h Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
x_platform.h X11 client: Add helper for XImage construction 2010-04-23 16:36:35 +02:00