Revision 23bfe28f ui/vnc.h
b/ui/vnc.h | ||
---|---|---|
79 | 79 |
void *last_fg, |
80 | 80 |
int *has_bg, int *has_fg); |
81 | 81 |
|
82 |
/* VNC_MAX_WIDTH must be a multiple of 16. */ |
|
82 | 83 |
#define VNC_MAX_WIDTH 2560 |
83 | 84 |
#define VNC_MAX_HEIGHT 2048 |
84 |
#define VNC_DIRTY_WORDS (VNC_MAX_WIDTH / (16 * BITS_PER_LONG)) |
|
85 |
|
|
86 |
/* VNC_DIRTY_BITS is the number of bits in the dirty bitmap. */ |
|
87 |
#define VNC_DIRTY_BITS (VNC_MAX_WIDTH / 16) |
|
85 | 88 |
|
86 | 89 |
#define VNC_STAT_RECT 64 |
87 | 90 |
#define VNC_STAT_COLS (VNC_MAX_WIDTH / VNC_STAT_RECT) |
... | ... | |
114 | 117 |
struct VncSurface |
115 | 118 |
{ |
116 | 119 |
struct timeval last_freq_check; |
117 |
unsigned long dirty[VNC_MAX_HEIGHT][VNC_DIRTY_WORDS];
|
|
120 |
DECLARE_BITMAP(dirty[VNC_MAX_HEIGHT], VNC_MAX_WIDTH / 16);
|
|
118 | 121 |
VncRectStat stats[VNC_STAT_ROWS][VNC_STAT_COLS]; |
119 | 122 |
DisplaySurface *ds; |
120 | 123 |
}; |
... | ... | |
234 | 237 |
int csock; |
235 | 238 |
|
236 | 239 |
DisplayState *ds; |
237 |
unsigned long dirty[VNC_MAX_HEIGHT][VNC_DIRTY_WORDS];
|
|
240 |
DECLARE_BITMAP(dirty[VNC_MAX_HEIGHT], VNC_DIRTY_BITS);
|
|
238 | 241 |
uint8_t **lossy_rect; /* Not an Array to avoid costly memcpy in |
239 | 242 |
* vnc-jobs-async.c */ |
240 | 243 |
|
Also available in: Unified diff