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