Data Structures | |
struct | GifColorType |
struct | ColorMapObject |
struct | GifImageDesc |
struct | GifFileType |
struct | ExtensionBlock |
struct | SavedImage |
Defines | |
#define | _GIF_LIB_H_ 1 |
#define | GIF_LIB_VERSION " Version 4.1, " |
#define | GIF_ERROR 0 |
#define | GIF_OK 1 |
#define | TRUE 1 |
#define | FALSE 0 |
#define | O_RDONLY 1 |
#define | O_WRONLY 2 |
#define | O_CREAT 1 |
#define | O_EXCL 2 |
#define | O_TRUNC 2 |
#define | NULL 0 |
#define | GIF_STAMP "GIFVER" |
#define | GIF_STAMP_LEN sizeof(GIF_STAMP) - 1 |
#define | GIF_VERSION_POS 3 |
#define | GIF87_STAMP "GIF87a" |
#define | GIF89_STAMP "GIF89a" |
#define | GIF_FILE_BUFFER_SIZE 16384 |
#define | GIF_MESSAGE(Msg) fprintf(stderr, "\n%s: %s\n", PROGRAM_NAME, Msg) |
#define | GIF_EXIT(Msg) { GIF_MESSAGE(Msg); exit(-3); } |
#define | VoidPtr void * |
#define | COMMENT_EXT_FUNC_CODE 0xfe |
#define | GRAPHICS_EXT_FUNC_CODE 0xf9 |
#define | PLAINTEXT_EXT_FUNC_CODE 0x01 |
#define | APPLICATION_EXT_FUNC_CODE 0xff |
#define | E_GIF_ERR_OPEN_FAILED 1 |
#define | E_GIF_ERR_WRITE_FAILED 2 |
#define | E_GIF_ERR_HAS_SCRN_DSCR 3 |
#define | E_GIF_ERR_HAS_IMAG_DSCR 4 |
#define | E_GIF_ERR_NO_COLOR_MAP 5 |
#define | E_GIF_ERR_DATA_TOO_BIG 6 |
#define | E_GIF_ERR_NOT_ENOUGH_MEM 7 |
#define | E_GIF_ERR_DISK_IS_FULL 8 |
#define | E_GIF_ERR_CLOSE_FAILED 9 |
#define | E_GIF_ERR_NOT_WRITEABLE 10 |
#define | D_GIF_ERR_OPEN_FAILED 101 |
#define | D_GIF_ERR_READ_FAILED 102 |
#define | D_GIF_ERR_NOT_GIF_FILE 103 |
#define | D_GIF_ERR_NO_SCRN_DSCR 104 |
#define | D_GIF_ERR_NO_IMAG_DSCR 105 |
#define | D_GIF_ERR_NO_COLOR_MAP 106 |
#define | D_GIF_ERR_WRONG_RECORD 107 |
#define | D_GIF_ERR_DATA_TOO_BIG 108 |
#define | D_GIF_ERR_NOT_ENOUGH_MEM 109 |
#define | D_GIF_ERR_CLOSE_FAILED 110 |
#define | D_GIF_ERR_NOT_READABLE 111 |
#define | D_GIF_ERR_IMAGE_DEFECT 112 |
#define | D_GIF_ERR_EOF_TOO_SOON 113 |
#define | GIF_FONT_WIDTH 8 |
#define | GIF_FONT_HEIGHT 8 |
Typedefs | |
typedef int | GifBooleanType |
typedef unsigned char | GifPixelType |
typedef unsigned char * | GifRowType |
typedef unsigned char | GifByteType |
typedef unsigned int | GifPrefixType |
typedef int | GifWord |
typedef int(* | InputFunc )(GifFileType *, GifByteType *, int) |
typedef int(* | OutputFunc )(GifFileType *, const GifByteType *, int) |
Enumerations | |
enum | GifRecordType { UNDEFINED_RECORD_TYPE, SCREEN_DESC_RECORD_TYPE, IMAGE_DESC_RECORD_TYPE, EXTENSION_RECORD_TYPE, TERMINATE_RECORD_TYPE } |
enum | GifScreenDumpType { GIF_DUMP_SGI_WINDOW = 1000, GIF_DUMP_X_WINDOW = 1001 } |
Functions | |
GifFileType * | EGifOpenFileName (const char *GifFileName, int GifTestExistance) |
GifFileType * | EGifOpenFileHandle (int GifFileHandle) |
GifFileType * | EGifOpen (void *userPtr, OutputFunc writeFunc) |
int | EGifSpew (GifFileType *GifFile) |
void | EGifSetGifVersion (const char *Version) |
int | EGifPutScreenDesc (GifFileType *GifFile, int GifWidth, int GifHeight, int GifColorRes, int GifBackGround, const ColorMapObject *GifColorMap) |
int | EGifPutImageDesc (GifFileType *GifFile, int GifLeft, int GifTop, int Width, int GifHeight, int GifInterlace, const ColorMapObject *GifColorMap) |
int | EGifPutLine (GifFileType *GifFile, GifPixelType *GifLine, int GifLineLen) |
int | EGifPutPixel (GifFileType *GifFile, GifPixelType GifPixel) |
int | EGifPutComment (GifFileType *GifFile, const char *GifComment) |
int | EGifPutExtensionFirst (GifFileType *GifFile, int GifExtCode, int GifExtLen, const VoidPtr GifExtension) |
int | EGifPutExtensionNext (GifFileType *GifFile, int GifExtCode, int GifExtLen, const VoidPtr GifExtension) |
int | EGifPutExtensionLast (GifFileType *GifFile, int GifExtCode, int GifExtLen, const VoidPtr GifExtension) |
int | EGifPutExtension (GifFileType *GifFile, int GifExtCode, int GifExtLen, const VoidPtr GifExtension) |
int | EGifPutCode (GifFileType *GifFile, int GifCodeSize, const GifByteType *GifCodeBlock) |
int | EGifPutCodeNext (GifFileType *GifFile, const GifByteType *GifCodeBlock) |
int | EGifCloseFile (GifFileType *GifFile) |
GifFileType * | DGifOpenFileName (const char *GifFileName) |
GifFileType * | DGifOpenFileHandle (int GifFileHandle) |
int | DGifSlurp (GifFileType *GifFile) |
GifFileType * | DGifOpen (void *userPtr, InputFunc readFunc) |
int | DGifGetScreenDesc (GifFileType *GifFile) |
int | DGifGetRecordType (GifFileType *GifFile, GifRecordType *GifType) |
int | DGifGetImageDesc (GifFileType *GifFile) |
int | DGifGetLine (GifFileType *GifFile, GifPixelType *GifLine, int GifLineLen) |
int | DGifGetPixel (GifFileType *GifFile, GifPixelType GifPixel) |
int | DGifGetComment (GifFileType *GifFile, char *GifComment) |
int | DGifGetExtension (GifFileType *GifFile, int *GifExtCode, GifByteType **GifExtension) |
int | DGifGetExtensionNext (GifFileType *GifFile, GifByteType **GifExtension) |
int | DGifGetCode (GifFileType *GifFile, int *GifCodeSize, GifByteType **GifCodeBlock) |
int | DGifGetCodeNext (GifFileType *GifFile, GifByteType **GifCodeBlock) |
int | DGifGetLZCodes (GifFileType *GifFile, int *GifCode) |
int | DGifCloseFile (GifFileType *GifFile) |
int | QuantizeBuffer (unsigned int Width, unsigned int Height, int *ColorMapSize, GifByteType *RedInput, GifByteType *GreenInput, GifByteType *BlueInput, GifByteType *OutputBuffer, GifColorType *OutputColorMap) |
void | PrintGifError (void) |
int | GifLastError (void) |
int | DumpScreen2Gif (const char *FileName, int ReqGraphDriver, long ReqGraphMode1, long ReqGraphMode2, long ReqGraphMode3) |
ColorMapObject * | MakeMapObject (int ColorCount, const GifColorType *ColorMap) |
void | FreeMapObject (ColorMapObject *Object) |
ColorMapObject * | UnionColorMap (const ColorMapObject *ColorIn1, const ColorMapObject *ColorIn2, GifPixelType ColorTransIn2[]) |
int | BitSize (int n) |
void | ApplyTranslation (SavedImage *Image, GifPixelType Translation[]) |
void | MakeExtension (SavedImage *New, int Function) |
int | AddExtensionBlock (SavedImage *New, int Len, unsigned char ExtData[]) |
void | FreeExtension (SavedImage *Image) |
SavedImage * | MakeSavedImage (GifFileType *GifFile, const SavedImage *CopyFrom) |
void | FreeSavedImages (GifFileType *GifFile) |
void | DrawText (SavedImage *Image, const int x, const int y, const char *legend, const int color) |
void | DrawBox (SavedImage *Image, const int x, const int y, const int w, const int d, const int color) |
void | DrawRectangle (SavedImage *Image, const int x, const int y, const int w, const int d, const int color) |
void | DrawBoxedText (SavedImage *Image, const int x, const int y, const char *legend, const int border, const int bg, const int fg) |
Variables | |
int | GifQuietPrint |
unsigned char | AsciiTable [][GIF_FONT_WIDTH] |
#define _GIF_LIB_H_ 1 |
#define APPLICATION_EXT_FUNC_CODE 0xff |
#define COMMENT_EXT_FUNC_CODE 0xfe |
#define D_GIF_ERR_CLOSE_FAILED 110 |
#define D_GIF_ERR_DATA_TOO_BIG 108 |
#define D_GIF_ERR_EOF_TOO_SOON 113 |
#define D_GIF_ERR_IMAGE_DEFECT 112 |
#define D_GIF_ERR_NO_COLOR_MAP 106 |
#define D_GIF_ERR_NO_IMAG_DSCR 105 |
#define D_GIF_ERR_NO_SCRN_DSCR 104 |
#define D_GIF_ERR_NOT_ENOUGH_MEM 109 |
#define D_GIF_ERR_NOT_GIF_FILE 103 |
#define D_GIF_ERR_NOT_READABLE 111 |
#define D_GIF_ERR_OPEN_FAILED 101 |
#define D_GIF_ERR_READ_FAILED 102 |
#define D_GIF_ERR_WRONG_RECORD 107 |
#define E_GIF_ERR_CLOSE_FAILED 9 |
#define E_GIF_ERR_DATA_TOO_BIG 6 |
#define E_GIF_ERR_DISK_IS_FULL 8 |
#define E_GIF_ERR_HAS_IMAG_DSCR 4 |
#define E_GIF_ERR_HAS_SCRN_DSCR 3 |
#define E_GIF_ERR_NO_COLOR_MAP 5 |
#define E_GIF_ERR_NOT_ENOUGH_MEM 7 |
#define E_GIF_ERR_NOT_WRITEABLE 10 |
#define E_GIF_ERR_OPEN_FAILED 1 |
#define E_GIF_ERR_WRITE_FAILED 2 |
#define FALSE 0 |
#define GIF87_STAMP "GIF87a" |
#define GIF89_STAMP "GIF89a" |
#define GIF_ERROR 0 |
#define GIF_EXIT | ( | Msg | ) | { GIF_MESSAGE(Msg); exit(-3); } |
#define GIF_FILE_BUFFER_SIZE 16384 |
#define GIF_FONT_HEIGHT 8 |
#define GIF_FONT_WIDTH 8 |
#define GIF_LIB_VERSION " Version 4.1, " |
#define GIF_MESSAGE | ( | Msg | ) | fprintf(stderr, "\n%s: %s\n", PROGRAM_NAME, Msg) |
#define GIF_OK 1 |
#define GIF_STAMP "GIFVER" |
#define GIF_STAMP_LEN sizeof(GIF_STAMP) - 1 |
#define GIF_VERSION_POS 3 |
#define GRAPHICS_EXT_FUNC_CODE 0xf9 |
#define NULL 0 |
#define O_CREAT 1 |
#define O_EXCL 2 |
#define O_RDONLY 1 |
#define O_TRUNC 2 |
#define O_WRONLY 2 |
#define PLAINTEXT_EXT_FUNC_CODE 0x01 |
#define TRUE 1 |
#define VoidPtr void * |
typedef int GifBooleanType |
typedef unsigned char GifByteType |
typedef unsigned char GifPixelType |
typedef unsigned int GifPrefixType |
typedef unsigned char* GifRowType |
typedef int GifWord |
typedef int(* InputFunc)(GifFileType *, GifByteType *, int) |
typedef int(* OutputFunc)(GifFileType *, const GifByteType *, int) |
enum GifRecordType |
enum GifScreenDumpType |
int AddExtensionBlock | ( | SavedImage * | New, | |
int | Len, | |||
unsigned char | ExtData[] | |||
) |
void ApplyTranslation | ( | SavedImage * | Image, | |
GifPixelType | Translation[] | |||
) |
int BitSize | ( | int | n | ) |
int DGifCloseFile | ( | GifFileType * | GifFile | ) |
int DGifGetCode | ( | GifFileType * | GifFile, | |
int * | GifCodeSize, | |||
GifByteType ** | GifCodeBlock | |||
) |
int DGifGetCodeNext | ( | GifFileType * | GifFile, | |
GifByteType ** | GifCodeBlock | |||
) |
int DGifGetComment | ( | GifFileType * | GifFile, | |
char * | GifComment | |||
) |
int DGifGetExtension | ( | GifFileType * | GifFile, | |
int * | GifExtCode, | |||
GifByteType ** | GifExtension | |||
) |
int DGifGetExtensionNext | ( | GifFileType * | GifFile, | |
GifByteType ** | GifExtension | |||
) |
int DGifGetImageDesc | ( | GifFileType * | GifFile | ) |
int DGifGetLine | ( | GifFileType * | GifFile, | |
GifPixelType * | GifLine, | |||
int | GifLineLen | |||
) |
int DGifGetLZCodes | ( | GifFileType * | GifFile, | |
int * | GifCode | |||
) |
int DGifGetPixel | ( | GifFileType * | GifFile, | |
GifPixelType | GifPixel | |||
) |
int DGifGetRecordType | ( | GifFileType * | GifFile, | |
GifRecordType * | GifType | |||
) |
int DGifGetScreenDesc | ( | GifFileType * | GifFile | ) |
GifFileType* DGifOpen | ( | void * | userPtr, | |
InputFunc | readFunc | |||
) |
GifFileType* DGifOpenFileHandle | ( | int | GifFileHandle | ) |
GifFileType* DGifOpenFileName | ( | const char * | GifFileName | ) |
int DGifSlurp | ( | GifFileType * | GifFile | ) |
void DrawBox | ( | SavedImage * | Image, | |
const int | x, | |||
const int | y, | |||
const int | w, | |||
const int | d, | |||
const int | color | |||
) |
void DrawBoxedText | ( | SavedImage * | Image, | |
const int | x, | |||
const int | y, | |||
const char * | legend, | |||
const int | border, | |||
const int | bg, | |||
const int | fg | |||
) |
void DrawRectangle | ( | SavedImage * | Image, | |
const int | x, | |||
const int | y, | |||
const int | w, | |||
const int | d, | |||
const int | color | |||
) |
void DrawText | ( | SavedImage * | Image, | |
const int | x, | |||
const int | y, | |||
const char * | legend, | |||
const int | color | |||
) |
int DumpScreen2Gif | ( | const char * | FileName, | |
int | ReqGraphDriver, | |||
long | ReqGraphMode1, | |||
long | ReqGraphMode2, | |||
long | ReqGraphMode3 | |||
) |
int EGifCloseFile | ( | GifFileType * | GifFile | ) |
GifFileType* EGifOpen | ( | void * | userPtr, | |
OutputFunc | writeFunc | |||
) |
GifFileType* EGifOpenFileHandle | ( | int | GifFileHandle | ) |
GifFileType* EGifOpenFileName | ( | const char * | GifFileName, | |
int | GifTestExistance | |||
) |
int EGifPutCode | ( | GifFileType * | GifFile, | |
int | GifCodeSize, | |||
const GifByteType * | GifCodeBlock | |||
) |
int EGifPutCodeNext | ( | GifFileType * | GifFile, | |
const GifByteType * | GifCodeBlock | |||
) |
int EGifPutComment | ( | GifFileType * | GifFile, | |
const char * | GifComment | |||
) |
int EGifPutExtension | ( | GifFileType * | GifFile, | |
int | GifExtCode, | |||
int | GifExtLen, | |||
const VoidPtr | GifExtension | |||
) |
int EGifPutExtensionFirst | ( | GifFileType * | GifFile, | |
int | GifExtCode, | |||
int | GifExtLen, | |||
const VoidPtr | GifExtension | |||
) |
int EGifPutExtensionLast | ( | GifFileType * | GifFile, | |
int | GifExtCode, | |||
int | GifExtLen, | |||
const VoidPtr | GifExtension | |||
) |
int EGifPutExtensionNext | ( | GifFileType * | GifFile, | |
int | GifExtCode, | |||
int | GifExtLen, | |||
const VoidPtr | GifExtension | |||
) |
int EGifPutImageDesc | ( | GifFileType * | GifFile, | |
int | GifLeft, | |||
int | GifTop, | |||
int | Width, | |||
int | GifHeight, | |||
int | GifInterlace, | |||
const ColorMapObject * | GifColorMap | |||
) |
int EGifPutLine | ( | GifFileType * | GifFile, | |
GifPixelType * | GifLine, | |||
int | GifLineLen | |||
) |
int EGifPutPixel | ( | GifFileType * | GifFile, | |
GifPixelType | GifPixel | |||
) |
int EGifPutScreenDesc | ( | GifFileType * | GifFile, | |
int | GifWidth, | |||
int | GifHeight, | |||
int | GifColorRes, | |||
int | GifBackGround, | |||
const ColorMapObject * | GifColorMap | |||
) |
void EGifSetGifVersion | ( | const char * | Version | ) |
int EGifSpew | ( | GifFileType * | GifFile | ) |
void FreeExtension | ( | SavedImage * | Image | ) |
void FreeMapObject | ( | ColorMapObject * | Object | ) |
void FreeSavedImages | ( | GifFileType * | GifFile | ) |
int GifLastError | ( | void | ) |
void MakeExtension | ( | SavedImage * | New, | |
int | Function | |||
) |
ColorMapObject* MakeMapObject | ( | int | ColorCount, | |
const GifColorType * | ColorMap | |||
) |
SavedImage* MakeSavedImage | ( | GifFileType * | GifFile, | |
const SavedImage * | CopyFrom | |||
) |
void PrintGifError | ( | void | ) |
int QuantizeBuffer | ( | unsigned int | Width, | |
unsigned int | Height, | |||
int * | ColorMapSize, | |||
GifByteType * | RedInput, | |||
GifByteType * | GreenInput, | |||
GifByteType * | BlueInput, | |||
GifByteType * | OutputBuffer, | |||
GifColorType * | OutputColorMap | |||
) |
ColorMapObject* UnionColorMap | ( | const ColorMapObject * | ColorIn1, | |
const ColorMapObject * | ColorIn2, | |||
GifPixelType | ColorTransIn2[] | |||
) |
unsigned char AsciiTable[][GIF_FONT_WIDTH] |
int GifQuietPrint |