/hardware/ti/omap4-aah/kernel-headers-ti/linux/ |
bvsurfgeom.h | 31 void *palette; member in struct:bvsurfgeom
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
C_P_A_L_.py | 23 palette = [] 26 palette.append( Color(*struct.unpack(">BBBB", data[ppos:ppos+4])) ) 28 self.palettes.append(palette) 34 for palette in self.palettes: 35 assert(len(palette) == self.numPaletteEntries) 36 for color in palette: 46 for index, palette in enumerate(self.palettes): 47 writer.begintag("palette", index=index) 49 assert(len(palette) == self.numPaletteEntries) 50 for cindex, color in enumerate(palette) [all...] |
/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...] |
/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...] |
/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);
|
/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...] |
PaletteActivity.java | 34 import android.support.v7.graphics.Palette; 44 * {@link android.support.v7.graphics.Palette} results. 46 * Allows the customization of the number of colors used in the palette generation, to demonstrate 179 * Set the number of colors used for {@link Palette} generation. 189 // of the Palette UI 206 Palette.generateAsync(bitmap, mNumColors, 207 new Palette.PaletteAsyncListener() { 209 public void onGenerated(Palette palette) { 212 palette.getVibrantSwatch()) [all...] |
/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/chromium_org/third_party/skia/src/utils/ |
SkTextureCompressor_LATC.cpp | 21 // Generates an LATC palette. LATC constructs 22 // a palette of eight colors from LUM0 and LUM1 using the algorithm: 43 static void generate_latc_palette(uint8_t palette[], uint8_t lum0, uint8_t lum1) { 44 palette[0] = lum0; 45 palette[1] = lum1; 48 palette[i+1] = ((7-i)*lum0 + i*lum1) / 7; 52 palette[i+1] = ((5-i)*lum0 + i*lum1) / 5; 54 palette[6] = 0; 55 palette[7] = 255; 140 uint8_t palette[kLATCPaletteSize] local 186 uint8_t palette[kLATCPaletteSize]; local 410 uint8_t palette[kLATCPaletteSize]; local [all...] |
/packages/apps/InCallUI/src/com/android/incallui/ |
CircularRevealActivity.java | 63 final MaterialPalette palette = getIntent().getParcelableExtra(EXTRA_THEME_COLORS); local 64 setupDecorView(touchPoint, palette); 84 private void setupDecorView(final Point touchPoint, MaterialPalette palette) { 100 if (palette != null) { 102 palette.mPrimaryColor); 103 getWindow().setStatusBarColor(palette.mSecondaryColor);
|
/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/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);
|
/frameworks/support/v7/palette/src/android/support/v7/graphics/ |
Palette.java | 52 * Palette.generateAsync(bitmap, new Palette.PaletteAsyncListener() { 53 * public void onGenerated(Palette palette) { 59 public final class Palette { 68 * Called when the {@link Palette} has been generated. 70 void onGenerated(Palette palette); 112 * Generate a {@link Palette} from a {@link Bitmap} using the default number of colors. 114 public static Palette generate(Bitmap bitmap) [all...] |
/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/qemu/distrib/libpng-1.2.46/ |
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...] |