HomeSort by relevance Sort by last modified time
    Searched refs:palette (Results 101 - 125 of 286) sorted by null

1 2 3 45 6 7 8 91011>>

  /prebuilts/go/linux-x86/src/image/png/
reader.go 110 palette color.Palette
118 // transparency, as opposed to palette transparency.
232 np := int(length / 3) // The number of palette entries.
243 d.palette = make(color.Palette, 256)
245 d.palette[i] = color.RGBA{d.tmp[3*i+0], d.tmp[3*i+1], d.tmp[3*i+2], 0xff}
248 // Initialize the rest of the palette to opaque black. The spec (section
253 d.palette[i] = color.RGBA{0x00, 0x00, 0x00, 0xff}
255 d.palette = d.palette[:np
    [all...]
  /development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
ComplicationSimpleWatchFaceService.java 37 import android.support.v7.graphics.Palette;
249 Palette.from(mBackgroundBitmap).generate(
250 new Palette.PaletteAsyncListener() {
251 public void onGenerated(Palette palette) {
253 * Sometimes, palette is unable to generate a color palette
256 if (palette != null) {
257 Log.d("onGenerated", palette.toString());
258 mWatchHandColor = palette.getVibrantColor(Color.WHITE)
    [all...]
  /prebuilts/go/darwin-x86/src/image/draw/
draw.go 26 // Quantizer produces a palette for an image.
29 // updated palette suitable for converting m to a paletted image.
30 Quantize(p color.Palette, m image.Image) color.Palette
581 // used by color.Palette's Index method in image/color/color.go, plus
583 palette, pix, stride := [][4]int32(nil), []byte(nil), 0
585 palette = make([][4]int32, len(p.Palette))
586 for i, col := range p.Palette {
588 palette[i][0] = int32(r
    [all...]
  /prebuilts/go/linux-x86/src/image/draw/
draw.go 26 // Quantizer produces a palette for an image.
29 // updated palette suitable for converting m to a paletted image.
30 Quantize(p color.Palette, m image.Image) color.Palette
581 // used by color.Palette's Index method in image/color/color.go, plus
583 palette, pix, stride := [][4]int32(nil), []byte(nil), 0
585 palette = make([][4]int32, len(p.Palette))
586 for i, col := range p.Palette {
588 palette[i][0] = int32(r
    [all...]
  /external/libpng/contrib/libtests/
pngvalid.c 361 * was done by libpng. Width and height must be less than 256. 'palette' is an
362 * index of the palette to use for formats with a palette otherwise a boolean
365 #define FILEID(col, depth, palette, interlace, width, height, do_interlace) \
366 ((png_uint_32)((col) + ((depth)<<3) + ((palette)<<8) + ((interlace)<<13) + \
384 if (colour_type == 3) /* must have a palette */
472 (ct == 3/*PALETTE*/ && pn < PALETTE_COUNT(*bit_depth)))
481 /* Palette images are restricted to 8 bit depth */
528 if ((colour_type & 1) == 0) /* !palette */
699 typedef struct store_palette_entry /* record of a single palette entry *
717 store_palette_entry* palette; \/* May be NULL *\/ member in struct:png_store_file
798 store_palette_entry* palette; member in struct:png_store
3603 store_palette_entry *palette; local
3651 png_color palette[256]; local
4967 palette; member in struct:standard_display
5014 store_palette_entry *palette = store_current_palette(dp->ps, &dp->npalette); local
5140 store_palette palette; local
    [all...]
  /external/webp/src/enc/
delta_palettization_enc.c 21 // Format allows palette up to 256 entries, but more palette entries produce
23 // that are far from the origin of the palette or choose remaining entries
27 // Palette used for delta_palettization. Entries are roughly sorted by distance
347 // Find palette entry with minimum error from difference of actual pixel value
350 // index of best palette entry.
352 const uint32_t palette[], int palette_size) {
355 uint32_t best_distance = CalcDist(predicted_value, src, palette[0]);
357 const uint32_t distance = CalcDist(predicted_value, src, palette[i]);
389 const uint32_t* palette,
    [all...]
  /external/libvncserver/webclients/novnc/include/
rfb.js     [all...]
  /external/libvterm/src/
pen.c 46 // Normal 8 colours or high intensity - parse as palette 0
67 static int lookup_colour(const VTermState *state, int palette, const long args[], int argcount, VTermColor *col, int *index)
69 switch(palette) {
89 fprintf(stderr, "Unrecognised colour palette %d\n", palette);
303 case 34: case 35: case 36: case 37: // Foreground colour palette
311 case 38: // Foreground colour alternative palette
326 case 44: case 45: case 46: case 47: // Background colour palette
332 case 48: // Background colour alternative palette
347 case 94: case 95: case 96: case 97: // Foreground colour high-intensity palette
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/preferences/
AdtPrefs.java 62 public final static String PREFS_PALETTE_MODE = AdtPlugin.PLUGIN_ID + ".palette"; //$NON-NLS-1$
453 public void setPaletteModes(String palette) {
454 mPalette = palette;
458 store.setValue(PREFS_PALETTE_MODE, palette);
  /external/freetype/include/freetype/
ftimage.h 254 /* it indicates how the palette is stored. Not */
257 /* palette :: A typeless pointer to the bitmap palette; this */
270 void* palette; member in struct:FT_Bitmap_
    [all...]
  /external/pdfium/core/fxcodec/lbmp/
fx_bmp.h 83 std::vector<uint32_t> palette; member in class:BMPDecompressor
  /frameworks/base/core/java/com/android/internal/graphics/palette/
VariationalKMeansQuantizer.java 17 package com.android.internal.graphics.palette;
53 private List<Palette.Swatch> mQuantizedColors;
76 public void quantize(int[] pixels, int maxColors, Palette.Filter[] filters) {
119 mQuantizedColors.add(new Palette.Swatch(new float[]{
151 public List<Palette.Swatch> getQuantizedColors() {
ColorCutQuantizer.java 17 package com.android.internal.graphics.palette;
46 import com.android.internal.graphics.palette.Palette.Swatch;
49 * Copied from: frameworks/support/v7/palette/src/main/java/android/support/v7/
80 Palette.Filter[] mFilters;
88 * @param maxColors The maximum number of colors that should be in the result palette.
91 public void quantize(final int[] pixels, final int maxColors, final Palette.Filter[] filters) {
  /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/gdiplus/
gdiplusheaders.h 104 Status GetPalette(ColorPalette *palette, INT size);
130 Status SetPalette(const ColorPalette *palette);
173 static Status InitializePalette(ColorPalette *palette,
217 PaletteType paletteType, ColorPalette *palette,
  /prebuilts/misc/darwin-x86_64/freetype/include/freetype2/
ftimage.h 254 /* it indicates how the palette is stored. Not */
257 /* palette :: A typeless pointer to the bitmap palette; this */
270 void* palette; member in struct:FT_Bitmap_
    [all...]
  /prebuilts/misc/darwin-x86_64/sdl2/include/SDL2/
SDL_surface.h 103 * If the depth is 4 or 8 bits, an empty palette is allocated for the surface.
133 * \brief Set the palette used by a surface.
135 * \return 0, or -1 if the surface format doesn't use a palette.
137 * \note A single palette can be shared with many surfaces.
140 SDL_Palette * palette);
  /prebuilts/misc/windows/sdl2/i686-w64-mingw32/include/SDL2/
SDL_surface.h 103 * If the depth is 4 or 8 bits, an empty palette is allocated for the surface.
133 * \brief Set the palette used by a surface.
135 * \return 0, or -1 if the surface format doesn't use a palette.
137 * \note A single palette can be shared with many surfaces.
140 SDL_Palette * palette);
  /prebuilts/misc/windows/sdl2/include/
SDL_surface.h 103 * If the depth is 4 or 8 bits, an empty palette is allocated for the surface.
133 * \brief Set the palette used by a surface.
135 * \return 0, or -1 if the surface format doesn't use a palette.
137 * \note A single palette can be shared with many surfaces.
140 SDL_Palette * palette);
  /prebuilts/misc/windows/sdl2/test/
testscale.c 57 if (temp->format->palette) {
testspriteminimal.c 52 if (temp->format->palette) {
  /prebuilts/misc/windows/sdl2/x86_64-w64-mingw32/include/SDL2/
SDL_surface.h 103 * If the depth is 4 or 8 bits, an empty palette is allocated for the surface.
133 * \brief Set the palette used by a surface.
135 * \return 0, or -1 if the surface format doesn't use a palette.
137 * \note A single palette can be shared with many surfaces.
140 SDL_Palette * palette);
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/
GraphicsUtilitiesTest.java 111 assertTrue(baseData.palette.equals(copiedData.palette));
  /external/libvncserver/libvncclient/
tight.c 188 rfbClientLog("Tight encoding: error receiving palette.\n");
457 CARDBPP *palette = (CARDBPP *)client->tightPalette; local
475 palette[i] = RGB24_TO_PIXEL32(client->tightPalette[i*3],
494 CARDBPP *palette = (CARDBPP *)client->tightPalette; local
501 dst[y*client->rectWidth+x*8+7-b] = palette[src[y*w+x] >> b & 1];
504 dst[y*client->rectWidth+x*8+7-b] = palette[src[y*w+x] >> b & 1];
510 dst[y*client->rectWidth+x] = palette[(int)src[y*client->rectWidth+x]];
  /external/syslinux/com32/lib/libpng/
pngset.c 195 "Invalid palette size, hIST allocation skipped.");
446 png_colorp palette, int num_palette)
457 png_error(png_ptr, "Invalid palette length");
460 png_warning(png_ptr, "Invalid palette length");
465 /* It may not actually be necessary to set png_ptr->palette here;
477 png_ptr->palette = (png_colorp)png_calloc(png_ptr,
479 png_memcpy(png_ptr->palette, palette, num_palette * png_sizeof(png_color));
480 info_ptr->palette = png_ptr->palette;
    [all...]
  /prebuilts/go/darwin-x86/src/image/color/
color.go 279 // Palette is a palette of colors.
280 type Palette []Color
282 // Convert returns the palette color closest to c in Euclidean R,G,B space.
283 func (p Palette) Convert(c Color) Color {
290 // Index returns the index of the palette color closest to c in Euclidean
292 func (p Palette) Index(c Color) int {

Completed in 1537 milliseconds

1 2 3 45 6 7 8 91011>>