/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]);
|
/external/mesa3d/src/gallium/state_trackers/xvmc/ |
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);
|
/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/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/libpng/ |
pngwrite.c | 205 png_write_PLTE(png_ptr, info_ptr->palette, 209 png_error(png_ptr, "Valid palette required for paletted images"); 357 png_benign_error(png_ptr, "Wrote palette index exceeding num_palette"); 870 /* Check for out-of-range palette index */ 2004 png_color palette[256]; local [all...] |
/frameworks/support/v7/palette/ |
Android.mk | 19 LOCAL_MODULE := android-support-v7-palette
|
/packages/apps/Contacts/ |
Android.mk | 29 android-support-v7-palette \
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/ |
GraphicsUtilities.java | 35 image.palette); 80 image.palette);
|
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/va/ |
va_image.c | 124 vlVaSetImagePalette(VADriverContextP ctx, VAImageID image, unsigned char *palette)
|
/external/mesa3d/src/gallium/state_trackers/va/ |
va_image.c | 124 vlVaSetImagePalette(VADriverContextP ctx, VAImageID image, unsigned char *palette)
|
/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 );
|
/hardware/intel/img/psb_video/src/ |
psb_surface_ext.h | 112 PsbAYUVSample8 *palette_ptr; /* point to image palette */ 114 uint32_t palette[16]; /* used to pass palette to server */ member in union:_PsbVASurface::__anon20180 115 PsbAYUVSample8 constant[16]; /* server convert palette into SGX constants */
|
/ndk/tests/build/issue20862-libpng-O0/jni/ |
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"
|
/external/qemu/distrib/sdl-1.2.15/src/video/quartz/ |
SDL_QuartzVideo.h | 43 - SetColors sets palette correctly but clears framebuffer 95 CGDirectPaletteRef palette; /* palette of an 8-bit display */ member in struct:SDL_PrivateVideoData 136 #define palette (this->hidden->palette) macro
|
/external/qemu/distrib/sdl-1.2.15/src/video/wincommon/ |
SDL_syswm.c | 120 pal_256 = icon_256->format->palette; 121 if (icon->format->palette && 124 SDL_memcpy(pal_256->colors, icon->format->palette->colors,
|
/external/chromium_org/third_party/libwebp/enc/ |
vp8l.c | 33 // Palette 43 // creates a palette and returns true, else returns false. 45 uint32_t palette[MAX_PALETTE_SIZE], 91 palette[num_colors] = colors[i]; 96 qsort(palette, num_colors, sizeof(*palette), CompareColors); 175 // palette-friendly input typically uses less literals 878 const uint32_t* palette, int palette_size, 883 if ((palette[i] & 0xffff00ffu) != 0) { 892 const int color = (palette[i] >> 8) & 0xff 941 uint32_t* const palette = enc->palette_; local [all...] |
/external/webp/src/enc/ |
vp8l.c | 33 // Palette 43 // creates a palette and returns true, else returns false. 45 uint32_t palette[MAX_PALETTE_SIZE], 91 palette[num_colors] = colors[i]; 96 qsort(palette, num_colors, sizeof(*palette), CompareColors); 175 // palette-friendly input typically uses less literals 878 const uint32_t* palette, int palette_size, 883 if ((palette[i] & 0xffff00ffu) != 0) { 892 const int color = (palette[i] >> 8) & 0xff 941 uint32_t* const palette = enc->palette_; local [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/symbian/EKA2/ |
SDL_epocvideo.cpp | 294 TUint32 palette[256]; 298 // Set 12 bit palette 305 palette[i] = color4K; 318 palette[i] = color64K; 330 palette[i] = color16M; 337 if(EpocSdlEnv::SetPalette(firstcolor, ncolors, palette) == KErrNone)
|
/external/libpng/contrib/libtests/ |
makepng.c | 53 * The palette always has 2^bit-depth entries and the tRNS chunk one fewer. The 54 * image is the 1-channel diamond, but using palette index, not luminosity. 67 * will have exactly one palette entry and all image files with be 16x16 in 170 generate_palette(png_colorp palette, png_bytep trans, int bit_depth, 190 set_color(palette+0, trans+0, colors[1], colors[1], colors[1], 255, 195 set_color(palette+0, trans+0, colors[1], colors[1], colors[1], 200 set_color(palette+0, trans+0, colors[1], colors[2], colors[3], 255, 205 set_color(palette+0, trans+0, colors[1], colors[2], colors[3], 212 set_color(palette+0, trans+0, 255, 0, 0, 0, gamma_table); 213 set_color(palette+1, trans+1, 255, 255, 255, 255, gamma_table) 640 png_color palette[256]; local [all...] |
/external/chromium_org/native_client_sdk/src/gonacl_appengine/static/smoothlife/ |
example.js | 25 [], // Placeholder for the palette of the currently selected preset. 216 $('palette').addEventListener('change', loadSelectedPalette); 284 var selectedPalette = $('palette').value; 289 // Only change the palette if it is set to "Default", which means to use 290 // the preset default palette. 295 // Save the current palette in slot 0: "Default". 300 loadPalette($('palette').value);
|
/external/qemu/distrib/sdl-1.2.15/src/video/ |
SDL_video.c | 262 #if 0 /* Don't change the current palette - may be used by other programs. 266 /* If we have a palettized surface, create a default palette */ 267 if ( SDL_VideoSurface->format->palette ) { 269 SDL_DitherColors(vf->palette->colors, vf->BitsPerPixel); 271 0, vf->palette->ncolors, vf->palette->colors); 539 /* 8-bit shadow surfaces report that they have exclusive palette */ 540 if ( SDL_ShadowSurface->format->palette ) { 543 SDL_memcpy(SDL_ShadowSurface->format->palette->colors, 544 SDL_VideoSurface->format->palette->colors [all...] |
/external/pdfium/core/src/reflow/ |
reflowedpage.cpp | 554 FX_ARGB * palette = FX_Alloc(FX_ARGB, nPalette); 556 palette[0] = 0; 557 palette[nPalette] = 255; 560 palette[i] = (FX_ARGB)(Dither * i + 0.5); 563 m_pFXDevice->GetBitmap()->DitherFS(palette, nPalette + 1, &tmpRect); 564 FX_Free (palette);
|
/external/qemu/distrib/sdl-1.2.15/src/video/bwindow/ |
SDL_sysvideo.cc | 787 /* 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/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...] |