GIFLIB.H File Reference

Go to the source code of this file.

Data Structures

struct  GifColorType
 Structure used by GIF image code. More...
struct  GifFileType
 Structure used by GIF image code. More...

Defines

#define ERROR   0
#define OK   1
#define TRUE   1
#define FALSE   0
#define FILE_BUFFER_SIZE   16384
#define VoidPtr   void *
#define E_GIF_ERR_OpenFailed   1
#define E_GIF_ERR_WriteFailed   2
#define E_GIF_ERR_HasScrnDscr   3
#define E_GIF_ERR_HasImagDscr   4
#define E_GIF_ERR_NoColorMap   5
#define E_GIF_ERR_DataTooBig   6
#define E_GIF_ERR_NotEnoughMem   7
#define E_GIF_ERR_DiskIsFull   8
#define E_GIF_ERR_CloseFailed   9
#define E_GIF_ERR_NotWriteable   10

Typedefs

typedef int BooleanType
typedef unsigned char PixelType
typedef unsigned char * RowType
typedef unsigned char ByteType

Enumerations

enum  GifRecordType {
  UNDEFINED_RECORD_TYPE, SCREEN_DESC_RECORD_TYPE, IMAGE_DESC_RECORD_TYPE, EXTENSION_RECORD_TYPE,
  TERMINATE_RECORD_TYPE
}

Functions

GifFileTypeEGifOpenFileName (char *GifFileName, long GifTestExistance, long vers)
GifFileTypeEGifOpenFileHandle (char *filename, long vers)
long EGifPutScreenDesc (GifFileType *GifFile, long GifWidth, long GifHeight, long GifColorRes, long GifBackGround, long GifBitsPerPixel, GifColorType *GifColorMap)
long EGifPutImageDesc (GifFileType *GifFile, long GifLeft, long GifTop, long Width, long GifHeight, long GifInterlace, long GifBitsPerPixel, GifColorType *GifColorMap)
long EGifPutControlDesc (GifFileType *GifFile, long transp, ByteType transpid, long delay, long dummy)
long EGifPutBrowserControlDesc (GifFileType *GifFile, long repeat)
long EGifPutLine (GifFileType *GifFile, PixelType *GifLine, long GifLineLen)
long EGifPutCode (GifFileType *GifFile, long GifCodeSize, ByteType *GifCodeBlock)
long EGifPutCodeNext (GifFileType *GifFile, ByteType *GifCodeBlock)
long EGifCloseFile (GifFileType *GifFile)


Define Documentation

#define ERROR   0

#define OK   1

Definition at line 12 of file GIFLIB.H.

#define TRUE   1

Definition at line 15 of file GIFLIB.H.

#define FALSE   0

Definition at line 16 of file GIFLIB.H.

#define FILE_BUFFER_SIZE   16384

Definition at line 19 of file GIFLIB.H.

#define VoidPtr   void *

Definition at line 29 of file GIFLIB.H.

Referenced by EGifOpenFileHandle().

#define E_GIF_ERR_OpenFailed   1

Definition at line 100 of file GIFLIB.H.

#define E_GIF_ERR_WriteFailed   2

Definition at line 101 of file GIFLIB.H.

Referenced by EGifOpenFileHandle(), EGifPutCodeNext(), EGifPutImageDesc(), and EGifPutScreenDesc().

#define E_GIF_ERR_HasScrnDscr   3

Definition at line 102 of file GIFLIB.H.

Referenced by EGifPutScreenDesc().

#define E_GIF_ERR_HasImagDscr   4

Definition at line 103 of file GIFLIB.H.

Referenced by EGifPutImageDesc().

#define E_GIF_ERR_NoColorMap   5

Definition at line 104 of file GIFLIB.H.

Referenced by EGifPutImageDesc().

#define E_GIF_ERR_DataTooBig   6

Definition at line 105 of file GIFLIB.H.

Referenced by EGifPutLine().

#define E_GIF_ERR_NotEnoughMem   7

Definition at line 106 of file GIFLIB.H.

Referenced by EGifOpenFileHandle().

#define E_GIF_ERR_DiskIsFull   8

Definition at line 107 of file GIFLIB.H.

#define E_GIF_ERR_CloseFailed   9

Definition at line 108 of file GIFLIB.H.

Referenced by EGifCloseFile().

#define E_GIF_ERR_NotWriteable   10


Typedef Documentation

typedef int BooleanType

Definition at line 21 of file GIFLIB.H.

typedef unsigned char PixelType

Definition at line 22 of file GIFLIB.H.

typedef unsigned char* RowType

Definition at line 23 of file GIFLIB.H.

typedef unsigned char ByteType

Definition at line 24 of file GIFLIB.H.


Enumeration Type Documentation

Enumerator:
UNDEFINED_RECORD_TYPE 
SCREEN_DESC_RECORD_TYPE 
IMAGE_DESC_RECORD_TYPE 
EXTENSION_RECORD_TYPE 
TERMINATE_RECORD_TYPE 

Definition at line 63 of file GIFLIB.H.


Function Documentation

GifFileType* EGifOpenFileName ( char *  GifFileName,
long  GifTestExistance,
long  vers 
)

Definition at line 80 of file EGIFLIB.C.

References EGifOpenFileHandle().

Referenced by _BuildGif().

GifFileType* EGifOpenFileHandle ( char *  filename,
long  vers 
)

long EGifPutScreenDesc ( GifFileType GifFile,
long  GifWidth,
long  GifHeight,
long  GifColorRes,
long  GifBackGround,
long  GifBitsPerPixel,
GifColorType GifColorMap 
)

long EGifPutImageDesc ( GifFileType GifFile,
long  GifLeft,
long  GifTop,
long  Width,
long  GifHeight,
long  GifInterlace,
long  GifBitsPerPixel,
GifColorType GifColorMap 
)

long EGifPutControlDesc ( GifFileType GifFile,
long  transp,
ByteType  transpid,
long  delay,
long  dummy 
)

Definition at line 281 of file EGIFLIB.C.

References _GifError, E_GIF_ERR_NotWriteable, ERROR, IS_WRITEABLE, and OK.

Referenced by _BuildGif().

long EGifPutBrowserControlDesc ( GifFileType GifFile,
long  repeat 
)

Definition at line 307 of file EGIFLIB.C.

References _GifError, E_GIF_ERR_NotWriteable, ERROR, IS_WRITEABLE, and OK.

Referenced by _BuildGif().

long EGifPutLine ( GifFileType GifFile,
PixelType GifLine,
long  GifLineLen 
)

Definition at line 337 of file EGIFLIB.C.

References _GifError, E_GIF_ERR_DataTooBig, E_GIF_ERR_NotWriteable, ERROR, and IS_WRITEABLE.

Referenced by _BuildGif().

long EGifPutCode ( GifFileType GifFile,
long  GifCodeSize,
ByteType GifCodeBlock 
)

Definition at line 364 of file EGIFLIB.C.

References _GifError, E_GIF_ERR_NotWriteable, EGifPutCodeNext(), ERROR, and IS_WRITEABLE.

long EGifPutCodeNext ( GifFileType GifFile,
ByteType GifCodeBlock 
)

Definition at line 387 of file EGIFLIB.C.

References _GifError, E_GIF_ERR_WriteFailed, ERROR, and OK.

Referenced by EGifPutCode().

long EGifCloseFile ( GifFileType GifFile  ) 

Definition at line 412 of file EGIFLIB.C.

References _GifError, E_GIF_ERR_CloseFailed, E_GIF_ERR_NotWriteable, ERROR, IS_WRITEABLE, OK, and X__Free.

Referenced by _BuildGif().


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