HomeSort by relevance Sort by last modified time
    Searched defs:palette (Results 1 - 25 of 174) sorted by null

1 2 3 4 5 6 7

  /development/samples/Support7Demos/src/com/example/android/supportv7/graphics/
PaletteDetailActivity.java 24 import android.support.v7.graphics.Palette;
38 * Activity which displays the more details about a generated {@link Palette} for a specific
41 * Displays the full generated palette of colors in a grid, which allows clicking on an palette item
44 * Also allows the customization of the number of colors used in the palette generation for
65 mGridView = (GridView) findViewById(R.id.palette);
69 // Set an OnItemClickListener to display a information Toast when a Palette item is clicked
78 final Palette.Swatch item = (Palette.Swatch) adapterView.getItemAtPosition(pos);
128 Palette.generateAsync(bitmap, numColors, new Palette.PaletteAsyncListener()
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/event/
EventColorCache.java 85 ArrayList<Integer> palette = mColorPaletteMap.get(key); local
86 Integer[] sortedColors = new Integer[palette.size()];
87 Arrays.sort(palette.toArray(sortedColors), comparator);
88 palette.clear();
90 palette.add(color);
92 mColorPaletteMap.put(key, palette);
  /hardware/ti/omap4-aah/kernel-headers-ti/linux/
bvsurfgeom.h 31 void *palette; member in struct:bvsurfgeom
  /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/aalib/
SDL_aavideo.h 42 aa_palette palette; member in struct:SDL_PrivateVideoData
54 #define AA_palette (this->hidden->palette)
  /external/qemu/distrib/sdl-1.2.15/test/
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);
threadwin.c 46 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, 0, 256)
    [all...]
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...]
  /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);
  /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:__anon17860
  /external/libpng/contrib/examples/
pngpixel.c 82 /* The palette case is slightly more difficult - the palette and, if
89 png_colorp palette = NULL; local
92 if ((png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette) &
93 PNG_INFO_PLTE) && num_palette > 0 && palette != NULL)
101 palette[index].red, palette[index].green,
102 palette[index].blue,
107 palette[index].red, palette[index].green
    [all...]
  /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:__anon31419
  /external/skia/src/utils/
SkTextureCompressor.cpp 37 // Generates an LATC palette. LATC constructs
38 // a palette of eight colors from LUM0 and LUM1 using the algorithm:
58 static void generate_palette(uint8_t palette[], uint8_t lum0, uint8_t lum1) {
59 palette[0] = lum0;
60 palette[1] = lum1;
63 palette[i+1] = ((7-i)*lum0 + i*lum1) / 7;
67 palette[i+1] = ((5-i)*lum0 + i*lum1) / 5;
69 palette[6] = 0;
70 palette[7] = 255;
92 uint8_t palette[kPaletteSize] local
138 uint8_t palette[kPaletteSize]; local
    [all...]
  /external/libpng/
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/opencv/
cvjni.h 184 PaletteEntry palette[256]; local
214 FillGrayPalette( palette, 8 );
215 m_strm->PutBytes( palette, sizeof(palette));
  /external/opencv/otherlibs/highgui/
grfmt_bmp.cpp 507 PaletteEntry palette[256]; local
532 FillGrayPalette( palette, 8 );
533 m_strm.PutBytes( palette, sizeof(palette));
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 );
  /external/qemu/distrib/sdl-1.2.15/src/video/
SDL_bmp.c 58 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->colors[i].b, 1, 1)
    [all...]
  /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/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/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/riscos/
SDL_riscosFullScreenVideo.c 215 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/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...]
  /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"

Completed in 3008 milliseconds

1 2 3 4 5 6 7