• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

krfb

  • sources
  • kde-4.14
  • kdenetwork
  • krfb
  • libvncserver
zrlepalettehelper.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002 RealVNC Ltd. All Rights Reserved.
3  * Copyright (C) 2003 Sun Microsystems, Inc.
4  *
5  * This is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This software is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this software; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
18  * USA.
19  */
20 
21 /*
22  * The PaletteHelper class helps us build up the palette from pixel data by
23  * storing a reverse index using a simple hash-table
24  */
25 
26 #ifndef __ZRLE_PALETTE_HELPER_H__
27 #define __ZRLE_PALETTE_HELPER_H__
28 
29 #include "zrletypes.h"
30 
31 #define ZRLE_PALETTE_MAX_SIZE 127
32 
33 typedef struct {
34  zrle_U32 palette[ZRLE_PALETTE_MAX_SIZE];
35  zrle_U8 index[ZRLE_PALETTE_MAX_SIZE + 4096];
36  zrle_U32 key[ZRLE_PALETTE_MAX_SIZE + 4096];
37  int size;
38 } zrlePaletteHelper;
39 
40 void zrlePaletteHelperInit (zrlePaletteHelper *helper);
41 void zrlePaletteHelperInsert(zrlePaletteHelper *helper,
42  zrle_U32 pix);
43 int zrlePaletteHelperLookup(zrlePaletteHelper *helper,
44  zrle_U32 pix);
45 
46 #endif /* __ZRLE_PALETTE_HELPER_H__ */
zrletypes.h
zrlePaletteHelper::size
int size
Definition: zrlepalettehelper.h:37
zrlePaletteHelper
Definition: zrlepalettehelper.h:33
zrle_U32
unsigned int zrle_U32
Definition: zrletypes.h:25
zrlePaletteHelperLookup
int zrlePaletteHelperLookup(zrlePaletteHelper *helper, zrle_U32 pix)
ZRLE_PALETTE_MAX_SIZE
#define ZRLE_PALETTE_MAX_SIZE
Definition: zrlepalettehelper.h:31
zrlePaletteHelperInit
void zrlePaletteHelperInit(zrlePaletteHelper *helper)
zrlePaletteHelperInsert
void zrlePaletteHelperInsert(zrlePaletteHelper *helper, zrle_U32 pix)
zrle_U8
unsigned char zrle_U8
Definition: zrletypes.h:23
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

krfb

Skip menu "krfb"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal