GIFDECOD.C File Reference

Go to the source code of this file.

Defines

#define MODULE_GIFDECOD
#define TRUE   1
#define FALSE   0
#define LOCAL   static
#define IMPORT   extern
#define FAST   register
#define OUT_OF_MEMORY   -10
#define BAD_CODE_SIZE   -20
#define WRITE_ERROR   -2
#define OPEN_ERROR   -3
#define CREATE_ERROR   -4
#define MAX_CODES   4095

Typedefs

typedef struct Colour_Struct COLOUR
typedef struct Colour_Map_Entry COLOUR_MAP_ENTRY
typedef struct Colour_Map_Struct COLOUR_MAP
typedef struct Image_Struct IMAGE
typedef short WORD
typedef unsigned short UWORD
typedef char TEXT
typedef unsigned char UTINY
typedef long LONG
typedef unsigned long ULONG
typedef long INT

Functions

short GIF_decoder (short linewidth)
IMPORT long get_byte (void)
IMPORT long out_line (unsigned char *pixels, long linelen)

Variables

LOCAL WORD curr_size
LOCAL WORD clear
LOCAL WORD ending
LOCAL WORD newcodes
LOCAL WORD top_slot
LOCAL WORD slot
LOCAL WORD navail_bytes = 0
LOCAL WORD nbits_left = 0
LOCAL UTINY b1
LOCAL UTINY byte_buff [257]
LOCAL UTINYpbytes
LOCAL LONG code_mask [13]
LOCAL UTINY dstack [MAX_CODES+1]
LOCAL UTINY suffix [MAX_CODES+1]
LOCAL UWORD prefix [MAX_CODES+1]
UTINYdecoderline


Define Documentation

#define MODULE_GIFDECOD

Definition at line 24 of file GIFDECOD.C.

#define TRUE   1

Definition at line 34 of file GIFDECOD.C.

#define FALSE   0

Definition at line 38 of file GIFDECOD.C.

#define LOCAL   static

Definition at line 78 of file GIFDECOD.C.

#define IMPORT   extern

Definition at line 79 of file GIFDECOD.C.

#define FAST   register

Definition at line 81 of file GIFDECOD.C.

#define OUT_OF_MEMORY   -10

Definition at line 99 of file GIFDECOD.C.

#define BAD_CODE_SIZE   -20

Definition at line 100 of file GIFDECOD.C.

#define WRITE_ERROR   -2

Definition at line 101 of file GIFDECOD.C.

#define OPEN_ERROR   -3

Definition at line 102 of file GIFDECOD.C.

#define CREATE_ERROR   -4

Definition at line 103 of file GIFDECOD.C.

#define MAX_CODES   4095

Definition at line 130 of file GIFDECOD.C.


Typedef Documentation

typedef struct Colour_Struct COLOUR

Definition at line 41 of file GIFDECOD.C.

typedef struct Colour_Map_Entry COLOUR_MAP_ENTRY

Definition at line 42 of file GIFDECOD.C.

typedef struct Colour_Map_Struct COLOUR_MAP

Definition at line 43 of file GIFDECOD.C.

typedef struct Image_Struct IMAGE

Definition at line 44 of file GIFDECOD.C.

typedef short WORD

Definition at line 83 of file GIFDECOD.C.

typedef unsigned short UWORD

Definition at line 84 of file GIFDECOD.C.

typedef char TEXT

Definition at line 85 of file GIFDECOD.C.

typedef unsigned char UTINY

Definition at line 86 of file GIFDECOD.C.

typedef long LONG

Definition at line 87 of file GIFDECOD.C.

typedef unsigned long ULONG

Definition at line 88 of file GIFDECOD.C.

typedef long INT

Definition at line 89 of file GIFDECOD.C.


Function Documentation

short GIF_decoder ( short  linewidth  ) 

IMPORT long get_byte ( void   ) 

Definition at line 39 of file gif_map.c.

IMPORT long out_line ( unsigned char *  pixels,
long  linelen 
)

Definition at line 43 of file gif_map.c.


Variable Documentation

LOCAL WORD curr_size

Definition at line 133 of file GIFDECOD.C.

LOCAL WORD clear

Definition at line 134 of file GIFDECOD.C.

LOCAL WORD ending

Definition at line 135 of file GIFDECOD.C.

LOCAL WORD newcodes

Definition at line 136 of file GIFDECOD.C.

LOCAL WORD top_slot

Definition at line 137 of file GIFDECOD.C.

LOCAL WORD slot

Definition at line 138 of file GIFDECOD.C.

LOCAL WORD navail_bytes = 0

Definition at line 143 of file GIFDECOD.C.

LOCAL WORD nbits_left = 0

Definition at line 144 of file GIFDECOD.C.

LOCAL UTINY b1

Definition at line 145 of file GIFDECOD.C.

LOCAL UTINY byte_buff[257]

Definition at line 146 of file GIFDECOD.C.

LOCAL UTINY* pbytes

Definition at line 147 of file GIFDECOD.C.

LOCAL LONG code_mask[13]

Initial value:

 {
     0,
     0x0001, 0x0003,
     0x0007, 0x000F,
     0x001F, 0x003F,
     0x007F, 0x00FF,
     0x01FF, 0x03FF,
     0x07FF, 0x0FFF
     }

Definition at line 149 of file GIFDECOD.C.

LOCAL UTINY dstack[MAX_CODES+1]

Definition at line 257 of file GIFDECOD.C.

LOCAL UTINY suffix[MAX_CODES+1]

Definition at line 258 of file GIFDECOD.C.

LOCAL UWORD prefix[MAX_CODES+1]

Definition at line 259 of file GIFDECOD.C.

Definition at line 76 of file GIF.C.

Referenced by decoder(), and read_gif_image().


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