gif_hash.h File Reference

#include <sys/types.h>
#include "../afterbase.h"

Go to the source code of this file.

Classes

struct  GifHashTableType

Defines

#define UINT32   CARD32
#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, UINT32 Key, int Code)
int _ExistsHashTable (GifHashTableType *HashTable, UINT32 Key)


Define Documentation

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

Definition at line 40 of file gif_hash.h.

Referenced by _ExistsHashTable().

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

Definition at line 39 of file gif_hash.h.

Referenced by _ExistsHashTable(), and _InsertHashTable().

#define HT_KEY_MASK   0x1FFF

Definition at line 30 of file gif_hash.h.

Referenced by _ExistsHashTable(), _InsertHashTable(), and KeyItem().

#define HT_KEY_NUM_BITS   13

Definition at line 31 of file gif_hash.h.

#define HT_MAX_CODE   4095

Definition at line 33 of file gif_hash.h.

#define HT_MAX_KEY   8191

Definition at line 32 of file gif_hash.h.

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

Definition at line 42 of file gif_hash.h.

Referenced by _InsertHashTable().

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

Definition at line 41 of file gif_hash.h.

Referenced by _InsertHashTable().

#define HT_SIZE   8192

Definition at line 29 of file gif_hash.h.

Referenced by _ClearHashTable().

#define UINT32   CARD32

Definition at line 26 of file gif_hash.h.

Referenced by _ClearHashTable(), _ExistsHashTable(), _InsertHashTable(), and EGifCompressLine().


Function Documentation

void _ClearHashTable ( GifHashTableType HashTable  ) 

Definition at line 77 of file gif_hash.c.

References HT_SIZE, and UINT32.

Referenced by _InitHashTable(), EGifCompressLine(), and EGifSetupCompress().

int _ExistsHashTable ( GifHashTableType HashTable,
UINT32  Key 
)

Definition at line 109 of file gif_hash.c.

References HT_GET_CODE, HT_GET_KEY, HT_KEY_MASK, KeyItem(), and UINT32.

Referenced by EGifCompressLine().

GifHashTableType* _InitHashTable ( void   ) 

Definition at line 60 of file gif_hash.c.

References _ClearHashTable(), malloc(), and NULL.

Referenced by EGifOpen(), and EGifOpenFileHandle().

void _InsertHashTable ( GifHashTableType HashTable,
UINT32  Key,
int  Code 
)

Definition at line 86 of file gif_hash.c.

References HT_GET_KEY, HT_KEY_MASK, HT_PUT_CODE, HT_PUT_KEY, KeyItem(), and UINT32.

Referenced by EGifCompressLine().


Generated on Tue Jul 5 15:58:09 2011 for ROOT_528-00b_version by  doxygen 1.5.1