/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...] |
testpalette.c | 4 * 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 to black, so the user won' [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);
|
/external/libpng/contrib/libtests/ |
gentests.sh | 86 for ct in gray palette
|
/external/qemu/distrib/sdl-1.2.15/src/video/caca/ |
SDL_cacavideo.h | 63 #define Caca_palette (this->hidden->palette)
|
/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);
|
/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/ipod/ |
SDL_ipodvideo.c | 366 current->format->palette->colors[i+j].r = 85 * j; 367 current->format->palette->colors[i+j].g = 85 * j; 368 current->format->palette->colors[i+j].b = 85 * j; 384 if (SDL_VideoSurface && SDL_VideoSurface->format && SDL_VideoSurface->format->palette) { 388 SDL_VideoSurface->format->palette->colors[i+j].r = 85 * j; 389 SDL_VideoSurface->format->palette->colors[i+j].g = 85 * j; 390 SDL_VideoSurface->format->palette->colors[i+j].b = 85 * j;
|
/external/zopfli/src/zopflipng/ |
zopflipng_lib.cc | 116 // If true, means palette is possible so avoid using different RGB values for 118 bool palette = count.size() <= 256; local 122 if (key || palette) { 126 // used as a valid color key, or in case of palette ensures a color 127 // existing in the input image palette is used. 142 if (!key && !palette) { 143 // Use the last encountered RGB value if no key or palette is used: that 152 // If there are now less colors, update palette of input image to match this. 153 if (palette && inputstate->info_png.color.palettesize > 0) { 157 unsigned char* palette_in = inputstate->info_png.color.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...] |
/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/chromium_org/third_party/skia/src/utils/ |
SkTextureCompressor_R11EAC.cpp | 25 // mod_val is chosen from a palette of values based on the index of the 26 // given pixel. The palette is chosen by the value stored in mod. 56 // Pack the base codeword, palette, and multiplier into the 64 bits necessary 58 static uint64_t pack_r11eac_block(uint16_t base_cw, uint16_t palette, uint16_t multiplier, 60 SkASSERT(palette < 16); 66 const uint64_t p = static_cast<uint64_t>(palette) << 48; 81 // 3. Iterate through each palette and choose the one with the most accurate 110 // Finally, choose the proper palette and indices 115 const int *palette = kR11EACModifierPalettes[paletteIdx]; 117 // Iterate through each pixel to find the best palette inde [all...] |
/external/libpng/ |
pngrtran.c | 393 /* Dither file to 8-bit. Supply a palette, the current number 394 * of elements in the palette, the maximum number of elements 396 * of colors is greater then the maximum number, the palette will be 412 png_set_quantize(png_structrp png_ptr, png_colorp palette, 451 /* Find the least used palette entries by starting a 482 /* Swap the palette around, and set up a table, if necessary */ 498 palette[i] = palette[j]; 520 tmp_color = palette[j]; 521 palette[j] = palette[i] 1593 png_colorp palette = png_ptr->palette; local 1810 png_colorp palette = png_ptr->palette; local 1841 png_colorp palette = png_ptr->palette; local [all...] |
example.c | 413 * for paletted images instead of supplying a palette index. Note that 469 /* Quantize RGB files down to 8 bit palette or reduce palettes 475 png_colorp palette; 477 /* This reduces the image to the application supplied palette */ 478 if (/* We have our own palette */) 486 /* This reduces the image to the palette supplied in the file */ 487 else if (png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette)) 493 png_set_quantize(png_ptr, palette, num_palette, 538 /* Optional call to gamma correct and add the background to the palette 540 * update the palette for you (ie you selected such a transform above) [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) */ 148 * same order as the palette colors, starting from index 0. Values 155 png_color_16 trans_color; /* transparent color for non-palette image */ 191 * various palette entries, so that a viewer can intelligently select a 192 * reduced-color palette, if required. Data is an array of "num_palette"
|
/external/chromium_org/third_party/skia/src/images/ |
SkImageDecoder_libpng.cpp | 199 // call only if color_type is PALETTE. Returns true if the ctable has alpha 367 /* Optional call to gamma correct and add the background to the palette 369 * update the palette for you (ie you selected such a transform above). 409 upscale png's palette to a direct model 656 png_colorp palette; local 660 png_get_PLTE(png_ptr, info_ptr, &palette, &numPalette); 697 *colorPtr++ = proc(*trans++, palette->red, palette->green, palette->blue); 698 palette++ [all...] |
/external/skia/src/images/ |
SkImageDecoder_libpng.cpp | 199 // call only if color_type is PALETTE. Returns true if the ctable has alpha 367 /* Optional call to gamma correct and add the background to the palette 369 * update the palette for you (ie you selected such a transform above). 409 upscale png's palette to a direct model 656 png_colorp palette; local 660 png_get_PLTE(png_ptr, info_ptr, &palette, &numPalette); 697 *colorPtr++ = proc(*trans++, palette->red, palette->green, palette->blue); 698 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/chromium_org/third_party/mesa/src/src/gallium/state_trackers/xvmc/ |
xvmc_private.h | 90 /* optional palette for this subpicture */ 91 struct pipe_sampler_view *palette; member in struct:__anon18865
|
subpicture.c | 283 subpicture_priv->palette = pipe->create_sampler_view(pipe, tex, &sampler_templ); 399 pipe_sampler_view_reference(&subpicture_priv->palette, NULL); 408 Status XvMCSetSubpicturePalette(Display *dpy, XvMCSubpicture *subpicture, unsigned char *palette) 416 assert(palette); 427 upload_sampler(pipe, subpicture_priv->palette, &dst_box, palette, 0, 0, 0); 429 XVMC_MSG(XVMC_TRACE, "[XvMC] Palette of Subpicture %p set.\n", subpicture);
|
/external/mesa3d/src/gallium/state_trackers/xvmc/ |
xvmc_private.h | 90 /* optional palette for this subpicture */ 91 struct pipe_sampler_view *palette; member in struct:__anon11349
|
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
d3dx9tex.h | 239 PALETTEENTRY *palette, struct IDirect3DTexture9 **texture); 243 PALETTEENTRY *palette, struct IDirect3DTexture9 **texture); 249 PALETTEENTRY *palette, struct IDirect3DCubeTexture9 **cube); 253 PALETTEENTRY *palette, struct IDirect3DCubeTexture9 **cube); 259 PALETTEENTRY *palette, struct IDirect3DVolumeTexture9 **volume); 263 PALETTEENTRY *palette, struct IDirect3DVolumeTexture9 **volume); 269 PALETTEENTRY *palette, struct IDirect3DTexture9 **texture); 273 PALETTEENTRY *palette, struct IDirect3DTexture9 **texture); 279 PALETTEENTRY *palette, struct IDirect3DCubeTexture9 **cube); 283 PALETTEENTRY *palette, struct IDirect3DCubeTexture9 **cube) [all...] |
/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)];
|