#include <stdlib.h>#include <stdio.h>#include <string.h>#include "gif_lib.h"Go to the source code of this file.
Defines | |
| #define | MAX(x, y) (((x) > (y)) ? (x) : (y)) |
Functions | |
| int | BitSize (int n) |
| ColorMapObject * | MakeMapObject (int ColorCount, const GifColorType *ColorMap) |
| void | FreeMapObject (ColorMapObject *Object) |
| ColorMapObject * | UnionColorMap (const ColorMapObject *ColorIn1, const ColorMapObject *ColorIn2, GifPixelType ColorTransIn2[]) |
| void | ApplyTranslation (SavedImage *Image, GifPixelType Translation[]) |
| void | MakeExtension (SavedImage *New, int Function) |
| int | AddExtensionBlock (SavedImage *New, int Len, char ExtData[]) |
| void | FreeExtension (SavedImage *Image) |
| SavedImage * | MakeSavedImage (GifFileType *GifFile, const SavedImage *CopyFrom) |
| void | FreeSavedImages (GifFileType *GifFile) |
| int AddExtensionBlock | ( | SavedImage * | New, | |
| int | Len, | |||
| char | ExtData[] | |||
| ) |
Definition at line 219 of file gifalloc.c.
References ExtensionBlock::ByteCount, ExtensionBlock::Bytes, SavedImage::ExtensionBlockCount, SavedImage::ExtensionBlocks, ExtensionBlock::Function, SavedImage::Function, GIF_ERROR, GIF_OK, malloc(), NULL, and realloc().
Referenced by get_gif_saved_images().
| void ApplyTranslation | ( | SavedImage * | Image, | |
| GifPixelType | Translation[] | |||
| ) |
Definition at line 195 of file gifalloc.c.
References GifImageDesc::Height, SavedImage::ImageDesc, SavedImage::RasterBits, and GifImageDesc::Width.
| int BitSize | ( | int | n | ) |
Definition at line 28 of file gifalloc.c.
References i.
Referenced by MakeMapObject(), and UnionColorMap().
| void FreeExtension | ( | SavedImage * | Image | ) |
Definition at line 246 of file gifalloc.c.
References ExtensionBlock::Bytes, SavedImage::ExtensionBlockCount, SavedImage::ExtensionBlocks, free(), NULL, and void.
Referenced by free_gif_saved_image(), and FreeSavedImages().
| void FreeMapObject | ( | ColorMapObject * | Object | ) |
Definition at line 73 of file gifalloc.c.
References free(), and Reflex::Dummy::Object().
Referenced by ASImage2gif(), DGifCloseFile(), DGifGetImageDesc(), EGifCloseFile(), free_gif_saved_image(), FreeSavedImages(), and UnionColorMap().
| void FreeSavedImages | ( | GifFileType * | GifFile | ) |
Definition at line 329 of file gifalloc.c.
References GifImageDesc::ColorMap, SavedImage::ExtensionBlocks, free(), FreeExtension(), FreeMapObject(), GifFileType::ImageCount, SavedImage::ImageDesc, SavedImage::RasterBits, and GifFileType::SavedImages.
Referenced by DGifCloseFile().
| void MakeExtension | ( | SavedImage * | New, | |
| int | Function | |||
| ) |
| ColorMapObject* MakeMapObject | ( | int | ColorCount, | |
| const GifColorType * | ColorMap | |||
| ) |
Definition at line 44 of file gifalloc.c.
References BitSize(), calloc(), malloc(), NULL, and Reflex::Dummy::Object().
Referenced by ASImage2gif(), DGifGetImageDesc(), DGifGetScreenDesc(), EGifPutImageDesc(), EGifPutScreenDesc(), get_gif_image_desc(), MakeSavedImage(), and UnionColorMap().
| SavedImage* MakeSavedImage | ( | GifFileType * | GifFile, | |
| const SavedImage * | CopyFrom | |||
| ) |
Definition at line 261 of file gifalloc.c.
References ColorMapObject::ColorCount, GifImageDesc::ColorMap, ColorMapObject::Colors, SavedImage::ExtensionBlockCount, SavedImage::ExtensionBlocks, GifImageDesc::Height, GifFileType::ImageCount, SavedImage::ImageDesc, MakeMapObject(), malloc(), NULL, SavedImage::RasterBits, realloc(), GifFileType::SavedImages, and GifImageDesc::Width.
| ColorMapObject* UnionColorMap | ( | const ColorMapObject * | ColorIn1, | |
| const ColorMapObject * | ColorIn2, | |||
| GifPixelType | ColorTransIn2[] | |||
| ) |
Definition at line 103 of file gifalloc.c.
References BitSize(), ColorMapObject::BitsPerPixel, ColorMapObject::ColorCount, ColorMapObject::Colors, for(), FreeMapObject(), GifColorType::Green, if(), MakeMapObject(), MAX, NULL, realloc(), and GifColorType::Red.
1.5.1