Home | History | Annotate | Download | only in giflib

Lines Matching defs:Object

32   Color map object functions                              
42 ColorMapObject *Object;
50 Object = (ColorMapObject *)malloc(sizeof(ColorMapObject));
51 if (Object == (ColorMapObject *) NULL) {
55 Object->Colors = (GifColorType *)calloc(ColorCount, sizeof(GifColorType));
56 if (Object->Colors == (GifColorType *) NULL) {
57 free(Object);
61 Object->ColorCount = ColorCount;
62 Object->BitsPerPixel = GifBitSize(ColorCount);
63 Object->SortFlag = false;
66 memcpy((char *)Object->Colors,
70 return (Object);
74 Free a color map object
77 GifFreeMapObject(ColorMapObject *Object)
79 if (Object != NULL) {
80 (void)free(Object->Colors);
81 (void)free(Object);
87 DumpColorMap(ColorMapObject *Object,
90 if (Object != NULL) {
91 int i, j, Len = Object->ColorCount;
96 Object->Colors[i + j].Red,
97 Object->Colors[i + j].Green,
98 Object->Colors[i + j].Blue);