1148954faSCorentin Chary /* 2148954faSCorentin Chary * QEMU VNC display driver: Zlib Run-length Encoding (ZRLE) 3148954faSCorentin Chary * 4148954faSCorentin Chary * From libvncserver/libvncserver/zrle.c 5148954faSCorentin Chary * Copyright (C) 2002 RealVNC Ltd. All Rights Reserved. 6148954faSCorentin Chary * Copyright (C) 2003 Sun Microsystems, Inc. 7148954faSCorentin Chary * 8148954faSCorentin Chary * Copyright (C) 2010 Corentin Chary <corentin.chary@gmail.com> 9148954faSCorentin Chary * 10148954faSCorentin Chary * Permission is hereby granted, free of charge, to any person obtaining a copy 11148954faSCorentin Chary * of this software and associated documentation files (the "Software"), to deal 12148954faSCorentin Chary * in the Software without restriction, including without limitation the rights 13148954faSCorentin Chary * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14148954faSCorentin Chary * copies of the Software, and to permit persons to whom the Software is 15148954faSCorentin Chary * furnished to do so, subject to the following conditions: 16148954faSCorentin Chary * 17148954faSCorentin Chary * The above copyright notice and this permission notice shall be included in 18148954faSCorentin Chary * all copies or substantial portions of the Software. 19148954faSCorentin Chary * 20148954faSCorentin Chary * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21148954faSCorentin Chary * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 22148954faSCorentin Chary * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 23148954faSCorentin Chary * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 24148954faSCorentin Chary * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 25148954faSCorentin Chary * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 26148954faSCorentin Chary * THE SOFTWARE. 27148954faSCorentin Chary */ 28148954faSCorentin Chary 29*121d0712SMarkus Armbruster #ifndef VNC_ENC_ZRLE_H 30*121d0712SMarkus Armbruster #define VNC_ENC_ZRLE_H 31148954faSCorentin Chary 32148954faSCorentin Chary /*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 33148954faSCorentin Chary * ZRLE - encoding combining Zlib compression, tiling, palettisation and 34148954faSCorentin Chary * run-length encoding. 35148954faSCorentin Chary */ 36148954faSCorentin Chary 37148954faSCorentin Chary #define VNC_ZRLE_TILE_WIDTH 64 38148954faSCorentin Chary #define VNC_ZRLE_TILE_HEIGHT 64 39148954faSCorentin Chary 40148954faSCorentin Chary #endif 41