FreeBASIC  0.91.0
fb_gfx_lzw.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  LZW_ENTRY
 

Macros

#define MAX_CODE   4095
 
#define TABLE_SIZE   5021
 
#define OUTPUT_CODE(c)
 
#define INPUT_CODE(c)
 

Typedefs

typedef struct LZW_ENTRY LZW_ENTRY
 

Variables

LZW_ENTRY fb_lzw_entry [TABLE_SIZE]
 

Macro Definition Documentation

#define INPUT_CODE (   c)
Value:
{ \
if (bit) { \
c = *in_buffer++ >> 4; \
c |= *in_buffer++ << 4; \
in_size--; \
} \
else { \
c = *in_buffer++; \
c |= (*in_buffer & 0xF) << 8; \
} \
in_size--; \
bit ^= 1; \
}

Definition at line 28 of file fb_gfx_lzw.h.

#define MAX_CODE   4095

Definition at line 8 of file fb_gfx_lzw.h.

#define OUTPUT_CODE (   c)
Value:
{ \
if (bit) { \
*out_buffer++ |= (c & 0xF) << 4; \
*out_buffer++ = c >> 4; \
size++; \
} \
else { \
*out_buffer++ = c & 0xFF; \
*out_buffer = c >> 8; \
} \
size++; \
if (size >= *out_size) \
return -1; \
bit ^= 1; \
}

Definition at line 11 of file fb_gfx_lzw.h.

#define TABLE_SIZE   5021

Definition at line 9 of file fb_gfx_lzw.h.

Typedef Documentation

typedef struct LZW_ENTRY LZW_ENTRY

Variable Documentation

LZW_ENTRY fb_lzw_entry[TABLE_SIZE]

Definition at line 8 of file gfx_lzw.c.