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

123456

/external/quake/quake/src/QW/client/
H A Dvid.h62 void VID_SetPalette (unsigned char *palette);
65 void VID_ShiftPalette (unsigned char *palette);
68 void VID_Init (unsigned char *palette);
70 // the palette data will go away after the call, so it must be copied off if
79 int VID_SetMode (int modenum, unsigned char *palette);
H A Dvid_null.c18 void VID_SetPalette (unsigned char *palette) argument
22 void VID_ShiftPalette (unsigned char *palette) argument
26 void VID_Init (unsigned char *palette) argument
H A Dgl_vidlinux_svga.c143 unsigned char palette[768]; local
158 palette[i] = inf;
161 VID_SetPalette (palette);
242 void VID_SetPalette (unsigned char *palette) argument
259 pal = palette;
593 void VID_Init(unsigned char *palette) argument
675 VID_SetPalette(palette);
H A Dvid_svgalib.c240 unsigned char palette[768]; local
255 palette[i] = inf;
258 VID_SetPalette (palette);
448 void VID_SetPalette(byte *palette) argument
458 memcpy(vid_current_palette, palette, sizeof(vid_current_palette));
465 *(tp++) = *(palette++) >> 2;
473 int VID_SetMode (int modenum, unsigned char *palette) argument
539 VID_SetPalette(palette);
556 void VID_Init(unsigned char *palette) argument
606 VID_SetMode(current_mode, palette);
[all...]
/external/quake/quake/src/WinQuake/
H A Dvid.h62 void VID_SetPalette (unsigned char *palette);
65 void VID_ShiftPalette (unsigned char *palette);
68 void VID_Init (unsigned char *palette);
70 // the palette data will go away after the call, so it must be copied off if
79 int VID_SetMode (int modenum, unsigned char *palette);
H A Dvid_null.cpp37 void VID_SetPalette (unsigned char *palette) argument
41 void VID_ShiftPalette (unsigned char *palette) argument
45 void VID_Init (unsigned char *palette) argument
H A Dgl_vidandroid.cpp81 void VID_SetPalette (unsigned char *palette) argument
101 pal = palette;
130 PMPBEGIN(("Creating 15to8 palette"));
154 PMPEND(("Creating 15to8 palette"));
274 unsigned char palette[768]; local
292 palette[i] = (unsigned char) inf;
296 memcpy (pal, palette, sizeof(palette));
299 void VID_Init(unsigned char *palette) argument
334 Check_Gamma(palette);
[all...]
H A Dvid_dos.cpp90 void VID_Init (unsigned char *palette) argument
123 VID_SetMode (vid_modenum, palette);
198 int VID_SetMode (int modenum, unsigned char *palette) argument
243 if (!VID_SetMode (vid_modenum, palette)) // restore prior mode
265 (*pcurrentmode->setpalette) (&vid, pcurrentmode, palette);
285 void VID_SetPalette (unsigned char *palette) argument
287 if (palette != vid_current_palette)
288 Q_memcpy(vid_current_palette, palette, 768);
298 void VID_ShiftPalette (unsigned char *palette) argument
301 VID_SetPalette (palette);
[all...]
/external/opencv/otherlibs/highgui/
H A Dutils.cpp341 void CvtPaletteToGray( const PaletteEntry* palette, uchar* grayPalette, int entries ) argument
346 icvCvt_BGR2Gray_8u_C3C1R( (uchar*)(palette + i), 0, grayPalette + i, 0, cvSize(1,1) );
351 void FillGrayPalette( PaletteEntry* palette, int bpp, bool negative ) argument
359 palette[i].b = palette[i].g = palette[i].r = (uchar)val;
360 palette[i].a = 0;
365 bool IsColorPalette( PaletteEntry* palette, int bpp ) argument
371 if( palette[i].b != palette[
[all...]
H A Dutils.h96 void FillGrayPalette( PaletteEntry* palette, int bpp, bool negative = false );
97 bool IsColorPalette( PaletteEntry* palette, int bpp );
98 void CvtPaletteToGray( const PaletteEntry* palette, uchar* grayPalette, int entries );
104 uchar* FillColorRow8( uchar* data, uchar* indices, int len, PaletteEntry* palette );
105 uchar* FillGrayRow8( uchar* data, uchar* indices, int len, uchar* palette );
106 uchar* FillColorRow4( uchar* data, uchar* indices, int len, PaletteEntry* palette );
107 uchar* FillGrayRow4( uchar* data, uchar* indices, int len, uchar* palette );
108 uchar* FillColorRow1( uchar* data, uchar* indices, int len, PaletteEntry* palette );
109 uchar* FillGrayRow1( uchar* data, uchar* indices, int len, uchar* palette );
/external/qemu/distrib/sdl-1.2.15/src/video/
H A DSDL_pixels.c56 format->palette = NULL;
126 format->palette = (SDL_Palette *)SDL_malloc(sizeof(SDL_Palette));
127 if ( format->palette == NULL ) {
132 (format->palette)->ncolors = ncolors;
133 (format->palette)->colors = (SDL_Color *)SDL_malloc(
134 (format->palette)->ncolors*sizeof(SDL_Color));
135 if ( (format->palette)->colors == NULL ) {
141 /* create palette according to masks */
190 format->palette->colors[i].r=r;
194 format->palette
[all...]
H A DSDL_bmp.c58 SDL_Palette *palette; local
231 /* Load the palette, if any */
232 palette = (surface->format)->palette;
233 if ( palette ) {
239 SDL_RWread(src, &palette->colors[i].b, 1, 1);
240 SDL_RWread(src, &palette->colors[i].g, 1, 1);
241 SDL_RWread(src, &palette->colors[i].r, 1, 1);
242 palette->colors[i].unused = 0;
246 SDL_RWread(src, &palette
[all...]
/external/webkit/Source/WebKit/qt/WebCoreSupport/
H A DFullScreenVideoWidget.cpp44 QPalette palette(this->palette());
45 palette.setColor(QPalette::Base, Qt::black);
46 palette.setColor(QPalette::Background, Qt::black);
47 setPalette(palette);
H A DQtFallbackWebPopup.cpp130 QPalette palette = m_combo->palette();
132 palette.setColor(QPalette::Background, backgroundColor);
134 palette.setColor(QPalette::Foreground, foregroundColor);
135 m_combo->setPalette(palette);
/external/qemu/distrib/sdl-1.2.15/src/video/aalib/
H A DSDL_aavideo.h42 aa_palette palette; member in struct:SDL_PrivateVideoData
54 #define AA_palette (this->hidden->palette)
/external/qemu/distrib/sdl-1.2.15/test/
H A Dthreadwin.c46 if ( icon->format->palette == NULL ) {
47 fprintf(stderr, "Icon must have a palette!\n");
58 icon->format->palette->colors[*pixels].r,
59 icon->format->palette->colors[*pixels].g,
60 icon->format->palette->colors[*pixels].b);
230 SDL_Color palette[256]; local
304 palette[i].r = 255-i;
305 palette[i].g = 255-i;
306 palette[i].b = 255-i;
308 SDL_SetColors(screen, palette,
[all...]
H A Dtestbitmap.c65 SDL_Color palette[256]; local
108 palette[i].r = 255-i;
109 palette[i].g = 255-i;
110 palette[i].b = 255-i;
112 SDL_SetColors(screen, palette, 0, 256);
H A Dtestwm.c28 SDL_Color palette[256]; local
41 palette[i].r = 255-i;
42 palette[i].g = 255-i;
43 palette[i].b = 255-i;
45 SDL_SetColors(screen, palette, 0, 256);
88 if ( icon->format->palette == NULL ) {
89 fprintf(stderr, "Icon must have a palette!\n");
100 icon->format->palette->colors[*pixels].r,
101 icon->format->palette->colors[*pixels].g,
102 icon->format->palette
[all...]
H A Dtestpalette.c4 * A simple test of runtime palette modification for animation
79 /* set the palette to the logical screen palette so that blits
81 SDL_SetColors(bg, screen->format->palette->colors, 0, 256);
112 /* copy palette */
113 SDL_SetColors(z, s->format->palette->colors,
114 0, s->format->palette->ncolors);
169 /* Ask explicitly for 8bpp and a hardware palette */
183 boatcols = boat[0]->format->palette->ncolors;
189 * First set the physical screen palette t
[all...]
H A Dgraywin.c109 SDL_Color palette[NUM_COLORS]; local
124 palette[i].r = (NUM_COLORS-1)-i * (256 / NUM_COLORS);
125 palette[i].g = (NUM_COLORS-1)-i * (256 / NUM_COLORS);
126 palette[i].b = (NUM_COLORS-1)-i * (256 / NUM_COLORS);
128 SDL_SetColors(screen, palette, 0, NUM_COLORS);
/external/libpng/
H A Dpngrtran.c145 /* Dither file to 8 bit. Supply a palette, the current number
146 * of elements in the palette, the maximum number of elements
148 * of colors is greater then the maximum number, the palette will be
164 png_set_dither(png_structp png_ptr, png_colorp palette, argument
202 /* Find the least used palette entries by starting a
232 /* Swap the palette around, and set up a table, if necessary */
247 palette[i] = palette[j];
269 tmp_color = palette[j];
270 palette[
938 png_colorp palette = png_ptr->palette; local
1107 png_colorp palette = png_ptr->palette; local
1134 png_colorp palette = png_ptr->palette; local
2569 png_build_grayscale_palette(int bit_depth, png_colorp palette) argument
2621 png_correct_palette(png_structp png_ptr, png_colorp palette, int num_palette) argument
3694 png_do_expand_palette(png_row_infop row_info, png_bytep row, png_colorp palette, png_bytep trans, int num_trans) argument
[all...]
/external/qemu/distrib/libpng-1.2.19/
H A Dpngrtran.c122 /* Dither file to 8 bit. Supply a palette, the current number
123 * of elements in the palette, the maximum number of elements
125 * of colors is greater then the maximum number, the palette will be
141 png_set_dither(png_structp png_ptr, png_colorp palette, argument
176 /* Find the least used palette entries by starting a
205 /* swap the palette around, and set up a table, if necessary */
219 palette[i] = palette[j];
240 tmp_color = palette[j];
241 palette[
875 png_colorp palette = png_ptr->palette; local
1031 png_colorp palette = png_ptr->palette; local
1055 png_colorp palette = png_ptr->palette; local
2462 png_build_grayscale_palette(int bit_depth, png_colorp palette) argument
2508 png_correct_palette(png_structp png_ptr, png_colorp palette, int num_palette) argument
3564 png_do_expand_palette(png_row_infop row_info, png_bytep row, png_colorp palette, png_bytep trans, int num_trans) argument
[all...]
/external/qemu/distrib/sdl-1.2.15/src/video/caca/
H A DSDL_cacavideo.h63 #define Caca_palette (this->hidden->palette)
/external/webkit/Tools/QtTestBrowser/
H A Dlocationedit.cpp102 QColor backgroundColor = QApplication::palette().color(QPalette::Base);
104 QPalette p = palette();
/external/qemu/distrib/sdl-1.2.15/src/video/directfb/
H A DSDL_DirectFB_video.c215 IDirectFBPalette *palette; member in struct:private_hwdata
293 SDL_Palette *palette; local
296 palette = SDL_calloc (1, sizeof(SDL_Palette));
297 if (!palette)
310 palette->ncolors = size;
311 palette->colors = colors;
313 return palette;
354 if (!format->palette)
355 format->palette = AllocatePalette(256);
608 /* And its palette i
1056 IDirectFBPalette *palette = this->screen->hwdata->palette; local
1093 IDirectFBPalette *palette = this->screen->hwdata->palette; local
[all...]

Completed in 449 milliseconds

123456