Lines Matching refs:numColors
188 find_rgba32_color(rgba32_color *palette, int32 numColors, rgba32_color &color)
191 for (int32 i = 0; i < numColors; i++) {
225 int32 numColors = 0;
231 int32 index = find_rgba32_color(palette, numColors, color);
234 if (numColors == 256)
239 palette[numColors++] = color;
244 return numColors;
403 int32 numColors = 1 << bitsPerPixel;
413 uint8 index = find_rgba32_color(palette, numColors, color);
620 int32 numColors = 0;
622 numColors = 1L << bitmapHeader.bits_per_pixel;
626 if (entry.size != 0 && 2 * entry.width == entry.height && numColors != 0
627 && sizeof(rgba32_color) * numColors + entry.width * entry.height > entry.size)
644 if (numColors > 0) {
645 if (source.Read(palette, numColors * 4) != numColors * 4)
649 for (int32 i = 0; i < numColors; i++)
657 return convert_data_to_bits(entry, bitmapHeader, numColors > 0 ? palette : NULL, source, target);
723 int32 numColors = 1 << bitsPerPixel;
741 entry.color_count = numColors;
752 entry.size += numColors * sizeof(rgba32_color);
765 bitmapHeader.colors_used = numColors;
783 bytesWritten = target.Write(palette, numColors * sizeof(rgba32_color));