Statistics
| Branch: | Revision:

root / ui / vnc-enc-zrle.h @ d4970b07

History | View | Annotate | Download (1.6 kB)

1 148954fa Corentin Chary
/*
2 148954fa Corentin Chary
 * QEMU VNC display driver: Zlib Run-length Encoding (ZRLE)
3 148954fa Corentin Chary
 *
4 148954fa Corentin Chary
 * From libvncserver/libvncserver/zrle.c
5 148954fa Corentin Chary
 * Copyright (C) 2002 RealVNC Ltd.  All Rights Reserved.
6 148954fa Corentin Chary
 * Copyright (C) 2003 Sun Microsystems, Inc.
7 148954fa Corentin Chary
 *
8 148954fa Corentin Chary
 * Copyright (C) 2010 Corentin Chary <corentin.chary@gmail.com>
9 148954fa Corentin Chary
 *
10 148954fa Corentin Chary
 * Permission is hereby granted, free of charge, to any person obtaining a copy
11 148954fa Corentin Chary
 * of this software and associated documentation files (the "Software"), to deal
12 148954fa Corentin Chary
 * in the Software without restriction, including without limitation the rights
13 148954fa Corentin Chary
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 148954fa Corentin Chary
 * copies of the Software, and to permit persons to whom the Software is
15 148954fa Corentin Chary
 * furnished to do so, subject to the following conditions:
16 148954fa Corentin Chary
 *
17 148954fa Corentin Chary
 * The above copyright notice and this permission notice shall be included in
18 148954fa Corentin Chary
 * all copies or substantial portions of the Software.
19 148954fa Corentin Chary
 *
20 148954fa Corentin Chary
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 148954fa Corentin Chary
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 148954fa Corentin Chary
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23 148954fa Corentin Chary
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 148954fa Corentin Chary
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 148954fa Corentin Chary
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26 148954fa Corentin Chary
 * THE SOFTWARE.
27 148954fa Corentin Chary
 */
28 148954fa Corentin Chary
29 148954fa Corentin Chary
#ifndef VNC_ENCODING_ZRLE_H
30 148954fa Corentin Chary
#define VNC_ENCODING_ZRLE_H
31 148954fa Corentin Chary
32 148954fa Corentin Chary
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
33 148954fa Corentin Chary
 * ZRLE - encoding combining Zlib compression, tiling, palettisation and
34 148954fa Corentin Chary
 * run-length encoding.
35 148954fa Corentin Chary
 */
36 148954fa Corentin Chary
37 148954fa Corentin Chary
#define VNC_ZRLE_TILE_WIDTH  64
38 148954fa Corentin Chary
#define VNC_ZRLE_TILE_HEIGHT 64
39 148954fa Corentin Chary
40 148954fa Corentin Chary
#endif