#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 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_SIZE 8192 |
| #define UINT32 CARD32 |
Definition at line 26 of file gif_hash.h.
Referenced by _ClearHashTable(), _ExistsHashTable(), _InsertHashTable(), and EGifCompressLine().
| 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().
1.5.1