search for: dirty_row

Displaying 2 results from an estimated 2 matches for "dirty_row".

2009 Mar 02
0
[PATCH 4 of 13] DisplayState interface change
...ta = malloc(h * ds->linesize); - allocated = 1; - } else { - ds->linesize = linesize; - if (allocated) { - free(ds->data); - allocated = 0; - } - } - vs->old_data = qemu_realloc(vs->old_data, h * ds->linesize); - vs->dirty_row = qemu_realloc(vs->dirty_row, h * sizeof(vs->dirty_row[0])); - vs->update_row = qemu_realloc(vs->update_row, h * sizeof(vs->dirty_row[0])); + vs->old_data = qemu_realloc(vs->old_data, ds_get_height(ds) * ds_get_linesize(ds)); + vs->dirty_row = qemu_realloc(vs->di...
2009 Mar 02
0
[PATCH 5 of 13] exploiting the new interface in vnc.c
..., ...) do { } while (0) #endif +#define count_bits(c, v) { \ + for (c = 0; v; v >>= 1) \ + { \ + c += v & 1; \ + } \ +} typedef struct Buffer { @@ -162,8 +168,6 @@ int lsock; int csock; DisplayState *ds; - int width; - int height; uint64_t *dirty_row; /* screen regions which are possibly dirty */ int dirty_pixel_shift; uint64_t *update_row; /* outstanding updates */ @@ -173,7 +177,6 @@ int update_requested; /* the client requested an update */ uint8_t *old_data; - int depth; /* internal VNC frame buffer byte per p...