summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* zap CoreInterface->next()Gerd Hoffmann2010-05-192-9/+0
| | | | | | | Interfaces must be registered after spice_server_init(). The "next" callback is used to discover interfaces registered before spice_server_init(). Which is a empty list and thus pretty pointless. Remove it.
* channel security cleanupGerd Hoffmann2010-05-192-33/+24
| | | | | | | | - drop spice_channel_name_t enum, use spice-protocol defines instead. - switch spice_server_set_channel_security() channel parameter from enum to string. - drop spice_server_set_default_channel_security(), use spice_server_set_channel_security with channel == NULL instead.
* zap spice_parse_args + spice_usage_strGerd Hoffmann2010-05-192-336/+0
| | | | First step to throw out the old interface.
* Minor whitespace cleanupvdesktopAlexander Larsson2010-05-191-2/+2
|
* Make it --enable-tunnel workAlexander Larsson2010-05-191-5/+5
|
* server: fix invalid self loop in surfaces dependencies.Yonit Halperin2010-05-031-5/+22
| | | | | Cyclic dependencies between surfaces mustn't occur. They can cause invalid rendering - recent drawables might be rendered before older ones.
* spice server: fix typo in private key error messageDan Kenigsberg2010-05-031-1/+1
|
* Add C version of find_msb()Gerd Hoffmann2010-05-031-1/+20
| | | | | | | This patch allows people to build the spice-client on any 32bit/64bit architecture. by Bryan Stillwell <bryan@bokeoa.com>
* Remove all mentions of "cairo" from the codeAlexander Larsson2010-05-0333-255/+254
| | | | | The command line option is renamed from "cairo" to "sw", and similarly all filenames and types from Cairo to Sw (and similar).
* Don't send alpha bytes for primary surfaceAlexander Larsson2010-04-301-2/+8
| | | | | The framebuffer is not used as a source for alpha blends, so we never need to scan it for alpha bytes.
* iovec: add sanity checkGerd Hoffmann2010-04-291-2/+8
| | | | | | | | Adds sanity check to iovec setup. In theory this should never ever trigger. In practice guest driver bugs can make it trigger. This patch avoids qemu burning cpu in a endless loop, instead we'll print a message and abort. Not sure whenever there is a more graceful way to handle the situation ...
* fix worker->stop surface cleanupGerd Hoffmann2010-04-291-1/+1
|
* client: Report window format right for win32Alexander Larsson2010-04-292-4/+14
|
* client: Support 16bpp pixmaps on win32Alexander Larsson2010-04-292-6/+33
|
* win32 client: Remove unnecessary GDIImage typeAlexander Larsson2010-04-292-74/+40
| | | | We just use pixman_image_t as the "information about image data" structure.
* Add support for SPICE_IMAGE_FLAGS_HIGH_BITS_SETAlexander Larsson2010-04-282-12/+50
|
* Clear alpha in xRGB destination to avoid pixman setting it to 0xffAlexander Larsson2010-04-281-0/+66
| | | | | | | | | | Pixman sometimes sets the ignored high byte to 0xff during alpha blending. This is correct according to pixman specs, as the high byte is ignored. However its not what windows expects, and it causes unnecessary regions with non-zero high byte, causing us to send rgba data instead of rgb which compresses worse. So, we detect this and clear the high byte.
* Fix line lengths and tabsAlexander Larsson2010-04-281-6/+13
|
* fix two warningsGerd Hoffmann2010-04-262-1/+3
|
* Remove surface format workaround now that win32 driver is fixedAlexander Larsson2010-04-231-7/+0
| | | | | The win32 driver makes all 32bit surfaces be xRGB now, so we can remove this old workaround.
* Fix up win32 client with recent changesAlexander Larsson2010-04-233-11/+16
|
* Win32 canvas fixesAlexander Larsson2010-04-231-9/+9
|
* If we have alpha in a 32bit rgb surface, ensure we send thatAlexander Larsson2010-04-231-0/+30
| | | | | If we don't then alpha is lost which is problematic if the surface is later used as with alpha_blend and SRC_SURFACE_HAS_ALPHA.
* Support alpha surface sources and destinationsAlexander Larsson2010-04-233-18/+99
|
* Localize palettes for LZ PLT formatAlexander Larsson2010-04-231-3/+45
| | | | This is needed since they always decode to 32bit mode.
* Server: Use the right image format when updating from a surfaceAlexander Larsson2010-04-231-22/+31
|
* Make each surface its own depth/formatAlexander Larsson2010-04-2310-341/+307
| | | | | | | | Surface creation now specifies the exact format, not only the bit depth of each surface which is used for rendering. Additionally we now actually store the surfaces in that format, instead of converting everything to 32bpp when drawing or e.g. handling palettes.
* Client: Support pixmap format conversion in copy_pixelsAlexander Larsson2010-04-2311-249/+179
| | | | | | | | | | | | | | | | | | | | | | 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.
* X11 client: Add helper for XImage constructionAlexander Larsson2010-04-232-4/+47
|
* Add utility functions to create XShm imagesAlexander Larsson2010-04-232-0/+83
|
* Create screen composit area in same format as windowAlexander Larsson2010-04-231-2/+2
| | | | | This way we don't have to convert when drawing to it, or drawing it to the dc.
* Add helper to compare RedDrawable::Formats for copy compabibleAlexander Larsson2010-04-231-0/+4
| | | | | Being copy compatible means the format are identical except that some bits in the source may be ignored in the destination.
* Add RedDrawable::Format get_format()Alexander Larsson2010-04-234-0/+8
| | | | | This is useful because we can e.g. create pixmaps in the same format as a window.
* Add XPlatform::get_screen_format for X11Alexander Larsson2010-04-232-0/+30
|
* Move RedPixmap::Format to RedDrawable::FormatAlexander Larsson2010-04-239-65/+66
| | | | | | | | We need to know the format for other drawables too (like for instance the native format of a window), so we're pushing this down. This changes a bunch of references to be RedDrawable::, but not all. The the old RedPixmap:: references still work, but will be phased out.
* Make client canvas and pixmaps handle more formats and simplifyAlexander Larsson2010-04-2330-249/+296
| | | | | | | | | | | We now support 16bit format pixmaps as well as the old ones. Including both 555 and 565 modes. We drop the palette argument for pixmap construction as it was only used for black/white anyway. Canvas creation is simplified so that there is no separate set_mode state. Canvases are already created in the right mode and never change.
* common: Add lookaside storage for pixman image formatAlexander Larsson2010-04-232-1/+38
| | | | | Ideally we should just read this from the pixman image, but there is no API to do so in stable pixman, so we store it.
* Add pixman utilities for bitmap to pixman_image_t conversionAlexander Larsson2010-04-232-58/+775
|
* Add support for 16bit rop3Alexander Larsson2010-04-231-32/+75
|
* Add emacs modelines to more filesAlexander Larsson2010-04-2311-0/+11
|
* Remove unused method canvas_surf_to_inversAlexander Larsson2010-04-231-67/+17
|
* Make client start if screen is 16bppAlexander Larsson2010-04-231-9/+18
| | | | | | | | | The current glx code is looking for a rgb32 visual and always failing if there is none. This means not even software rendering starts up on e.g. 16bit visuals. This commit makes it pick software fallbacks on 16bit visuals. Long term we need to fix the gl implementation to do 16bpp too.
* Client: Don't die if XIM not availibleAlexander Larsson2010-04-232-27/+40
|
* Detect XShm extension sanelyAlexander Larsson2010-04-231-6/+4
| | | | | | The previous way XShm detection worked failed at least for me, and is not the standard way. We now just use XShmQueryExtension and XShmQueryVersion.
* Detect big endian systemsAlexander Larsson2010-04-231-0/+1
|
* Fix warnings breaking win32 buildAlexander Larsson2010-04-231-3/+3
|
* Merge branch 'master' of ssh://git.freedesktop.org/git/spice/spiceIzik Eidus2010-04-142-19/+46
|\
| * Avoid unncessary buffer management in mjpeg decoder if possibleAlexander Larsson2010-04-142-19/+46
| |
* | spice: server: change update_area commandIzik Eidus2010-04-145-9/+65
|/ | | | | | | | The new command return dirty area to be used by users that want spice to render localy or into some framebuffer (sdl / vnc) Signed-off-by: Izik Eidus <ieidus@redhat.com>
* Relicense everything from GPL to LGPL 2.1+Alexander Larsson2010-04-13206-2121/+2299
|