Lines Matching refs:ColorCount
40 GifMakeMapObject(int ColorCount, const GifColorType *ColorMap) in GifMakeMapObject() argument
46 if (ColorCount != (1 << GifBitSize(ColorCount))) { in GifMakeMapObject()
55 Object->Colors = (GifColorType *)calloc(ColorCount, sizeof(GifColorType)); in GifMakeMapObject()
61 Object->ColorCount = ColorCount; in GifMakeMapObject()
62 Object->BitsPerPixel = GifBitSize(ColorCount); in GifMakeMapObject()
66 (char *)ColorMap, ColorCount * sizeof(GifColorType)); in GifMakeMapObject()
90 int i, j, Len = Object->ColorCount; in DumpColorMap()
127 ColorUnion = GifMakeMapObject(MAX(ColorIn1->ColorCount, in GifUnionColorMap()
128 ColorIn2->ColorCount) * 2, NULL); in GifUnionColorMap()
136 for (i = 0; i < ColorIn1->ColorCount; i++) in GifUnionColorMap()
138 CrntSlot = ColorIn1->ColorCount; in GifUnionColorMap()
153 for (i = 0; i < ColorIn2->ColorCount && CrntSlot <= 256; i++) { in GifUnionColorMap()
155 for (j = 0; j < ColorIn1->ColorCount; j++) in GifUnionColorMap()
160 if (j < ColorIn1->ColorCount) in GifUnionColorMap()
177 if (RoundUpTo != ColorUnion->ColorCount) { in GifUnionColorMap()
189 if (RoundUpTo < ColorUnion->ColorCount) in GifUnionColorMap()
194 ColorUnion->ColorCount = RoundUpTo; in GifUnionColorMap()
340 CopyFrom->ImageDesc.ColorMap->ColorCount, in GifMakeSavedImage()