/external/quake/quake/src/WinQuake/ |
vid_null.cpp | 37 void VID_SetPalette (unsigned char *palette)
41 void VID_ShiftPalette (unsigned char *palette)
45 void VID_Init (unsigned char *palette)
|
/external/qemu/distrib/sdl-1.2.15/src/video/aalib/ |
SDL_aavideo.h | 42 aa_palette palette; member in struct:SDL_PrivateVideoData 54 #define AA_palette (this->hidden->palette)
|
/external/libpng/ |
pngrtran.c | 145 /* 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, 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[j] = palette[i] 938 png_colorp palette = png_ptr->palette; local 1107 png_colorp palette = png_ptr->palette; local 1134 png_colorp palette = png_ptr->palette; local [all...] |
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/qemu/distrib/libpng-1.2.19/ |
pngrtran.c | 122 /* 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, 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[j] = palette[i] 875 png_colorp palette = png_ptr->palette; local 1031 png_colorp palette = png_ptr->palette; local 1055 png_colorp palette = png_ptr->palette; local [all...] |
/external/qemu/distrib/sdl-1.2.15/test/ |
testwm.c | 28 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->colors[*pixels].b) [all...] |
graywin.c | 109 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);
|
testbitmap.c | 65 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);
|
/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/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...] |
/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...] |
/sdk/emulator/opengl/host/libs/Translator/GLcommon/ |
PaletteTexture.cpp | 119 const unsigned char* palette = static_cast<const unsigned char *>(data); local 122 // so we jump over it to get to the colos indices in the palette 126 const unsigned char* imageIndices = palette + paletteSizeBytes; 140 int leftBytes = ((palette + imageSize) /* the end of data pointer*/ 159 Color c = paletteColor(palette,paletteIndex,internalformat);
|
/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...] |
pnginfo.h | 36 * cleaned up before the structure is discarded: palette, trans, text, 63 png_colorp palette; /* array of color values (valid & PNG_INFO_PLTE) */ member in struct:png_info_def 64 png_uint_16 num_palette; /* number of color entries in "palette" (PLTE) */ 65 png_uint_16 num_trans; /* number of transparent palette color (tRNS) */ 135 * same order as the palette colors, starting from index 0. Values 142 png_color_16 trans_color; /* transparent color for non-palette image */ 178 * various palette entries, so that a viewer can intelligently select a 179 * reduced-color palette, if required. Data is an array of "num_palette"
|
pngstruct.h | 122 png_colorp palette; /* palette from the input file */ member in struct:png_struct_def 123 png_uint_16 num_palette; /* number of color entries in palette */ 127 int num_palette_max; /* maximum palette index found in IDAT */ 218 int cur_palette; /* current push library palette index */ 233 png_bytep quantize_index; /* index translation for palette files */ 312 in the palette */ 314 palette color */
|
/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...] |
/frameworks/base/docs/html/design/style/ |
color.jd | 114 <h2 id="palette">Palette</h2> 116 <p>Blue is the standard accent color in Android's color palette. Each color has a corresponding darker
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/ |
PaletteMetadataDescriptor.java | 30 * Special version of {@link ViewElementDescriptor} which is initialized by the palette 78 * Initializes a new {@link SimpleElement} with the palette initialization 88 * Initializes a new {@link Element} with the palette initialization configuration
|
/packages/wallpapers/Basic/res/values-hi/ |
strings.xml | 44 <string name="palette" msgid="1636154448241520718">"Color palette"</string>
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/ |
ProtoBufUtils.java | 47 PaletteData palette = new PaletteData(redMask, greenMask, blueMask); local 52 palette,
|
/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...] |
/external/qemu/distrib/sdl-1.2.15/src/video/windib/ |
SDL_dibvideo.c | 304 moved palette creation here from "DIB_VideoInit" */ 306 LOGPALETTE *palette; local 311 palette = (LOGPALETTE *)SDL_malloc(sizeof(*palette)+ 313 palette->palVersion = 0x300; 314 palette->palNumEntries = ncolors; 316 GetSystemPaletteEntries(hdc, 0, ncolors, palette->palPalEntry); 318 screen_pal = CreatePalette(palette); 319 screen_logpal = palette; 411 /* Grab an identity palette if we are in a palettized mode * [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
MatrixPaletteActivity.java | 24 * This sample shows how to implement a Matrix Palette
|
/external/qemu/distrib/sdl-1.2.15/docs/html/ |
sdlpalette.html | 83 >SDL_Palette -- Color palette for 8-bit pixel formats</DIV 129 >Number of colors used in this palette</TD 150 > structures that make up the palette.</TD 192 >s palette can be set with the <A
|
/external/qemu/distrib/sdl-1.2.15/src/video/gem/ |
SDL_gemvideo.h | 60 short old_numcolors; /* Number of colors in saved palette */ 68 Uint16 old_palette[256][3]; /* Saved current palette */ 69 Uint16 cur_palette[256][3]; /* SDL application palette */ 70 /* Function to set/restore palette */
|