Back to index

im-sdk  12.3.91
Classes | Defines | Typedefs | Functions
gif_hash.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GifHashTableType

Defines

#define HT_SIZE   8192 /* 12bits = 4096 or twice as big! */
#define HT_KEY_MASK   0x1FFF /* 13bits keys */
#define HT_KEY_NUM_BITS   13 /* 13bits keys */
#define HT_MAX_KEY   8191 /* 13bits - 1, maximal code possible */
#define HT_MAX_CODE   4095 /* Biggest code possible in 12 bits. */
#define HT_GET_KEY(l)   (l >> 12)
#define HT_GET_CODE(l)   (l & 0x0FFF)
#define HT_PUT_KEY(l)   (l << 12)
#define HT_PUT_CODE(l)   (l & 0x0FFF)

Typedefs

typedef struct GifHashTableType GifHashTableType

Functions

GifHashTableType_InitHashTable (void)
void _ClearHashTable (GifHashTableType *HashTable)
void _InsertHashTable (GifHashTableType *HashTable, unsigned long Key, int Code)
int _ExistsHashTable (GifHashTableType *HashTable, unsigned long Key)

Class Documentation

struct GifHashTableType

Definition at line 24 of file gif_hash.h.

Class Members
unsigned long HTable

Define Documentation

#define HT_GET_CODE (   l)    (l & 0x0FFF)

Definition at line 20 of file gif_hash.h.

#define HT_GET_KEY (   l)    (l >> 12)

Definition at line 19 of file gif_hash.h.

#define HT_KEY_MASK   0x1FFF /* 13bits keys */

Definition at line 11 of file gif_hash.h.

#define HT_KEY_NUM_BITS   13 /* 13bits keys */

Definition at line 12 of file gif_hash.h.

#define HT_MAX_CODE   4095 /* Biggest code possible in 12 bits. */

Definition at line 14 of file gif_hash.h.

#define HT_MAX_KEY   8191 /* 13bits - 1, maximal code possible */

Definition at line 13 of file gif_hash.h.

#define HT_PUT_CODE (   l)    (l & 0x0FFF)

Definition at line 22 of file gif_hash.h.

#define HT_PUT_KEY (   l)    (l << 12)

Definition at line 21 of file gif_hash.h.

#define HT_SIZE   8192 /* 12bits = 4096 or twice as big! */

Definition at line 10 of file gif_hash.h.


Typedef Documentation


Function Documentation

void _ClearHashTable ( GifHashTableType HashTable)
int _ExistsHashTable ( GifHashTableType HashTable,
unsigned long  Key 
)
void _InsertHashTable ( GifHashTableType HashTable,
unsigned long  Key,
int  Code 
)