mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
ui/vnc: introduce VNC_DIRTY_PIXELS_PER_BIT macro
Signed-off-by: Peter Lieven <pl@kamp.de> Reviewed-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
38ee14f4f3
commit
b4c85ddcec
2 changed files with 46 additions and 25 deletions
6
ui/vnc.h
6
ui/vnc.h
|
@ -81,8 +81,12 @@ typedef void VncSendHextileTile(VncState *vs,
|
|||
#define VNC_MAX_WIDTH 2560
|
||||
#define VNC_MAX_HEIGHT 2048
|
||||
|
||||
/* VNC_DIRTY_PIXELS_PER_BIT is the number of dirty pixels represented
|
||||
* by one bit in the dirty bitmap */
|
||||
#define VNC_DIRTY_PIXELS_PER_BIT 16
|
||||
|
||||
/* VNC_DIRTY_BITS is the number of bits in the dirty bitmap. */
|
||||
#define VNC_DIRTY_BITS (VNC_MAX_WIDTH / 16)
|
||||
#define VNC_DIRTY_BITS (VNC_MAX_WIDTH / VNC_DIRTY_PIXELS_PER_BIT)
|
||||
|
||||
#define VNC_STAT_RECT 64
|
||||
#define VNC_STAT_COLS (VNC_MAX_WIDTH / VNC_STAT_RECT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue