Home | History | Annotate | Download | only in giflib

Lines Matching defs:Object

41  * Color map object functions                              
52 ColorMapObject *Object;
60 Object = (ColorMapObject *)malloc(sizeof(ColorMapObject));
61 if (Object == (ColorMapObject *) NULL) {
65 Object->Colors = (GifColorType *)calloc(ColorCount, sizeof(GifColorType));
66 if (Object->Colors == (GifColorType *) NULL) {
70 Object->ColorCount = ColorCount;
71 Object->BitsPerPixel = BitSize(ColorCount);
74 memcpy((char *)Object->Colors,
78 return (Object);
82 * Free a color map object
85 FreeMapObject(ColorMapObject * Object) {
87 if (Object != NULL) {
88 free(Object->Colors);
89 free(Object);
92 * FreeMapObject(ColorMapObject **Object)
94 * *Object = NULL;
101 DumpColorMap(ColorMapObject * Object,
104 if (Object) {
105 int i, j, Len = Object->ColorCount;
110 Object->Colors[i + j].Red,
111 Object->Colors[i + j].Green,
112 Object->Colors[i + j].Blue);