Home
last modified time | relevance | path

Searched refs:palette (Results 1 – 25 of 101) sorted by relevance

12345

/haiku/src/add-ons/translators/pcx/
H A DPCX.cpp89 uint8 *palette = (uint8 *)paletteAllocator.Allocate(3 * 256); in convert_data_to_bits() local
134 TRACE("palette reading %p 8\n", palette); in convert_data_to_bits()
145 if (source.Read(palette, 256 * 3) != 256 * 3) in convert_data_to_bits()
148 TRACE("palette reading %p palette\n", palette); in convert_data_to_bits()
149 memcpy(palette, &header.paletteInfo, 48); in convert_data_to_bits()
155 palette[0] = palette[1] = palette[2] = 0; in convert_data_to_bits()
156 palette[3] = palette[4] = palette[5] = 0xff; in convert_data_to_bits()
164 target.Write(&palette[!isBit ? 2 : 5], 1); in convert_data_to_bits()
165 target.Write(&palette[!isBit ? 1 : 4], 1); in convert_data_to_bits()
166 target.Write(&palette[!isBit ? 0 : 3], 1); in convert_data_to_bits()
[all …]
/haiku/src/add-ons/translators/gif/
H A DGIFSave.cpp64 palette = new(std::nothrow) SavePalette(bitmap, in GIFSave()
67 palette = new(std::nothrow) SavePalette( in GIFSave()
71 if (palette == NULL) { in GIFSave()
76 if (!palette->IsValid()) { in GIFSave()
77 delete palette; in GIFSave()
95 delete palette; in GIFSave()
104 delete palette; in GIFSave()
114 delete palette; in GIFSave()
159 palette->PrepareForAutoTransparency(); in GIFSave()
163 palette->TransparentIndex()); in GIFSave()
[all …]
H A DGIFSave.h62 SavePalette* palette; variable
/haiku/src/build/libbe/interface/
H A DSystemPalette.cpp56 FindClosestColor(const rgb_color &color, const rgb_color *palette) in FindClosestColor() argument
61 const rgb_color &c = palette[i]; in FindClosestColor()
93 FillColorMap(const rgb_color *palette, color_map *map) in FillColorMap() argument
95 memcpy(map->color_list, palette, sizeof(map->color_list)); in FillColorMap()
105 map->index_map[color] = FindClosestColor(rgbColor, palette); in FillColorMap()
111 map->inversion_map[index] = FindClosestColor(inverted, palette); in FillColorMap()
/haiku/src/servers/app/
H A DSystemPalette.cpp58 FindClosestColor(const rgb_color &color, const rgb_color *palette) in FindClosestColor() argument
63 const rgb_color &c = palette[i]; in FindClosestColor()
95 FillColorMap(const rgb_color *palette, color_map *map) in FillColorMap() argument
97 memcpy((void*)map->color_list, palette, sizeof(map->color_list)); in FillColorMap()
107 map->index_map[color] = FindClosestColor(rgbColor, palette); in FillColorMap()
113 map->inversion_map[index] = FindClosestColor(inverted, palette); in FillColorMap()
H A DRGBColor.cpp80 FindClosestColor(const rgb_color *palette, rgb_color color) in FindClosestColor() argument
82 if (!palette) in FindClosestColor()
88 const rgb_color *c = &(palette[i]); in FindClosestColor()
/haiku/src/add-ons/translators/ico/
H A DICO.cpp188 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()
[all …]
/haiku/src/system/boot/platform/openfirmware/
H A Dvideo.cpp31 platform_set_palette(const uint8 *palette) in platform_set_palette() argument
36 256, 0, palette) == OF_FAILED) { in platform_set_palette()
39 palette[index * 3 + 2], in platform_set_palette()
40 palette[index * 3 + 1], in platform_set_palette()
41 palette[index * 3 + 0]); in platform_set_palette()
/haiku/src/tests/kits/game/page_flipper/
H A Dpage_flip.cpp159 rgb_color palette[256]; in ScreenConnected() local
163 palette[i] = c1; in ScreenConnected()
164 palette[i + 128] = c2; in ScreenConnected()
166 SetColorList(palette); in ScreenConnected()
188 rgb_color palette[256]; in ScreenConnected() local
190 palette[i] = c; in ScreenConnected()
191 SetColorList(palette); in ScreenConnected()
/haiku/docs/develop/servers/app_server/
H A DSystemPalette.rst5 palette management.
15 1. Allocate the rgb_color[256] palette on the heap and call _GenerateSystemPalette()
21 1) Free the palette array
31 Returns the color at said index in the palette.
47 protected: void \_GenerateSystemPalette(rgb_color \*palette)
50 Sets the passed palette to the BeOS R5 system colors, which follows.
H A DColorUtils.rst62 uint8 FindClosestColor(rgb_color \*palette,rgb_color col)
66 given palette.
69 2. Loop through all the colors in the palette. For each color,
75 d. if the new one is smaller, save it and also the palette index
/haiku/src/tools/
H A Dgenerate_boot_screen.cpp256 nearest_color(unsigned char* color, RGBA palette[256]) in nearest_color()
261 int dr = ((int)color[2]) - palette[i].r; in nearest_color()
262 int dg = ((int)color[1]) - palette[i].g; in nearest_color()
263 int db = ((int)color[0]) - palette[i].b; in nearest_color()
284 RGBA palette[256]; in create_8bit_images() local
285 quantizer.GetColorTable(palette); in create_8bit_images()
293 palette); in create_8bit_images()
303 palette); in create_8bit_images()
314 palette[c].r, palette[c].g, palette[c].b); in create_8bit_images()
/haiku/headers/private/interface/
H A DColorConversion.h30 PaletteConverter(const rgb_color *palette);
34 status_t SetTo(const rgb_color *palette);
/haiku/src/system/boot/platform/atari_m68k/
H A Dvideo.cpp65 const uint8 *palette) { return B_OK; }; in SetPalette() argument
222 const uint8 *palette);
364 STModeOps::SetPalette(const struct video_mode *mode, const uint8 *palette) in SetPalette() argument
418 const uint8 *palette);
569 FalconModeOps::SetPalette(const struct video_mode *mode, const uint8 *palette) in SetPalette() argument
573 VsetRGB(0, 16, palette); in SetPalette()
576 VsetRGB(0, 256, palette); in SetPalette()
628 const uint8 *palette);
783 MilanModeOps::SetPalette(const struct video_mode *mode, const uint8 *palette) in SetPalette() argument
1099 platform_set_palette(const uint8 *palette) in platform_set_palette() argument
[all …]
/haiku/src/add-ons/print/drivers/pcl5/
H A DPCL5_Protocol.txt50 -3 ... 3 planes, device CMY palette
52 1 ... single plane K (black) palette (default)
54 3 ... 3 planes, device RGB palette
/haiku/src/system/boot/platform/bios_ia32/
H A Dvideo.cpp337 vga_set_palette(const uint8 *palette, int32 firstIndex, int32 numEntries) in vga_set_palette() argument
343 out8(palette[i * 3 + 0] >> 2, VGA_COLOR_DATA); in vga_set_palette()
344 out8(palette[i * 3 + 1] >> 2, VGA_COLOR_DATA); in vga_set_palette()
345 out8(palette[i * 3 + 2] >> 2, VGA_COLOR_DATA); in vga_set_palette()
611 vesa_set_palette(const uint8 *palette, int32 firstIndex, int32 numEntries) in vesa_set_palette() argument
623 regs.es = (addr_t)palette >> 4; in vesa_set_palette()
624 regs.edi = (addr_t)palette & 0xf; in vesa_set_palette()
630 vga_set_palette(palette, firstIndex, numEntries); in vesa_set_palette()
819 platform_set_palette(const uint8 *palette) in platform_set_palette() argument
826 if (vesa_set_palette((const uint8 *)palette, 0, 256) != B_OK) in platform_set_palette()
/haiku/src/add-ons/kernel/drivers/graphics/vesa/
H A Dvesa.cpp611 uint8* palette = (uint8*)sBIOSModule->allocate_mem(state, 256 * 4); in vesa_set_indexed_colors() local
612 if (palette == NULL) { in vesa_set_indexed_colors()
628 palette[i * 4 + 0] = color[2] >> shift; in vesa_set_indexed_colors()
629 palette[i * 4 + 1] = color[1] >> shift; in vesa_set_indexed_colors()
630 palette[i * 4 + 2] = color[0] >> shift; in vesa_set_indexed_colors()
631 palette[i * 4 + 3] = 0; in vesa_set_indexed_colors()
635 physicalAddress = sBIOSModule->physical_address(state, palette); in vesa_set_indexed_colors()
/haiku/data/catalogs/add-ons/translators/ppm/
H A Did.catkeys4 System palette 8 bits PPMTranslator System palette 8 bita
/haiku/src/tests/kits/game/ParticlesII/
H A DparticlesII.cpp195 rgb_color palette[256]; in ScreenConnected() local
229 palette[i]=c1; in ScreenConnected()
231 SetColorList(palette); in ScreenConnected()
260 rgb_color palette[256]; in ScreenConnected() local
263 palette[i] = c; in ScreenConnected()
265 SetColorList(palette); in ScreenConnected()
/haiku/headers/private/kernel/boot/platform/generic/
H A Dvideo.h26 void platform_set_palette(const uint8 *palette);
/haiku/src/add-ons/accelerants/radeon/
H A DJamfile29 palette.c
/haiku/src/apps/stylededit/
H A DConstants.h61 const rgb_color palette[] = { variable
/haiku/src/system/boot/platform/riscv/
H A Dvideo.cpp80 platform_set_palette(const uint8* palette) in platform_set_palette() argument
/haiku/src/system/boot/platform/next_m68k/
H A Dvideo.cpp81 platform_set_palette(const uint8 *palette) in platform_set_palette() argument
/haiku/src/system/boot/platform/u-boot/
H A Dvideo.cpp64 platform_set_palette(const uint8 *palette) in platform_set_palette() argument

12345