Go to the source code of this file.
Data Structures | |
struct | GifHashTableType |
Structure used by GIF image code. More... | |
Defines | |
#define | HT_SIZE 8192 |
#define | HT_KEY_MASK 0x1FFF |
#define | HT_KEY_NUM_BITS 13 |
#define | HT_MAX_KEY 8191 |
#define | HT_MAX_CODE 4095 |
#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) |
Functions | |
GifHashTableType * | _InitHashTable (void) |
void | _ClearHashTable (GifHashTableType *HashTable) |
void | _InsertHashTable (GifHashTableType *HashTable, unsigned long Key, long Code) |
long | _ExistsHashTable (GifHashTableType *HashTable, unsigned long Key) |
#define HT_SIZE 8192 |
#define HT_KEY_MASK 0x1FFF |
#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) |
GifHashTableType* _InitHashTable | ( | void | ) |
Definition at line 24 of file GIFHASH.C.
References _ClearHashTable(), and X__Malloc.
Referenced by EGifOpenFileHandle().
void _ClearHashTable | ( | GifHashTableType * | HashTable | ) |
void _InsertHashTable | ( | GifHashTableType * | HashTable, | |
unsigned long | Key, | |||
long | Code | |||
) |
Definition at line 53 of file GIFHASH.C.
References HT_GET_KEY, HT_KEY_MASK, HT_PUT_CODE, and HT_PUT_KEY.
long _ExistsHashTable | ( | GifHashTableType * | HashTable, | |
unsigned long | Key | |||
) |