[Spice-devel] [PATCH 7/9] not using jpeg when sending a surface to the client (the whole surface)
Yonit Halperin
yhalperi at redhat.com
Tue Jun 1 00:30:56 PDT 2010
When a surface is sent to the client using red_send_surface_image, operations were already
performed on it. Thus it may combine, especially if it is a primary surface, both "picture-like" areas
and areas that are more "artificial". In order to avoid noticeable artifacts, such surface will be sent lossless.
---
server/red_worker.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/server/red_worker.c b/server/red_worker.c
index 35139ef..0b651ed 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -5198,7 +5198,9 @@ static void red_add_surface_image(RedWorker *worker, int surface_id)
area.right = surface->context.width;
area.bottom = surface->context.height;
- item = red_add_surface_area_image(worker, surface_id, &area, NULL, TRUE);
+ /* not allowing lossy compression because probably, especially if it is a primary surface,
+ it combines both "picture-like" areas with areas that are more "artificial"*/
+ item = red_add_surface_area_image(worker, surface_id, &area, NULL, FALSE);
display_channel_push(worker);
}
--
1.6.6.1
More information about the Spice-devel
mailing list