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

1 2 3 4 5 6 7 8 9

  /external/opencv/otherlibs/highgui/
utils.cpp 341 void CvtPaletteToGray( const PaletteEntry* palette, uchar* grayPalette, int entries )
346 icvCvt_BGR2Gray_8u_C3C1R( (uchar*)(palette + i), 0, grayPalette + i, 0, cvSize(1,1) );
351 void FillGrayPalette( PaletteEntry* palette, int bpp, bool negative )
359 palette[i].b = palette[i].g = palette[i].r = (uchar)val;
360 palette[i].a = 0;
365 bool IsColorPalette( PaletteEntry* palette, int bpp )
371 if( palette[i].b != palette[i].g |
    [all...]
utils.h 96 void FillGrayPalette( PaletteEntry* palette, int bpp, bool negative = false );
97 bool IsColorPalette( PaletteEntry* palette, int bpp );
98 void CvtPaletteToGray( const PaletteEntry* palette, uchar* grayPalette, int entries );
104 uchar* FillColorRow8( uchar* data, uchar* indices, int len, PaletteEntry* palette );
105 uchar* FillGrayRow8( uchar* data, uchar* indices, int len, uchar* palette );
106 uchar* FillColorRow4( uchar* data, uchar* indices, int len, PaletteEntry* palette );
107 uchar* FillGrayRow4( uchar* data, uchar* indices, int len, uchar* palette );
108 uchar* FillColorRow1( uchar* data, uchar* indices, int len, PaletteEntry* palette );
109 uchar* FillGrayRow1( uchar* data, uchar* indices, int len, uchar* palette );
  /external/chromium_org/third_party/mesa/src/src/mesa/main/
texcompress_cpal.h 35 GLsizei imageSize, const void *palette);
texcompress_cpal.c 67 * Get a color/entry from the palette.
70 get_palette_entry(const struct cpal_format_info *info, const GLubyte *palette,
73 memcpy(pixel, palette + info->size * index, info->size);
82 paletted_to_color(const struct cpal_format_info *info, const GLubyte *palette,
95 pix += get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix);
96 pix += get_palette_entry(info, palette, ind[i] & 0xf, pix);
99 get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix);
106 pix += get_palette_entry(info, palette, ind[i], pix);
163 * compressed palette format into a regular GLubyte/RGBA glTexImage2D() call.
169 GLsizei imageSize, const void *palette)
    [all...]
  /external/mesa3d/src/mesa/main/
texcompress_cpal.h 35 GLsizei imageSize, const void *palette);
texcompress_cpal.c 67 * Get a color/entry from the palette.
70 get_palette_entry(const struct cpal_format_info *info, const GLubyte *palette,
73 memcpy(pixel, palette + info->size * index, info->size);
82 paletted_to_color(const struct cpal_format_info *info, const GLubyte *palette,
95 pix += get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix);
96 pix += get_palette_entry(info, palette, ind[i] & 0xf, pix);
99 get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix);
106 pix += get_palette_entry(info, palette, ind[i], pix);
163 * compressed palette format into a regular GLubyte/RGBA glTexImage2D() call.
169 GLsizei imageSize, const void *palette)
    [all...]
  /external/qemu/distrib/sdl-1.2.15/src/video/
SDL_pixels.c 56 format->palette = NULL;
126 format->palette = (SDL_Palette *)SDL_malloc(sizeof(SDL_Palette));
127 if ( format->palette == NULL ) {
132 (format->palette)->ncolors = ncolors;
133 (format->palette)->colors = (SDL_Color *)SDL_malloc(
134 (format->palette)->ncolors*sizeof(SDL_Color));
135 if ( (format->palette)->colors == NULL ) {
141 /* create palette according to masks */
190 format->palette->colors[i].r=r;
194 format->palette->colors[i].g=g
    [all...]
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...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/controller/
ColorChooser.java 63 int [] palette = mParameter.getColorPalette(); local
68 Color.colorToHSV(palette[i], hsvo);
69 hsvo[OPACITY_OFFSET] = (0xFF & (palette[i] >> 24)) / (float) 255;
72 sd.setColor(palette[i]);
95 int []palette = mParameter.getColorPalette(); local
96 for (int i = 0; i < palette.length; i++) {
97 palette[i] = basColors[i];
99 Color.colorToHSV(palette[i], hsvo);
100 hsvo[OPACITY_OFFSET] = (0xFF & (palette[i] >> 24)) / (float) 255;
103 sd.setColor(palette[i])
113 int []palette = mParameter.getColorPalette(); local
149 int []palette = mParameter.getColorPalette(); local
    [all...]
ParameterColor.java 108 public void setColorpalette(int[] palette) {
109 mBasColors = Arrays.copyOf(palette, palette.length);
  /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);
  /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/
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...]
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);
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/chromium_org/third_party/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...]
  /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...]
  /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/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/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...]

Completed in 488 milliseconds

1 2 3 4 5 6 7 8 9