GIFHASH.H File Reference

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 Documentation

#define HT_SIZE   8192

Definition at line 8 of file GIFHASH.H.

Referenced by _ClearHashTable().

#define HT_KEY_MASK   0x1FFF

Definition at line 9 of file GIFHASH.H.

Referenced by _ExistsHashTable(), and _InsertHashTable().

#define HT_KEY_NUM_BITS   13

Definition at line 10 of file GIFHASH.H.

#define HT_MAX_KEY   8191

Definition at line 11 of file GIFHASH.H.

#define HT_MAX_CODE   4095

Definition at line 12 of file GIFHASH.H.

#define HT_GET_KEY (  )     (l >> 12)

Definition at line 17 of file GIFHASH.H.

Referenced by _ExistsHashTable(), and _InsertHashTable().

#define HT_GET_CODE (  )     (l & 0x0FFF)

Definition at line 18 of file GIFHASH.H.

Referenced by _ExistsHashTable().

#define HT_PUT_KEY (  )     (l << 12)

Definition at line 19 of file GIFHASH.H.

Referenced by _InsertHashTable().

#define HT_PUT_CODE (  )     (l & 0x0FFF)

Definition at line 20 of file GIFHASH.H.

Referenced by _InsertHashTable().


Function Documentation

GifHashTableType* _InitHashTable ( void   ) 

Definition at line 24 of file GIFHASH.C.

References _ClearHashTable(), and X__Malloc.

Referenced by EGifOpenFileHandle().

void _ClearHashTable ( GifHashTableType HashTable  ) 

Definition at line 40 of file GIFHASH.C.

References HT_SIZE.

Referenced by _InitHashTable().

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 
)

Definition at line 74 of file GIFHASH.C.

References HT_GET_CODE, HT_GET_KEY, and HT_KEY_MASK.


Generated on Sun Apr 27 14:20:17 2014 for OpenFX by  doxygen 1.5.6