Lines Matching refs:ColorCount
43 GifMakeMapObject(int ColorCount, const GifColorType *ColorMap) in GifMakeMapObject() argument
49 if (ColorCount != (1 << GifBitSize(ColorCount))) { in GifMakeMapObject()
58 Object->Colors = (GifColorType *)calloc(ColorCount, sizeof(GifColorType)); in GifMakeMapObject()
64 Object->ColorCount = ColorCount; in GifMakeMapObject()
65 Object->BitsPerPixel = GifBitSize(ColorCount); in GifMakeMapObject()
70 (char *)ColorMap, ColorCount * sizeof(GifColorType)); in GifMakeMapObject()
94 int i, j, Len = Object->ColorCount; in DumpColorMap()
131 ColorUnion = GifMakeMapObject(MAX(ColorIn1->ColorCount, in GifUnionColorMap()
132 ColorIn2->ColorCount) * 2, NULL); in GifUnionColorMap()
140 for (i = 0; i < ColorIn1->ColorCount; i++) in GifUnionColorMap()
142 CrntSlot = ColorIn1->ColorCount; in GifUnionColorMap()
157 for (i = 0; i < ColorIn2->ColorCount && CrntSlot <= 256; i++) { in GifUnionColorMap()
159 for (j = 0; j < ColorIn1->ColorCount; j++) in GifUnionColorMap()
164 if (j < ColorIn1->ColorCount) in GifUnionColorMap()
181 if (RoundUpTo != ColorUnion->ColorCount) { in GifUnionColorMap()
193 if (RoundUpTo < ColorUnion->ColorCount) { in GifUnionColorMap()
204 ColorUnion->ColorCount = RoundUpTo; in GifUnionColorMap()
354 CopyFrom->ImageDesc.ColorMap->ColorCount, in GifMakeSavedImage()