Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | mingw32 build: fix two functions | Alon Levy | 2012-03-20 | 1 | -1/+1 | |
| | ||||||
* | mingw32 build: fix signed/unsigned warnings as errors | Alon Levy | 2012-03-20 | 3 | -7/+7 | |
| | ||||||
* | mingw32 build: fix build errors | Gerd Hoffmann | 2012-03-20 | 1 | -2/+2 | |
| | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> | |||||
* | smartcard: add to spice.proto | Alon Levy | 2012-03-20 | 1 | -0/+8 | |
| | ||||||
* | spice codegen: fix copy-o, no such variable value | Alon Levy | 2012-03-20 | 1 | -1/+1 | |
| | ||||||
* | Initialize variable to avoid compiler warning | Alexander Larsson | 2012-03-20 | 1 | -1/+1 | |
| | | | | Seems the OSX gcc warns on saveRight not being initialzied. | |||||
* | Handle surface images in DrawOpaque | Alexander Larsson | 2012-03-20 | 1 | -19/+42 | |
| | ||||||
* | Fix crash when resetting pixman image transform | Alexander Larsson | 2012-03-20 | 1 | -1/+2 | |
| | | | | | Resetting the transform is done by setting it to the identity transform, not passing in NULL. Passing in NULL causes a crash. | |||||
* | Fix scaling with large magnification | Alexander Larsson | 2012-03-20 | 1 | -20/+16 | |
| | | | | | | | | | | | | | | When scaling part of an image we need to specify the source coordinates in transformed coordinates. For large magnifications this means we will get pretty large values. Now, if e.g. src_x * transform is larger than 32765, then the coordinate ends up outside the pixman 16bit image size, so the rendering will not work. The fix is to make the src_x/y offset part of the transformation. This means its automatically transformed by the correct scaling, and the coordinates passed into pixman are not (typically) over 16bit. | |||||
* | Revert "Fix scaling with large magnification" | Alexander Larsson | 2012-03-20 | 1 | -104/+32 | |
| | | | | This reverts commit e13be77f33609cb3fdae354ce1f2686ae865f9e0. | |||||
* | Fix scaling with large magnification | Alexander Larsson | 2012-03-20 | 1 | -32/+104 | |
| | | | | | | | | | | | | | | When scaling part of an image we need to specify the source coordinates in transformed coordinates. For large magnifications this means we will get pretty large values. Now, if e.g. src_x * transform is larger than 32765, then the coordinate ends up outside the pixman 16bit image size, so the rendering will not work. In order to work around this we generate a "sub-image" of the pixman image such that the src_x/y values we have to specify are zero (or near zero). | |||||
* | canvas: Better coordinate rounding in scaling | Alexander Larsson | 2012-03-20 | 1 | -28/+36 | |
| | | | | | | | | | | | | | When scaling in pixman you give the source coordinates in transformed space rather than in the source coordinates. This is a bit problematic when both source and destination coordinates are at integer positions, but the scaling factor is not an exact 16.16 fixed point value. We used to calculate the transformed source based on the floating point transformation, which gave the wrong answer sometimes. Now we do the calculations based on the fixed point transform that we give pixman. However, even with this patch I can still sometimes see issues related to this, although they are less bad. | |||||
* | server: Fix alloc_lz_image_surface stride allocations | Alexander Larsson | 2012-03-20 | 1 | -1/+1 | |
| | | | | | All lz surfaces are not 4 bytes per pixel, calculate the right stride based on the pixman format. | |||||
* | Stride can be negative, so don't use size_t for it | Alexander Larsson | 2012-03-20 | 2 | -2/+2 | |
| | ||||||
* | support python 2.5.4+ for marshaller/demarshallers | Alon Levy | 2012-03-20 | 3 | -0/+3 | |
| | | | | | Patch adds a "from __future__" import that doesn't affect newer python's but allows python 2.5.4 to run the code (tested under scratchbox, n900 build environment) | |||||
* | demarshaller: Fix palette marshalling | Alexander Larsson | 2012-03-20 | 1 | -14/+32 | |
| | | | | | | | It turns out that using base + sizeof(struct) is not a good way to access an array at the end of a struct. For SpicePalette sizeof is 16, but offset of ents is 12. Using this calculation in the demarshaller breaks things badly, so now we use the actual array member. | |||||
* | Don't send padding over the network with video data | Alexander Larsson | 2012-03-20 | 3 | -5/+2 | |
| | ||||||
* | Fix uninitialized variable warnings | Alexander Larsson | 2012-03-20 | 1 | -1/+1 | |
| | ||||||
* | Don't send CursorHeader if cursor_flags is NONE | Alexander Larsson | 2012-03-20 | 4 | -5/+11 | |
| | ||||||
* | Send Clip.rects inline rather than using a pointer | Alexander Larsson | 2012-03-20 | 1 | -1/+1 | |
| | ||||||
* | codegen: Allow @to_ptr to make inline structs demarshal as pointers | Alexander Larsson | 2012-03-20 | 3 | -9/+37 | |
| | ||||||
* | codegen: Various cleanups | Alexander Larsson | 2012-03-20 | 5 | -89/+71 | |
| | | | | | | | | | | | | Remove all uses of @end in the marshaller, instead just using the C struct array-at-end-of-struct. To make this work we also remove all use of @end for switches (making them C unions). We drop the zero member of the notify message so that we can avoid this use of @end for a primitive in the marshaller (plus its useless to send over the wire). We change the offsets and stuff in the migration messages to real pointers. | |||||
* | codegen: Pass member to SubMarshallingSource rather than name | Alexander Larsson | 2012-03-20 | 1 | -9/+10 | |
| | | | | This way we can check attributes on the member. | |||||
* | codegen: Remove unused methos has_pointer() | Alexander Larsson | 2012-03-20 | 1 | -27/+0 | |
| | ||||||
* | canvas_base jpeg_alpha: supply the correct size to jpeg_decoder | Yonit Halperin | 2012-03-20 | 1 | -1/+1 | |
| | ||||||
* | Don't marshall bitmap data as pointer, instead send inline | Alexander Larsson | 2012-03-20 | 1 | -1/+1 | |
| | ||||||
* | Add files i forgot to commit | Alexander Larsson | 2012-03-20 | 2 | -0/+15 | |
| | ||||||
* | Make distcheck work | Alexander Larsson | 2012-03-20 | 3 | -9/+9 | |
| | ||||||
* | Fix various misspellings | Alexander Larsson | 2012-03-20 | 8 | -9/+9 | |
| | | | | | | | | | | | | | letancy -> latency compund -> compound SpicedSubMessage -> SpiceSubMessage modifaiers -> modifiers massage -> message outgoiong -> outgoing AlphaBlnd -> AlphaBlend remoth -> remote modifires -> modifiers secore -> secure | |||||
* | Fix sign warnings from win32 compiler | Alexander Larsson | 2012-03-20 | 2 | -3/+3 | |
| | ||||||
* | Fix inclusion of common files, no need for common/ part | Alexander Larsson | 2012-03-20 | 12 | -12/+12 | |
| | ||||||
* | Simplify spice_pixman_region32_init_rects with new types | Alexander Larsson | 2012-03-20 | 1 | -28/+2 | |
| | | | | | Don't manually of SpiceRects to pixman_box32_t now that they are compatible and SpiceRect is internal. | |||||
* | Make all internal structures not be packed | Alexander Larsson | 2012-03-20 | 1 | -37/+33 | |
| | ||||||
* | Move SpiceChunks to mem.h | Alexander Larsson | 2012-03-20 | 3 | -19/+19 | |
| | ||||||
* | Move in spice/draw.h from spice-protocol to common/ | Alexander Larsson | 2012-03-20 | 15 | -13/+305 | |
| | ||||||
* | codegen: No SPICE_ADDRESS types left, drop @c_ptr | Alexander Larsson | 2012-03-20 | 4 | -44/+37 | |
| | ||||||
* | Properly parse QXLLineAttrs.style | Alexander Larsson | 2012-03-20 | 4 | -5/+4 | |
| | ||||||
* | Properly parse QXLImage to the new-world SpiceImage | Gerd Hoffmann | 2012-03-20 | 11 | -300/+198 | |
| | | | | | SpiceImage now replaces RedImage and has all image types in it. All image data are now chunked (and as such not copied when demarshalling). | |||||
* | codegen: support @chunk on non-pointer arrays | Alexander Larsson | 2012-03-20 | 2 | -5/+29 | |
| | | | | This is similar to @as_ptr, but generates a single chunk of data. | |||||
* | Add support for @chunk | Alexander Larsson | 2012-03-20 | 1 | -2/+18 | |
| | ||||||
* | marshaller: Make get_nw_offset() handle deep member references | Alexander Larsson | 2012-03-20 | 1 | -7/+32 | |
| | ||||||
* | Add spice_marshaller_add_ref_chunks | Alexander Larsson | 2012-03-20 | 2 | -0/+12 | |
| | ||||||
* | Add spice_chunks_* helpers | Alexander Larsson | 2012-03-20 | 2 | -0/+64 | |
| | ||||||
* | Convert SpicePath.segments to a pointer array | Alexander Larsson | 2012-03-20 | 6 | -53/+50 | |
| | ||||||
* | Handle extra size for switch and array the right way | Alexander Larsson | 2012-03-20 | 1 | -23/+20 | |
| | | | | | | Even for is_extra_size() we should calculate the mem_size for arrays, its just that the parent type (in this case switch) should request mem_size if the type is_extra_size. | |||||
* | marshaller: Add some docs describing the types of sizes | Alexander Larsson | 2012-03-20 | 1 | -0/+29 | |
| | ||||||
* | marshaller: Make @nonnull a propagated attribute | Alexander Larsson | 2012-03-20 | 3 | -6/+3 | |
| | | | | This cleans up some stuff | |||||
* | marshaller: Make @c_ptr a propagated attribute | Alexander Larsson | 2012-03-20 | 2 | -17/+18 | |
| | | | | This simplifies some code | |||||
* | marshaller: Add generic way to handle propagating attributes | Alexander Larsson | 2012-03-20 | 3 | -11/+18 | |
| | | | | Also switches @ptr_array to use this | |||||
* | Properly parse and marshall SpiceString | Gerd Hoffmann | 2012-03-20 | 6 | -39/+74 | |
| |