Main Page   Compound List   File List   Compound Members   File Members  

giftobmp.c File Reference

#include "netfone.h"

Compounds

struct  context
struct  GifScreenStruct

Defines

#define MAXCOLORMAPSIZE   256
#define CM_RED   0
#define CM_GREEN   1
#define CM_BLUE   2
#define MAX_LWZ_BITS   12
#define INTERLACE   0x40
#define LOCALCOLORMAP   0x80
#define BitSet(byte, bit)   (((byte) & (bit)) == (bit))
#define PBM_TYPE   1
#define PGM_TYPE   2
#define PPM_TYPE   3
#define ReadOK(file, buffer, len)   ((memcpy(buffer, gifFile + gifAddr, len), gifAddr += len), TRUE)
#define LM_to_uint(a, b)   (((b) << 8) | (a))
#define GifScreen   GIFcontext->c_GifScreen
#define GetCodebuf   GIFcontext->c_GetCodebuf
#define LZWtable   GIFcontext->c_LZWtable
#define LZWstack   GIFcontext->c_LZWstack
#define localColorMap   GIFcontext->c_localColorMap
#define pm_error(x)

Functions

int ReadColorMap (int number, unsigned char buffer[3][MAXCOLORMAPSIZE])
int GetDataBlock (LPBYTE buf)
int GetCode (int code_size, int flag)
int LWZReadByte (int flag, int input_code_size)
int DoExtension (int label)
int ReadImage (int len, int height, int ncolours, unsigned char cmap[3][MAXCOLORMAPSIZE], int interlace, int ignore)
LPBYTE GIFtoBMP (LPBYTE gif, int imageNumber)

Variables

LPBYTE gifFile
long gifAddr
LPBYTE bmpFile = NULL
struct {
   int   transparent
   int   delayTime
   int   inputFlag
   int   disposal
Gif89
contextGIFcontext
int fatal
int ZeroDataBlock = FALSE

Define Documentation

#define BitSet byte,
bit       (((byte) & (bit)) == (bit))
 

#define CM_BLUE   2
 

#define CM_GREEN   1
 

#define CM_RED   0
 

#define GetCodebuf   GIFcontext->c_GetCodebuf
 

#define GifScreen   GIFcontext->c_GifScreen
 

#define INTERLACE   0x40
 

#define LM_to_uint a,
     (((b) << 8) | (a))
 

#define localColorMap   GIFcontext->c_localColorMap
 

#define LOCALCOLORMAP   0x80
 

#define LZWstack   GIFcontext->c_LZWstack
 

#define LZWtable   GIFcontext->c_LZWtable
 

#define MAX_LWZ_BITS   12
 

#define MAXCOLORMAPSIZE   256
 

#define PBM_TYPE   1
 

#define PGM_TYPE   2
 

#define pm_error  
 

Value:

{ fatal = TRUE;         \
                                          if (GIFcontext != NULL) { GlobalFreePtr(GIFcontext); GIFcontext = NULL; } \
                                          if (bmpFile != NULL) { GlobalFreePtr(bmpFile); bmpFile = NULL; } \
                                          return FALSE; }

#define PPM_TYPE   3
 

#define ReadOK file,
buffer,
len       ((memcpy(buffer, gifFile + gifAddr, len), gifAddr += len), TRUE)
 


Function Documentation

int DoExtension int    label [static]
 

int GetCode int    code_size,
int    flag
[static]
 

int GetDataBlock LPBYTE    buf [static]
 

LPBYTE GIFtoBMP LPBYTE    gif,
int    imageNumber
 

int LWZReadByte int    flag,
int    input_code_size
[static]
 

int ReadColorMap int    number,
unsigned char    buffer[3][MAXCOLORMAPSIZE]
[static]
 

int ReadImage int    len,
int    height,
int    ncolours,
unsigned char    cmap[3][MAXCOLORMAPSIZE],
int    interlace,
int    ignore
[static]
 


Variable Documentation

LPBYTE bmpFile = NULL [static]
 

int delayTime
 

int disposal
 

int fatal [static]
 

struct { ... } Gif89 [static]
 

long gifAddr [static]
 

struct context * GIFcontext [static]
 

LPBYTE gifFile [static]
 

int inputFlag
 

int transparent
 

int ZeroDataBlock = FALSE [static]
 


Generated on Tue Feb 10 08:26:36 2004 for Speak-FreelyforWindows by doxygen1.2.18