Lines Matching refs:palette
188 find_rgba32_color(rgba32_color *palette, int32 numColors, rgba32_color &color) in find_rgba32_color() argument
192 if (palette[i] == color) in find_rgba32_color()
223 fill_palette(TranslatorBitmap &bitsHeader, uint8 *data, rgba32_color *palette) in fill_palette() argument
231 int32 index = find_rgba32_color(palette, numColors, color); in fill_palette()
239 palette[numColors++] = color; in fill_palette()
272 const rgba32_color *palette, BPositionIO &source, in convert_data_to_bits() argument
321 if (palette != NULL) { in convert_data_to_bits()
337 outRowData[x] = palette[index]; in convert_data_to_bits()
385 ico_bitmap_header &header, rgba32_color *palette, BPositionIO &target) in convert_bits_to_data() argument
412 if (palette != NULL) { in convert_bits_to_data()
413 uint8 index = find_rgba32_color(palette, numColors, color); in convert_bits_to_data()
643 rgba32_color palette[256]; in convert_ico_to_bits() local
645 if (source.Read(palette, numColors * 4) != numColors * 4) in convert_ico_to_bits()
650 palette[i].alpha = 0; in convert_ico_to_bits()
657 return convert_data_to_bits(entry, bitmapHeader, numColors > 0 ? palette : NULL, source, target); in convert_ico_to_bits()
702 rgba32_color palette[256]; in convert_bits_to_ico() local
708 memset(palette, 0, sizeof(palette)); in convert_bits_to_ico()
711 int32 colors = fill_palette(bitsHeader, bitsData, palette); in convert_bits_to_ico()
783 bytesWritten = target.Write(palette, numColors * sizeof(rgba32_color)); in convert_bits_to_ico()
789 bitsPerPixel <= 8 ? palette : NULL, target); in convert_bits_to_ico()