/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/libvncserver/libvncserver/ |
zrlepalettehelper.h | 22 * The PaletteHelper class helps us build up the palette from pixel data by 34 zrle_U32 palette[ZRLE_PALETTE_MAX_SIZE]; member in struct:__anon16337
|
zrlepalettehelper.c | 29 memset(helper->palette, 0, sizeof(helper->palette)); 46 helper->palette[helper->size] = pix;
|
/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/opencv3/modules/imgcodecs/src/ |
utils.hpp | 108 void FillGrayPalette( PaletteEntry* palette, int bpp, bool negative = false ); 109 bool IsColorPalette( PaletteEntry* palette, int bpp ); 110 void CvtPaletteToGray( const PaletteEntry* palette, uchar* grayPalette, int entries ); 116 uchar* FillColorRow8( uchar* data, uchar* indices, int len, PaletteEntry* palette ); 117 uchar* FillGrayRow8( uchar* data, uchar* indices, int len, uchar* palette ); 118 uchar* FillColorRow4( uchar* data, uchar* indices, int len, PaletteEntry* palette ); 119 uchar* FillGrayRow4( uchar* data, uchar* indices, int len, uchar* palette ); 120 uchar* FillColorRow1( uchar* data, uchar* indices, int len, PaletteEntry* palette ); 121 uchar* FillGrayRow1( uchar* data, uchar* indices, int len, uchar* palette );
|
utils.cpp | 362 void CvtPaletteToGray( const PaletteEntry* palette, uchar* grayPalette, int entries ) 367 icvCvt_BGR2Gray_8u_C3C1R( (uchar*)(palette + i), 0, grayPalette + i, 0, cvSize(1,1) ); 372 void FillGrayPalette( PaletteEntry* palette, int bpp, bool negative ) 380 palette[i].b = palette[i].g = palette[i].r = (uchar)val; 381 palette[i].a = 0; 386 bool IsColorPalette( PaletteEntry* palette, int bpp ) 392 if( palette[i].b != palette[i].g | [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);
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/ |
PaletteDetailActivity.java | 25 import android.support.v7.graphics.Palette; 39 * Activity which displays the more details about a generated {@link Palette} for a specific 42 * Displays the full generated palette of colors in a grid, which allows clicking on an palette item 45 * Also allows the customization of the number of colors used in the palette generation for 66 mGridView = (GridView) findViewById(R.id.palette); 70 // Set an OnItemClickListener to display a information Toast when a Palette item is clicked 79 final Palette.Swatch item = (Palette.Swatch) adapterView.getItemAtPosition(pos); 129 new Palette.Builder(bitmap).maximumColorCount(numColors).generate [all...] |
PaletteActivity.java | 33 import android.support.v7.graphics.Palette; 45 * {@link android.support.v7.graphics.Palette} results. 47 * Allows the customization of the number of colors used in the palette generation, to demonstrate 180 * Set the number of colors used for {@link Palette} generation. 190 // of the Palette UI 207 new Palette.Builder(bitmap).maximumColorCount(mNumColors).generate( 208 new Palette.PaletteAsyncListener() { 210 public void onGenerated(Palette palette) { 213 palette.getVibrantSwatch()) [all...] |
/external/ImageMagick/coders/ |
cut.c | 296 Image *image,*palette; 333 palette=NULL; 380 /* ----- Do something with palette ----- */ 418 if( (palette=AcquireImage(clone_info,exception))==NULL ) goto NoPalette; 419 status=OpenBlob(clone_info,palette,ReadBinaryBlobMode,exception); 423 palette=DestroyImage(palette); 424 palette=NULL; 429 if(palette!=NULL) 431 (void) ReadBlob(palette,2,(unsigned char *) PalHeader.FileId) 292 Image *image,*palette; local [all...] |
/external/skia/src/utils/ |
SkTextureCompressor_LATC.cpp | 22 // Generates an LATC palette. LATC constructs 23 // a palette of eight colors from LUM0 and LUM1 using the algorithm: 44 static void generate_latc_palette(uint8_t palette[], uint8_t lum0, uint8_t lum1) { 45 palette[0] = lum0; 46 palette[1] = lum1; 49 palette[i+1] = ((7-i)*lum0 + i*lum1) / 7; 53 palette[i+1] = ((5-i)*lum0 + i*lum1) / 5; 55 palette[6] = 0; 56 palette[7] = 255; 141 uint8_t palette[kLATCPaletteSize] local 187 uint8_t palette[kLATCPaletteSize]; local 411 uint8_t palette[kLATCPaletteSize]; local [all...] |
/bootable/recovery/ |
interlace-frames.py | 72 palette = img2.getpalette() 78 # palette = img.getpalette() 79 print(palette) 90 out2 = out.convert(mode='P', palette=palette) 93 # out2.putpalette(palette)
|
/external/libpng/contrib/examples/ |
pngpixel.c | 84 /* The palette case is slightly more difficult - the palette and, if 91 png_colorp palette = NULL; local 94 if ((png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette) & 95 PNG_INFO_PLTE) && num_palette > 0 && palette != NULL) 103 palette[index].red, palette[index].green, 104 palette[index].blue, 109 palette[index].red, palette[index].green [all...] |
/frameworks/support/v7/palette/src/androidTest/java/android/support/v7/graphics/ |
BucketTests.java | 46 Palette.from(sample).generate(); 53 Palette p = Palette.from(loadSampleBitmap()).generate(); 60 ArrayList<Palette.Swatch> swatches = new ArrayList<>(); 61 swatches.add(new Palette.Swatch(Color.BLACK, 40)); 62 swatches.add(new Palette.Swatch(Color.GREEN, 60)); 63 swatches.add(new Palette.Swatch(Color.BLUE, 10)); 65 Palette p = Palette.from(swatches); 75 Palette.Builder b = new Palette.Builder(sample) 126 final Palette palette = Palette.from(bitmap).generate(); local 141 final Palette palette = Palette.from(bitmap) local 170 final Palette palette = Palette.from(bitmap).generate(); local [all...] |
TestUtils.java | 25 import android.support.v7.palette.test.R;
|
/external/libpng/contrib/libtests/ |
gentests.sh | 86 for ct in gray palette
|
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ |
CircularRevealFragment.java | 94 public void startOutgoingAnimation(MaterialPalette palette) { 117 if (palette != null) { 119 palette.mPrimaryColor); 120 activity.getWindow().setStatusBarColor(palette.mSecondaryColor);
|
/packages/apps/Launcher3/src/com/android/launcher3/dynamicui/ |
ColorExtractionService.java | 25 import android.support.v7.graphics.Palette; 55 Palette palette = Palette.from(wallpaper).generate(); local 56 extractedColors.updatePalette(palette); 59 Palette hotseatPalette = Palette.from(wallpaper) 69 Palette statusBarPalette = Palette.from(wallpaper)
|
/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,
|