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 | |
GifFileType * | EGifOpenFileName (char *GifFileName, long GifTestExistance, long vers) |
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) |
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 ERROR 0 |
Definition at line 10 of file GIFLIB.H.
Referenced by _BuildGif(), EGifCloseFile(), EGifOpenFileHandle(), EGifPutBrowserControlDesc(), EGifPutCode(), EGifPutCodeNext(), EGifPutControlDesc(), EGifPutImageDesc(), EGifPutLine(), and EGifPutScreenDesc().
#define VoidPtr void * |
#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 |
#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_CloseFailed 9 |
#define E_GIF_ERR_NotWriteable 10 |
Definition at line 109 of file GIFLIB.H.
Referenced by EGifCloseFile(), EGifPutBrowserControlDesc(), EGifPutCode(), EGifPutControlDesc(), EGifPutImageDesc(), EGifPutLine(), and EGifPutScreenDesc().
typedef int BooleanType |
enum GifRecordType |
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 | |||
) |
Definition at line 90 of file EGIFLIB.C.
References _GifError, _InitHashTable(), E_GIF_ERR_NotEnoughMem, E_GIF_ERR_WriteFailed, ERROR, FILE_STATE_WRITE, GIF_STAMP87, GIF_STAMP89, GifFile, VoidPtr, X__Free, and X__Malloc.
Referenced by EGifOpenFileName().
long EGifPutScreenDesc | ( | GifFileType * | GifFile, | |
long | GifWidth, | |||
long | GifHeight, | |||
long | GifColorRes, | |||
long | GifBackGround, | |||
long | GifBitsPerPixel, | |||
GifColorType * | GifColorMap | |||
) |
Definition at line 140 of file EGIFLIB.C.
References _GifError, GifColorType::Blue, E_GIF_ERR_HasScrnDscr, E_GIF_ERR_NotWriteable, E_GIF_ERR_WriteFailed, ERROR, FILE_STATE_SCREEN, GifColorType::Green, IS_WRITEABLE, OK, GifColorType::Red, and X__Malloc.
Referenced by _BuildGif().
long EGifPutImageDesc | ( | GifFileType * | GifFile, | |
long | GifLeft, | |||
long | GifTop, | |||
long | Width, | |||
long | GifHeight, | |||
long | GifInterlace, | |||
long | GifBitsPerPixel, | |||
GifColorType * | GifColorMap | |||
) |
Definition at line 207 of file EGIFLIB.C.
References _GifError, GifColorType::Blue, E_GIF_ERR_HasImagDscr, E_GIF_ERR_NoColorMap, E_GIF_ERR_NotWriteable, E_GIF_ERR_WriteFailed, ERROR, FILE_STATE_IMAGE, GifColorType::Green, IS_WRITEABLE, OK, GifColorType::Red, X__Free, and X__Malloc.
Referenced by _BuildGif().
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().