Searched defs:palette (Results 1 - 25 of 78) sorted by relevance

1234

/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 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 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);
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 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...]
/external/quake/quake/src/QW/client/
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_vidandroid.c58 void VID_SetPalette (unsigned char *palette) argument
77 pal = palette;
216 void VID_Init(unsigned char *palette) argument
251 VID_SetPalette(palette);
H A Dgl_vidlinuxglx.c382 void VID_SetPalette (unsigned char *palette) argument
401 pal = palette;
586 void VID_Init(unsigned char *palette) argument
696 VID_SetPalette(palette);
/external/quake/quake/src/WinQuake/
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 Dscreen.cpp533 unsigned char palette[48]; member in struct:__anon12440
548 int rowbytes, byte *palette)
571 Q_memset (pcx->palette,0,sizeof(pcx->palette));
596 // write the palette
597 *pack++ = 0x0c; // palette ID byte
599 *pack++ = *palette++;
792 cl.cshifts[0].percent = 0; // no area contents palette on next frame
547 WritePCXfile(char *filename, byte *data, int width, int height, int rowbytes, byte *palette) argument
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 Dgrfmt_bmp.cpp507 PaletteEntry palette[256]; local
532 FillGrayPalette( palette, 8 );
533 m_strm.PutBytes( palette, sizeof(palette));
H A Dgrfmt_pxm.cpp201 PaletteEntry palette[256]; local
227 FillGrayPalette( palette, m_bpp==1 ? 1 : 8 , m_bpp == 1 );
246 FillColorRow8( data, src, m_width, palette );
258 FillColorRow1( data, src, m_width, palette );
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...]
/external/qemu/distrib/sdl-1.2.15/src/video/
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/qemu/distrib/sdl-1.2.15/src/video/photon/
H A DSDL_ph_image.c37 PgColor_t* palette=NULL; local
73 /* palette emulation code */
76 /* creating image palette */
77 palette=SDL_malloc(_Pg_MAX_PALETTE*sizeof(PgColor_t));
78 if (palette==NULL)
80 SDL_SetError("ph_SetupImage(): can't allocate memory for palette !\n");
83 PgGetPalette(palette);
86 if ((SDL_Image = PhCreateImage(NULL, screen->w, screen->h, type, palette, _Pg_MAX_PALETTE, 1)) == NULL)
89 SDL_free(palette);
193 /* store palette fo
[all...]
/external/qemu/distrib/sdl-1.2.15/src/video/quartz/
H A DSDL_QuartzVideo.h43 - SetColors sets palette correctly but clears framebuffer
94 CGDirectPaletteRef palette; /* palette of an 8-bit display */ member in struct:SDL_PrivateVideoData
134 #define palette (this->hidden->palette) macro
/external/webkit/Source/WebKit/qt/Api/
H A Dqwebpage_p.h202 QPalette palette; member in class:QWebPagePrivate
/external/webkit/Source/WebKit/qt/WebCoreSupport/
H A DPageClientQt.cpp221 QPalette PageClientQWidget::palette() const function in class:WebCore::PageClientQWidget
223 return view->palette();
405 QPalette PageClientQGraphicsWidget::palette() const function in class:WebCore::PageClientQGraphicsWidget
407 return view->palette();
/external/opencv/
H A Dcvjni.h184 PaletteEntry palette[256]; local
214 FillGrayPalette( palette, 8 );
215 m_strm->PutBytes( palette, sizeof(palette));
/external/qemu/distrib/sdl-1.2.15/src/video/bwindow/
H A DSDL_sysvideo.cc787 /* Is the system palette settable? */
791 SDL_Palette *palette; local
795 palette = _this->screen->format->palette;
797 palette->colors[i].r = cmap->color_list[i].red;
798 palette->colors[i].g = cmap->color_list[i].green;
799 palette->colors[i].b = cmap->color_list[i].blue;
/external/qemu/distrib/sdl-1.2.15/src/video/riscos/
H A DSDL_riscosFullScreenVideo.c215 if (bpp == 8) this->hidden->bank[0] += 2048; /* 8bpp sprite have palette first */
536 int palette[256]; local
540 regs.r[2] = (int)palette;
547 palette[firstcolor] = ((colors->b) << 24) | ((colors->g) << 16) | ((colors->r) << 8);
554 regs.r[2] = (int)palette;
683 /* Note: Need to set ModeFlags to 128 and NColour variables to 255 get full 8 bit palette */
763 if (bpp == 8) this->hidden->bank[0] += 2048; /* 8bpp sprite have palette first */
/external/libpng/
H A Dpngget.c730 png_get_PLTE(png_structp png_ptr, png_infop info_ptr, png_colorp *palette, argument
736 && palette != NULL)
738 *palette = info_ptr->palette;
/external/qemu/distrib/libpng-1.2.19/
H A Dpngget.c694 png_get_PLTE(png_structp png_ptr, png_infop info_ptr, png_colorp *palette, argument
698 && palette != NULL)
701 *palette = info_ptr->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 469 milliseconds

1234