Searched refs:palette (Results 1 - 25 of 28) sorted by relevance

12

/haiku/src/add-ons/translators/pcx/
H A DPCX.cpp89 uint8 *palette = (uint8 *)paletteAllocator.Allocate(3 * 256); local
134 TRACE("palette reading %p 8\n", palette);
145 if (source.Read(palette, 256 * 3) != 256 * 3)
148 TRACE("palette reading %p palette\n", palette);
149 memcpy(palette, &header.paletteInfo, 48);
155 palette[0] = palette[
[all...]
/haiku/src/build/libbe/interface/
H A DSystemPalette.cpp18 // TODO: BWindowScreen has a method to set the palette.
56 FindClosestColor(const rgb_color &color, const rgb_color *palette) argument
61 const rgb_color &c = palette[i];
93 FillColorMap(const rgb_color *palette, color_map *map) argument
95 memcpy(map->color_list, palette, sizeof(map->color_list));
105 map->index_map[color] = FindClosestColor(rgbColor, palette);
111 map->inversion_map[index] = FindClosestColor(inverted, palette);
H A DBitmap.cpp76 // TODO: system palette -- hard-coded for now, when the app server is ready
319 /*! \brief Helper class for conversion between RGB and palette colors.
324 PaletteConverter(const rgb_color *palette);
328 status_t SetTo(const rgb_color *palette);
371 palette.
372 \param palette The palette being a 256 entry rgb_color array.
374 PaletteConverter::PaletteConverter(const rgb_color *palette) argument
379 SetTo(palette);
404 /*! \brief Initializes the converter to the supplied palette
409 SetTo(const rgb_color *palette) argument
[all...]
/haiku/src/servers/app/
H A DSystemPalette.cpp20 // TODO: BWindowScreen has a method to set the palette.
58 FindClosestColor(const rgb_color &color, const rgb_color *palette) argument
63 const rgb_color &c = palette[i];
95 FillColorMap(const rgb_color *palette, color_map *map) argument
97 memcpy((void*)map->color_list, palette, sizeof(map->color_list));
107 map->index_map[color] = FindClosestColor(rgbColor, palette);
113 map->inversion_map[index] = FindClosestColor(inverted, palette);
127 /*! \brief Returns a pointer to the system palette.
128 \return A pointer to the system palette.
H A DRGBColor.cpp71 \brief Finds the index of the closest matching color in a rgb_color palette array
72 \param palette Array of 256 rgb_color objects
76 Note that passing a NULL palette will always return 0 and passing an array of less
80 FindClosestColor(const rgb_color *palette, rgb_color color) argument
82 if (!palette)
88 const rgb_color *c = &(palette[i]);
239 \brief Returns the color as the closest 8-bit color in the palette
240 \return The palette index for the current color
353 \brief Set the object to specified index in the palette
/haiku/src/add-ons/translators/gif/
H A DGIFSave.cpp64 palette = new(std::nothrow) SavePalette(bitmap,
67 palette = new(std::nothrow) SavePalette(
71 if (palette == NULL) {
76 if (!palette->IsValid()) {
77 delete palette;
95 delete palette;
104 delete palette;
114 delete palette;
140 syslog(LOG_INFO, "web safe palette\n");
144 syslog(LOG_INFO, "BeOS system palette\
[all...]
H A DGIFSave.h62 SavePalette* palette; member in class:GIFSave
/haiku/src/system/boot/platform/openfirmware/
H A Dvideo.cpp31 platform_set_palette(const uint8 *palette) argument
36 256, 0, palette) == OF_FAILED) {
39 palette[index * 3 + 2],
40 palette[index * 3 + 1],
41 palette[index * 3 + 0]);
/haiku/src/tools/
H A Dgenerate_boot_screen.cpp27 // TODO: Create 4 bit palette version of these
30 // palette 4 bit VGA mode.
256 nearest_color(unsigned char* color, RGBA palette[256]) argument
261 int dr = ((int)color[2]) - palette[i].r;
262 int dg = ((int)color[1]) - palette[i].g;
263 int db = ((int)color[0]) - palette[i].b;
279 // Generate 8-bit palette
284 RGBA palette[256]; local
285 quantizer.GetColorTable(palette);
293 palette);
[all...]
/haiku/src/add-ons/translators/ico/
H A DICO.cpp188 find_rgba32_color(rgba32_color *palette, int32 numColors, rgba32_color &color) argument
192 if (palette[i] == color)
223 fill_palette(TranslatorBitmap &bitsHeader, uint8 *data, rgba32_color *palette) argument
231 int32 index = find_rgba32_color(palette, numColors, color);
239 palette[numColors++] = color;
272 const rgba32_color *palette, BPositionIO &source,
321 if (palette != NULL) {
337 outRowData[x] = palette[index];
385 ico_bitmap_header &header, rgba32_color *palette, BPositionIO &target)
412 if (palette !
271 convert_data_to_bits(ico_dir_entry &entry, ico_bitmap_header &header, const rgba32_color *palette, BPositionIO &source, BPositionIO &target) argument
384 convert_bits_to_data(TranslatorBitmap &bitsHeader, uint8 *bitsData, ico_dir_entry &entry, ico_bitmap_header &header, rgba32_color *palette, BPositionIO &target) argument
643 rgba32_color palette[256]; local
[all...]
/haiku/src/tests/kits/game/page_flipper/
H A Dpage_flip.cpp159 rgb_color palette[256]; local
163 palette[i] = c1;
164 palette[i + 128] = c2;
166 SetColorList(palette);
188 rgb_color palette[256]; local
190 palette[i] = c;
191 SetColorList(palette);
/haiku/headers/private/kernel/boot/platform/generic/
H A Dvideo.h17 /* platform code is responsible for setting the palette correctly */
26 void platform_set_palette(const uint8 *palette);
/haiku/headers/private/interface/
H A DColorConversion.h25 /*! \brief Helper class for conversion between RGB and palette colors.
30 PaletteConverter(const rgb_color *palette);
34 status_t SetTo(const rgb_color *palette);
/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) argument
/haiku/src/system/boot/platform/atari_m68k/
H A Dvideo.cpp65 const uint8 *palette) { return B_OK; };
222 const uint8 *palette);
364 STModeOps::SetPalette(const struct video_mode *mode, const uint8 *palette) argument
368 //VsetRGB(0, 16, palette);
372 //VsetRGB(0, 256, palette);
418 const uint8 *palette);
569 FalconModeOps::SetPalette(const struct video_mode *mode, const uint8 *palette) argument
573 VsetRGB(0, 16, palette);
576 VsetRGB(0, 256, palette);
628 const uint8 *palette);
64 SetPalette(const struct video_mode *mode, const uint8 *palette) argument
783 SetPalette(const struct video_mode *mode, const uint8 *palette) argument
1099 platform_set_palette(const uint8 *palette) argument
[all...]
/haiku/src/add-ons/kernel/drivers/graphics/vesa/
H A Dvesa.cpp611 uint8* palette = (uint8*)sBIOSModule->allocate_mem(state, 256 * 4);
612 if (palette == NULL) {
619 // convert colors to VESA palette
628 palette[i * 4 + 0] = color[2] >> shift;
629 palette[i * 4 + 1] = color[1] >> shift;
630 palette[i * 4 + 2] = color[0] >> shift;
631 palette[i * 4 + 3] = 0;
634 // set palette
635 physicalAddress = sBIOSModule->physical_address(state, palette);
/haiku/src/system/boot/platform/bios_ia32/
H A Dvideo.cpp337 vga_set_palette(const uint8 *palette, int32 firstIndex, int32 numEntries) argument
340 // write VGA palette
343 out8(palette[i * 3 + 0] >> 2, VGA_COLOR_DATA);
344 out8(palette[i * 3 + 1] >> 2, VGA_COLOR_DATA);
345 out8(palette[i * 3 + 2] >> 2, VGA_COLOR_DATA);
611 vesa_set_palette(const uint8 *palette, int32 firstIndex, int32 numEntries) argument
623 regs.es = (addr_t)palette >> 4;
624 regs.edi = (addr_t)palette & 0xf;
630 vga_set_palette(palette, firstIndex, numEntries);
818 platform_set_palette(const uint8 *palette) argument
[all...]
/haiku/src/tests/kits/game/ParticlesII/
H A DparticlesII.cpp195 rgb_color palette[256]; local
229 palette[i]=c1;
231 SetColorList(palette);
260 rgb_color palette[256]; local
261 // build the palette
263 palette[i] = c;
264 // set the palette
265 SetColorList(palette);
332 // palette test
/haiku/src/system/boot/platform/u-boot/
H A Dvideo.cpp64 platform_set_palette(const uint8 *palette) argument
/haiku/src/system/boot/platform/next_m68k/
H A Dvideo.cpp81 platform_set_palette(const uint8 *palette) argument
/haiku/src/apps/serialconnect/libvterm/src/
H A Dpen.c46 // Normal 8 colours or high intensity - parse as palette 0
67 static int lookup_colour(const VTermState *state, int palette, const long args[], int argcount, VTermColor *col, int *index) argument
69 switch(palette) {
89 fprintf(stderr, "Unrecognised colour palette %d\n", palette);
304 case 34: case 35: case 36: case 37: // Foreground colour palette
312 case 38: // Foreground colour alternative palette
327 case 44: case 45: case 46: case 47: // Background colour palette
333 case 48: // Background colour alternative palette
348 case 94: case 95: case 96: case 97: // Foreground colour high-intensity palette
[all...]
/haiku/src/system/boot/platform/amiga_m68k/
H A Dvideo.cpp197 platform_set_palette(const uint8 *palette) argument
204 //if (vesa_set_palette((const uint8 *)palette, 0, 256) != B_OK)
205 // dprintf("set palette failed!\n");
/haiku/src/kits/interface/
H A DColorConversion.cpp11 * and a palette <-> true color conversion class.
93 palette.
94 \param palette The palette being a 256 entry rgb_color array.
96 PaletteConverter::PaletteConverter(const rgb_color *palette) argument
101 SetTo(palette);
126 /*! \brief Initializes the converter to the supplied palette.
127 \param palette The palette being a 256 entry rgb_color array.
131 PaletteConverter::SetTo(const rgb_color *palette) argument
[all...]
/haiku/src/add-ons/translators/bmp/
H A DBMPTranslator.cpp900 // for each bit in the current byte, convert to a BMP palette
1132 // write palette to BMP file
1136 // write system palette
1149 // write gray palette
1170 // write monochrome palette to the BMP file
1192 // Translates a non-palette BMP from inSource to the B_RGB32
1301 // Translates an uncompressed, palette BMP from inSource to
1312 // palette, BMP palette for the BMP image
1326 const uint8 *palette, boo
1324 translate_from_bmppal_to_bits(BPositionIO *inSource, BPositionIO *outDestination, MSInfoHeader &msheader, const uint8 *palette, bool frommsformat) argument
1453 translate_from_bmppalr_to_bits(BPositionIO *inSource, BPositionIO *outDestination, int32 datasize, MSInfoHeader &msheader, const uint8 *palette) argument
[all...]

Completed in 378 milliseconds

12