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

12

/haiku-fatelf/src/system/boot/platform/routerboard_mipsel/
H A Dvideo.cpp11 platform_set_palette(const uint8* palette) argument
/haiku-fatelf/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-fatelf/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(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-fatelf/src/add-ons/translators/gif/
H A DGIFSave.cpp50 palette = new SavePalette(bitmap, prefs->palette_size_in_bits);
52 palette = new SavePalette(prefs->palettemode);
53 if (!palette->IsValid()) {
91 syslog(LOG_ERR, "web safe palette\n");
94 syslog(LOG_ERR, "BeOS system palette\n");
97 syslog(LOG_ERR, "greyscale palette\n");
101 syslog(LOG_ERR, "optimal palette\n");
108 palette->PrepareForAutoTransparency();
111 palette->TransparentIndex());
113 palette
[all...]
H A DGIFSave.h52 SavePalette *palette; member in class:GIFSave
/haiku-fatelf/src/system/boot/platform/openfirmware/
H A Dvideo.cpp30 platform_set_palette(const uint8 *palette) argument
35 256, 0, palette) == OF_FAILED) {
38 palette[index * 3 + 2],
39 palette[index * 3 + 1],
40 palette[index * 3 + 0]);
/haiku-fatelf/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-fatelf/src/tools/
H A Dgenerate_boot_screen.cpp26 // TODO: Create 4 bit palette version of these
29 // palette 4 bit VGA mode.
274 nearest_color(unsigned char* color, RGBA palette[256]) argument
279 int dr = ((int)color[2]) - palette[i].r;
280 int dg = ((int)color[1]) - palette[i].g;
281 int db = ((int)color[0]) - palette[i].b;
297 // Generate 8-bit palette
302 RGBA palette[256]; local
303 quantizer.GetColorTable(palette);
311 palette);
[all...]
/haiku-fatelf/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-fatelf/src/libs/pdflib/libs/png/
H A Dpngrtran.c127 /* Dither file to 8 bit. Supply a palette, the current number
128 * of elements in the palette, the maximum number of elements
130 * of colors is greater then the maximum number, the palette will be
146 png_set_dither(png_structp png_ptr, png_colorp palette, argument
180 /* Find the least used palette entries by starting a
209 /* swap the palette around, and set up a table, if necessary */
223 palette[i] = palette[j];
244 tmp_color = palette[j];
245 palette[
790 png_colorp palette = png_ptr->palette; local
946 png_colorp palette = png_ptr->palette; local
970 png_colorp palette = png_ptr->palette; local
2358 png_build_grayscale_palette(int bit_depth, png_colorp palette) argument
2404 png_correct_palette(png_structp png_ptr, png_colorp palette, int num_palette) argument
3461 png_do_expand_palette(png_row_infop row_info, png_bytep row, png_colorp palette, png_bytep trans, int num_trans) argument
[all...]
/haiku-fatelf/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-fatelf/src/system/boot/platform/cfe/
H A Dvideo.cpp30 platform_set_palette(const uint8 *palette) argument
/haiku-fatelf/src/apps/mandelbrot/
H A Dtsb.cpp34 uchar palette[256]; variable
104 palette[i] = (i >> 1) & 0x1f;
111 palette[i] = screen.IndexForColor(c);
120 palette[i] = screen.IndexForColor(c);
129 palette[i] = screen.IndexForColor(c);
362 *b0++ = palette[v];
370 *b0++ = palette[v];
377 *b0++ = palette[v];
424 *b0++ = palette[v];
432 *b0++ = palette[
[all...]
H A Dtsb1.cpp31 uchar palette[256]; variable
77 palette[i] = (i >> 1) & 0x1f;
84 palette[i] = index_for_color(c);
93 palette[i] = index_for_color(c);
102 palette[i] = index_for_color(c);
258 *b0++ = palette[v];
296 *b0++ = palette[v];
/haiku-fatelf/headers/private/interface/
H A DColorConversion.h22 /*! \brief Helper class for conversion between RGB and palette colors.
27 PaletteConverter(const rgb_color *palette);
31 status_t SetTo(const rgb_color *palette);
/haiku-fatelf/src/add-ons/translators/hpgs/lib/
H A Dhpgsimage.c519 c->r = _this->palette[c->index].r;
520 c->g = _this->palette[c->index].g;
521 c->b = _this->palette[c->index].b;
760 if (pim->inherited.palette)
762 (png_colorp)pim->inherited.palette,
998 If \c palette is \c HPGS_TRUE the image uses and indexed palette
1001 If \c palette is \c HPGS_FALSE the folowing depth are supported:
1012 int depth, hpgs_bool palette,
1019 if (palette)
1011 hpgs_new_png_image(int width, int height, int depth, hpgs_bool palette, hpgs_bool do_rop3) argument
[all...]
/haiku-fatelf/src/system/boot/platform/raspberrypi_arm/
H A Dvideo.cpp30 platform_set_palette(const uint8* palette) argument
/haiku-fatelf/src/system/boot/platform/u-boot/
H A Dvideo.cpp65 platform_set_palette(const uint8 *palette) argument
/haiku-fatelf/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-fatelf/src/add-ons/kernel/drivers/graphics/vesa/
H A Dvesa.cpp578 uint8* palette = (uint8*)sBIOSModule->allocate_mem(state, 256 * 4);
579 if (palette == NULL) {
586 // convert colors to VESA palette
595 palette[i * 4 + 0] = color[2] >> shift;
596 palette[i * 4 + 1] = color[1] >> shift;
597 palette[i * 4 + 2] = color[0] >> shift;
598 palette[i * 4 + 3] = 0;
601 // set palette
602 physicalAddress = sBIOSModule->physical_address(state, palette);
/haiku-fatelf/src/system/boot/platform/bios_ia32/
H A Dvideo.cpp308 vga_set_palette(const uint8 *palette, int32 firstIndex, int32 numEntries) argument
311 // write VGA palette
314 out8(palette[i * 3 + 0] >> 2, VGA_COLOR_DATA);
315 out8(palette[i * 3 + 1] >> 2, VGA_COLOR_DATA);
316 out8(palette[i * 3 + 2] >> 2, VGA_COLOR_DATA);
582 vesa_set_palette(const uint8 *palette, int32 firstIndex, int32 numEntries) argument
594 regs.es = (addr_t)palette >> 4;
595 regs.edi = (addr_t)palette & 0xf;
601 vga_set_palette(palette, firstIndex, numEntries);
789 platform_set_palette(const uint8 *palette) argument
[all...]
/haiku-fatelf/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-fatelf/src/apps/serialconnect/libvterm/src/
H A Dpen.c43 static int lookup_colour(int palette, const long args[], int argcount, char is_bg, VTermColor *col) argument
47 switch(palette) {
62 // Normal 8 colours or high intensity - parse as palette 0
85 fprintf(stderr, "Unrecognised colour palette %d\n", palette);
271 case 34: case 35: case 36: case 37: // Foreground colour palette
279 case 38: // Foreground colour alternative palette
294 case 44: case 45: case 46: case 47: // Background colour palette
298 case 48: // Background colour alternative palette
311 case 94: case 95: case 96: case 97: // Foreground colour high-intensity palette
[all...]
/haiku-fatelf/src/add-ons/translators/hpgs/
H A DHPGSTranslator.cpp169 int palette = 0; local
208 image = (hpgs_image*)hpgs_new_png_image((int)bbox.urx, (int)bbox.ury, depth, palette, do_rop3);

Completed in 165 milliseconds

12