/external/quake/quake/src/QW/client/ |
gl_vidlinux_svga.c | 143 unsigned char palette[768]; local 158 palette[i] = inf; 161 VID_SetPalette (palette); 242 void VID_SetPalette (unsigned char *palette) 259 pal = palette; 593 void VID_Init(unsigned char *palette) 675 VID_SetPalette(palette);
|
vid_svgalib.c | 240 unsigned char palette[768]; local 255 palette[i] = inf; 258 VID_SetPalette (palette); 448 void VID_SetPalette(byte *palette) 458 memcpy(vid_current_palette, palette, sizeof(vid_current_palette)); 465 *(tp++) = *(palette++) >> 2; 473 int VID_SetMode (int modenum, unsigned char *palette) 539 VID_SetPalette(palette); 556 void VID_Init(unsigned char *palette) 606 VID_SetMode(current_mode, palette); [all...] |
gl_vidandroid.c | 58 void VID_SetPalette (unsigned char *palette) 77 pal = palette; 216 void VID_Init(unsigned char *palette) 251 VID_SetPalette(palette);
|
gl_vidnt.c | 373 int VID_SetMode (int modenum, unsigned char *palette)
444 VID_SetPalette (palette);
468 VID_SetPalette (palette);
703 void VID_SetPalette (unsigned char *palette)
720 pal = palette;
765 void VID_ShiftPalette (unsigned char *palette)
769 // VID_SetPalette (palette);
1542 unsigned char palette[768]; local [all...] |
/external/webkit/Source/WebKit/qt/WebCoreSupport/ |
QtFallbackWebPopup.cpp | 130 QPalette palette = m_combo->palette(); 132 palette.setColor(QPalette::Background, backgroundColor); 134 palette.setColor(QPalette::Foreground, foregroundColor); 135 m_combo->setPalette(palette);
|
PageClientQt.h | 77 virtual QPalette palette() const; 184 virtual QPalette palette() const;
|
/external/qemu/distrib/sdl-1.2.15/src/video/directfb/ |
SDL_DirectFB_video.c | 215 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 if present * 1056 IDirectFBPalette *palette = this->screen->hwdata->palette; local 1093 IDirectFBPalette *palette = this->screen->hwdata->palette; local [all...] |
/ndk/tests/build/issue20862-libpng-O0/jni/ |
pngrtran.c | 362 /* Dither file to 8-bit. Supply a palette, the current number 363 * of elements in the palette, the maximum number of elements 365 * of colors is greater then the maximum number, the palette will be 381 png_set_quantize(png_structp png_ptr, png_colorp palette, 420 /* Find the least used palette entries by starting a 451 /* Swap the palette around, and set up a table, if necessary */ 467 palette[i] = palette[j]; 489 tmp_color = palette[j]; 490 palette[j] = palette[i] 1553 png_colorp palette = png_ptr->palette; local 1769 png_colorp palette = png_ptr->palette; local 1800 png_colorp palette = png_ptr->palette; local [all...] |
/external/quake/quake/src/WinQuake/ |
vid_svgalib.cpp | 239 unsigned char palette[768]; local 254 palette[i] = inf; 257 VID_SetPalette (palette); 447 void VID_SetPalette(byte *palette) 457 memcpy(vid_current_palette, palette, sizeof(vid_current_palette)); 464 *(tp++) = *(palette++) >> 2; 472 int VID_SetMode (int modenum, unsigned char *palette) 538 VID_SetPalette(palette); 555 void VID_Init(unsigned char *palette) 603 VID_SetMode(current_mode, palette); [all...] |
gl_vidnt.cpp | 373 int VID_SetMode (int modenum, unsigned char *palette)
444 VID_SetPalette (palette);
468 VID_SetPalette (palette);
703 void VID_SetPalette (unsigned char *palette)
720 pal = palette;
765 void VID_ShiftPalette (unsigned char *palette)
769 // VID_SetPalette (palette);
1542 unsigned char palette[768]; local [all...] |
vid_sunx.cpp | 509 // the palette data will go away after the call, so it must be copied off if 569 void VID_Init (unsigned char *palette) 729 // create and upload the palette 733 VID_SetPalette(palette); 813 void VID_SetPalette(unsigned char *palette) 820 st2d_8to16table[i]= xlib_rgb16(palette[i*3], palette[i*3+1],palette[i*3+2]); 821 st2d_8to24table[i]= xlib_rgb24(palette[i*3], palette[i*3+1],palette[i*3+2]) [all...] |
vid_x.cpp | 439 // the palette data will go away after the call, so it must be copied off if 442 void VID_Init (unsigned char *palette) 601 // create and upload the palette 605 VID_SetPalette(palette); 681 void VID_SetPalette(unsigned char *palette) 688 st2d_8to16table[i]= xlib_rgb16(palette[i*3], palette[i*3+1],palette[i*3+2]); 689 st2d_8to24table[i]= xlib_rgb24(palette[i*3], palette[i*3+1],palette[i*3+2]) [all...] |
/external/skia/src/images/ |
SkImageDecoder_libpng.cpp | 165 // call only if color_type is PALETTE. Returns true if the ctable has alpha 342 /* Optional call to gamma correct and add the background to the palette 344 * update the palette for you (ie you selected such a transform above). 370 upscale png's palette to a direct model 569 png_colorp palette; local 575 png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette); 605 *colorPtr++ = SkPreMultiplyARGB(*trans++, palette->red, palette->green, palette->blue); 606 palette++ [all...] |
/frameworks/native/opengl/libagl/ |
texture.cpp | 439 size_t size = (1 << indexBits) * entrySize; // palette size 496 uint8_t const* const palette = (uint8_t*)data; local 502 *p++ = palette[index + 0]; 503 *p++ = palette[index + 1]; 509 *p++ = palette[index + 0]; 510 *p++ = palette[index + 1]; 513 *p++ = palette[index + 0]; 514 *p++ = palette[index + 1]; 520 uint8_t const* const palette = (uint8_t*)data; local 526 *p++ = palette[index + 0] 547 uint8_t const* const palette = (uint8_t*)data; local [all...] |
/external/libpng/ |
example.c | 219 * for paletted images instead of supplying a palette index. Note that 274 /* Dither RGB files down to 8 bit palette or reduce palettes 280 png_colorp palette; 282 /* This reduces the image to the application supplied palette */ 283 if (/* We have our own palette */) 291 /* This reduces the image to the palette supplied in the file */ 292 else if (png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette)) 298 png_set_dither(png_ptr, palette, num_palette, 337 /* Optional call to gamma correct and add the background to the palette 339 * update the palette for you (ie you selected such a transform above) [all...] |
/external/webkit/Source/WebCore/platform/qt/ |
QWebPageClient.h | 83 virtual QPalette palette() const = 0;
|
/external/qemu/distrib/sdl-1.2.15/src/video/ |
SDL_surface.c | 605 if ( dst->format->palette || (color == 0) ) { 800 /* Check for empty destination palette! (results in empty image) */ 801 if ( format->palette != NULL ) { 803 for ( i=0; i<format->palette->ncolors; ++i ) { 804 if ( (format->palette->colors[i].r != 0) || 805 (format->palette->colors[i].g != 0) || 806 (format->palette->colors[i].b != 0) ) 809 if ( i == format->palette->ncolors ) { 810 SDL_SetError("Empty destination palette"); 831 /* Copy the palette if any * [all...] |
/development/ndk/platforms/android-8/samples/bitmap-plasma/jni/ |
plasma.c | 130 /* Color palette used for rendering the plasma */ 138 static uint16_t palette[PALETTE_SIZE]; variable 153 palette[nn] = make565(255, jj, 255-jj); 158 palette[nn] = make565(255-jj, 255, jj); 163 palette[nn] = make565(0, 255-jj, 255); 168 palette[nn] = make565(jj, 0, 255); 177 return palette[idx & (PALETTE_SIZE-1)];
|
/development/ndk/platforms/android-9/samples/native-plasma/jni/ |
plasma.c | 135 /* Color palette used for rendering the plasma */ 143 static uint16_t palette[PALETTE_SIZE]; variable 158 palette[nn] = make565(255, jj, 255-jj); 163 palette[nn] = make565(255-jj, 255, jj); 168 palette[nn] = make565(0, 255-jj, 255); 173 palette[nn] = make565(jj, 0, 255); 182 return palette[idx & (PALETTE_SIZE-1)];
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/ |
Utils.java | 177 if (!data.palette.isDirect && data.depth <= 8) 188 RGB rgb = data.palette.getRGB(pixels[x]); 204 // pick the most frequently used 256 (or fewer), and make a palette 214 rgbs[rgbs.length - 1] = data.transparentPixel != -1 ? data.palette.getRGB(data.transparentPixel) : new RGB(255, 255, 255); 216 PaletteData palette = new PaletteData(rgbs); local 218 // create a new image using the new palette: 220 // index in the new palette 221 ImageData newData = new ImageData(width, data.height, 8, palette); 232 RGB rgb = data.palette.getRGB(pixels[x]);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
SwtUtilsTest.java | 64 PaletteData outPalette = outData.palette; 120 PaletteData outPalette = outData.palette; 151 PaletteData outPalette = outData.palette; 188 PaletteData outPalette = outData.palette; 247 PaletteData outPalette = outData.palette; 286 PaletteData outPalette = outData.palette;
|
/external/skia/legacy/src/images/ |
SkImageDecoder_libpng.cpp | 164 // call only if color_type is PALETTE. Returns true if the ctable has alpha 341 /* Optional call to gamma correct and add the background to the palette 343 * update the palette for you (ie you selected such a transform above). 369 upscale png's palette to a direct model 563 png_colorp palette; local 569 png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette); 599 *colorPtr++ = SkPreMultiplyARGB(*trans++, palette->red, palette->green, palette->blue); 600 palette++ [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/photon/ |
SDL_ph_image.c | 37 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 for fullscreen * [all...] |
/external/opencv/ |
cvjni.h | 184 PaletteEntry palette[256];
local 214 FillGrayPalette( palette, 8 );
215 m_strm->PutBytes( palette, sizeof(palette));
|
/external/opencv/otherlibs/highgui/ |
grfmt_pxm.cpp | 201 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 );
|