Lines Matching refs:NewColorSubdiv

41 static int SubdivColorMap(NewColorMapType * NewColorSubdiv,
72 NewColorMapType NewColorSubdiv[256]; in GifQuantizeBuffer() local
102 NewColorSubdiv[i].QuantizedColors = NULL; in GifQuantizeBuffer()
103 NewColorSubdiv[i].Count = NewColorSubdiv[i].NumEntries = 0; in GifQuantizeBuffer()
105 NewColorSubdiv[i].RGBMin[j] = 0; in GifQuantizeBuffer()
106 NewColorSubdiv[i].RGBWidth[j] = 255; in GifQuantizeBuffer()
114 QuantizedColor = NewColorSubdiv[0].QuantizedColors = &ColorArrayEntries[i]; in GifQuantizeBuffer()
124 NewColorSubdiv[0].NumEntries = NumOfEntries; /* Different sampled colors */ in GifQuantizeBuffer()
125 NewColorSubdiv[0].Count = ((long)Width) * Height; /* Pixels */ in GifQuantizeBuffer()
127 if (SubdivColorMap(NewColorSubdiv, *ColorMapSize, &NewColorMapSize) != in GifQuantizeBuffer()
142 if ((j = NewColorSubdiv[i].NumEntries) > 0) { in GifQuantizeBuffer()
143 QuantizedColor = NewColorSubdiv[i].QuantizedColors; in GifQuantizeBuffer()
197 SubdivColorMap(NewColorMapType * NewColorSubdiv, in SubdivColorMap() argument
211 if ((((int)NewColorSubdiv[i].RGBWidth[j]) > MaxSize) && in SubdivColorMap()
212 (NewColorSubdiv[i].NumEntries > 1)) { in SubdivColorMap()
213 MaxSize = NewColorSubdiv[i].RGBWidth[j]; in SubdivColorMap()
229 NewColorSubdiv[Index].NumEntries); in SubdivColorMap()
232 for (j = 0, QuantizedColor = NewColorSubdiv[Index].QuantizedColors; in SubdivColorMap()
233 j < NewColorSubdiv[Index].NumEntries && QuantizedColor != NULL; in SubdivColorMap()
237 qsort(SortArray, NewColorSubdiv[Index].NumEntries, in SubdivColorMap()
241 for (j = 0; j < NewColorSubdiv[Index].NumEntries - 1; j++) in SubdivColorMap()
243 SortArray[NewColorSubdiv[Index].NumEntries - 1]->Pnext = NULL; in SubdivColorMap()
244 NewColorSubdiv[Index].QuantizedColors = QuantizedColor = SortArray[0]; in SubdivColorMap()
248 Sum = NewColorSubdiv[Index].Count / 2 - QuantizedColor->Count; in SubdivColorMap()
270 NewColorSubdiv[*NewColorMapSize].QuantizedColors = in SubdivColorMap()
273 NewColorSubdiv[*NewColorMapSize].Count = Count; in SubdivColorMap()
274 NewColorSubdiv[Index].Count -= Count; in SubdivColorMap()
275 NewColorSubdiv[*NewColorMapSize].NumEntries = in SubdivColorMap()
276 NewColorSubdiv[Index].NumEntries - NumEntries; in SubdivColorMap()
277 NewColorSubdiv[Index].NumEntries = NumEntries; in SubdivColorMap()
279 NewColorSubdiv[*NewColorMapSize].RGBMin[j] = in SubdivColorMap()
280 NewColorSubdiv[Index].RGBMin[j]; in SubdivColorMap()
281 NewColorSubdiv[*NewColorMapSize].RGBWidth[j] = in SubdivColorMap()
282 NewColorSubdiv[Index].RGBWidth[j]; in SubdivColorMap()
284 NewColorSubdiv[*NewColorMapSize].RGBWidth[SortRGBAxis] = in SubdivColorMap()
285 NewColorSubdiv[*NewColorMapSize].RGBMin[SortRGBAxis] + in SubdivColorMap()
286 NewColorSubdiv[*NewColorMapSize].RGBWidth[SortRGBAxis] - MinColor; in SubdivColorMap()
287 NewColorSubdiv[*NewColorMapSize].RGBMin[SortRGBAxis] = MinColor; in SubdivColorMap()
289 NewColorSubdiv[Index].RGBWidth[SortRGBAxis] = in SubdivColorMap()
290 MaxColor - NewColorSubdiv[Index].RGBMin[SortRGBAxis]; in SubdivColorMap()