HomeSort by relevance Sort by last modified time
    Searched refs:palette (Results 26 - 50 of 281) sorted by null

12 3 4 5 6 7 8 91011>>

  /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...]
  /external/skia/src/codec/
SkPngCodec.cpp 98 png_color* palette; local
99 if (!png_get_PLTE(fPng_ptr, fInfo_ptr, &palette, &numColors)) {
122 colorPtr[i] = proc(alphas[i], palette->red, palette->green, palette->blue);
123 palette++;
132 SkASSERT(&palette->red < &palette->green);
133 SkASSERT(&palette->green < &palette->blue)
    [all...]
  /external/opencv3/3rdparty/libpng/
pngrtran.c 362 /* Dither file to 8-bit. Supply a palette, the current number
363 * of elements in the palette, the maximum number of elements
365 * of colors is greater then the maximum number, the palette will be
381 png_set_quantize(png_structp png_ptr, png_colorp palette,
420 /* Find the least used palette entries by starting a
451 /* Swap the palette around, and set up a table, if necessary */
467 palette[i] = palette[j];
489 tmp_color = palette[j];
490 palette[j] = palette[i]
1553 png_colorp palette = png_ptr->palette; local
1769 png_colorp palette = png_ptr->palette; local
1800 png_colorp palette = png_ptr->palette; local
    [all...]
  /external/pdfium/third_party/lpng_v163/
pngrtran.c 392 /* Dither file to 8-bit. Supply a palette, the current number
393 * of elements in the palette, the maximum number of elements
395 * of colors is greater then the maximum number, the palette will be
411 png_set_quantize(png_structrp png_ptr, png_colorp palette,
450 /* Find the least used palette entries by starting a
481 /* Swap the palette around, and set up a table, if necessary */
497 palette[i] = palette[j];
519 tmp_color = palette[j];
520 palette[j] = palette[i];
1586 png_colorp palette = png_ptr->palette; local
1803 png_colorp palette = png_ptr->palette; local
1834 png_colorp palette = png_ptr->palette; local
    [all...]
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"
  /ndk/tests/build/issue20862-libpng-O0/jni/
pngrtran.c 362 /* Dither file to 8-bit. Supply a palette, the current number
363 * of elements in the palette, the maximum number of elements
365 * of colors is greater then the maximum number, the palette will be
381 png_set_quantize(png_structp png_ptr, png_colorp palette,
420 /* Find the least used palette entries by starting a
451 /* Swap the palette around, and set up a table, if necessary */
467 palette[i] = palette[j];
489 tmp_color = palette[j];
490 palette[j] = palette[i]
1553 png_colorp palette = png_ptr->palette; local
1769 png_colorp palette = png_ptr->palette; local
1800 png_colorp palette = png_ptr->palette; local
    [all...]
  /external/skia/src/utils/
SkTextureCompressor_R11EAC.cpp 26 // mod_val is chosen from a palette of values based on the index of the
27 // given pixel. The palette is chosen by the value stored in mod.
57 // Pack the base codeword, palette, and multiplier into the 64 bits necessary
59 static uint64_t pack_r11eac_block(uint16_t base_cw, uint16_t palette, uint16_t multiplier,
61 SkASSERT(palette < 16);
67 const uint64_t p = static_cast<uint64_t>(palette) << 48;
82 // 3. Iterate through each palette and choose the one with the most accurate
111 // Finally, choose the proper palette and indices
116 const int *palette = kR11EACModifierPalettes[paletteIdx];
118 // Iterate through each pixel to find the best palette inde
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/dynamicui/
ExtractedColors.java 22 import android.support.v7.graphics.Palette;
116 * Updates colors based on the palette.
117 * If the palette is null, the default color is used in all cases.
119 public void updatePalette(Palette palette) {
120 if (palette == null) {
125 // We currently don't use any of the colors defined by the Palette API,
129 // palette.getVibrantColor(ExtractedColors.DEFAULT_COLOR));
131 // palette.getDarkVibrantColor(ExtractedColors.DEFAULT_DARK));
133 // palette.getLightVibrantColor(ExtractedColors.DEFAULT_LIGHT))
    [all...]
  /external/libpng/
pngrtran.c 397 /* Dither file to 8-bit. Supply a palette, the current number
398 * of elements in the palette, the maximum number of elements
400 * of colors is greater than the maximum number, the palette will be
416 png_set_quantize(png_structrp png_ptr, png_colorp palette,
455 /* Find the least used palette entries by starting a
486 /* Swap the palette around, and set up a table, if necessary */
502 palette[i] = palette[j];
524 tmp_color = palette[j];
525 palette[j] = palette[i]
1595 png_colorp palette = png_ptr->palette; local
1812 png_colorp palette = png_ptr->palette; local
1843 png_colorp palette = png_ptr->palette; local
    [all...]
example.c 413 * for paletted images instead of supplying a palette index. Note that
469 /* Quantize RGB files down to 8-bit palette or reduce palettes
475 png_colorp palette;
477 /* This reduces the image to the application supplied palette */
478 if (/* We have our own palette */)
486 /* This reduces the image to the palette supplied in the file */
487 else if (png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette) != 0)
493 png_set_quantize(png_ptr, palette, num_palette,
538 /* Optional call to gamma correct and add the background to the palette
540 * update the palette for you (ie you selected such a transform above)
    [all...]
pnginfo.h 35 * cleaned up before the structure is discarded: palette, trans, text,
62 png_colorp palette; /* array of color values (valid & PNG_INFO_PLTE) */ member in struct:png_info_def
63 png_uint_16 num_palette; /* number of color entries in "palette" (PLTE) */
64 png_uint_16 num_trans; /* number of transparent palette color (tRNS) */
147 * same order as the palette colors, starting from index 0. Values
154 png_color_16 trans_color; /* transparent color for non-palette image */
190 * various palette entries, so that a viewer can intelligently select a
191 * reduced-color palette, if required. Data is an array of "num_palette"
  /external/skia/src/images/
SkImageDecoder_libpng.cpp 179 // call only if color_type is PALETTE. Returns true if the ctable has alpha
353 /* Optional call to gamma correct and add the background to the palette
355 * update the palette for you (ie you selected such a transform above).
395 upscale png's palette to a direct model
639 png_colorp palette; local
643 png_get_PLTE(png_ptr, info_ptr, &palette, &numPalette);
673 *colorPtr++ = proc(*trans++, palette->red, palette->green, palette->blue);
674 palette++
    [all...]
  /frameworks/native/opengl/libagl/
texture.cpp 432 size_t size = (1 << indexBits) * entrySize; // palette size
489 uint8_t const* const palette = (uint8_t*)data; local
495 *p++ = palette[index + 0];
496 *p++ = palette[index + 1];
502 *p++ = palette[index + 0];
503 *p++ = palette[index + 1];
506 *p++ = palette[index + 0];
507 *p++ = palette[index + 1];
513 uint8_t const* const palette = (uint8_t*)data; local
519 *p++ = palette[index + 0]
540 uint8_t const* const palette = (uint8_t*)data; local
    [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:__anon19491
  /frameworks/support/scripts/
support-deps-license.sh 43 rundeps frameworks/support/v7/palette
  /frameworks/support/v7/palette/
Android.mk 21 # android-support-v7-palette \
28 LOCAL_MODULE := android-support-v7-palette
  /packages/apps/Launcher3/
Android.mk 29 android-support-v7-palette
  /packages/apps/TV/
Android.mk 42 android-support-v7-palette \
  /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/
d3dx9tex.h 239 PALETTEENTRY *palette, struct IDirect3DTexture9 **texture);
243 PALETTEENTRY *palette, struct IDirect3DTexture9 **texture);
249 PALETTEENTRY *palette, struct IDirect3DCubeTexture9 **cube);
253 PALETTEENTRY *palette, struct IDirect3DCubeTexture9 **cube);
259 PALETTEENTRY *palette, struct IDirect3DVolumeTexture9 **volume);
263 PALETTEENTRY *palette, struct IDirect3DVolumeTexture9 **volume);
269 PALETTEENTRY *palette, struct IDirect3DTexture9 **texture);
273 PALETTEENTRY *palette, struct IDirect3DTexture9 **texture);
279 PALETTEENTRY *palette, struct IDirect3DCubeTexture9 **cube);
283 PALETTEENTRY *palette, struct IDirect3DCubeTexture9 **cube)
    [all...]
  /prebuilts/misc/darwin-x86_64/sdl2/include/SDL2/
SDL_pixels.h 277 SDL_Palette *palette; member in struct:SDL_PixelFormat
341 * \brief Create a palette structure with the specified number of color
344 * \return A new palette, or NULL if there wasn't enough memory.
346 * \note The palette entries are initialized to white.
353 * \brief Set the palette for a pixel format structure.
356 SDL_Palette *palette);
359 * \brief Set a range of colors in a palette.
361 * \param palette The palette to modify.
362 * \param colors An array of colors to copy into the palette
    [all...]
  /prebuilts/misc/windows/sdl2/i686-w64-mingw32/include/SDL2/
SDL_pixels.h 277 SDL_Palette *palette; member in struct:SDL_PixelFormat
341 * \brief Create a palette structure with the specified number of color
344 * \return A new palette, or NULL if there wasn't enough memory.
346 * \note The palette entries are initialized to white.
353 * \brief Set the palette for a pixel format structure.
356 SDL_Palette *palette);
359 * \brief Set a range of colors in a palette.
361 * \param palette The palette to modify.
362 * \param colors An array of colors to copy into the palette
    [all...]
  /prebuilts/misc/windows/sdl2/include/
SDL_pixels.h 277 SDL_Palette *palette; member in struct:SDL_PixelFormat
341 * \brief Create a palette structure with the specified number of color
344 * \return A new palette, or NULL if there wasn't enough memory.
346 * \note The palette entries are initialized to white.
353 * \brief Set the palette for a pixel format structure.
356 SDL_Palette *palette);
359 * \brief Set a range of colors in a palette.
361 * \param palette The palette to modify.
362 * \param colors An array of colors to copy into the palette
    [all...]
  /prebuilts/misc/windows/sdl2/x86_64-w64-mingw32/include/SDL2/
SDL_pixels.h 277 SDL_Palette *palette; member in struct:SDL_PixelFormat
341 * \brief Create a palette structure with the specified number of color
344 * \return A new palette, or NULL if there wasn't enough memory.
346 * \note The palette entries are initialized to white.
353 * \brief Set the palette for a pixel format structure.
356 SDL_Palette *palette);
359 * \brief Set a range of colors in a palette.
361 * \param palette The palette to modify.
362 * \param colors An array of colors to copy into the palette
    [all...]
  /external/libvncserver/libvncserver/
tight.c 135 } PALETTE;
142 static TLS PALETTE palette; variable
839 /* TODO: setup palette maybe */
841 /* TODO: destroy palette maybe */
864 /* Prepare palette, convert image. */
940 /* Prepare palette, convert image. */
948 palette.entry[i].listNode->rgb;
    [all...]
  /external/webp/src/enc/
vp8l.c 34 // Palette reordering for smaller sum of deltas (and for smaller storage).
48 // palette entry diff.
70 static void GreedyMinimizeDeltas(uint32_t palette[], int num_colors) {
72 // deltas in the palette. This reduces storage needs since the
73 // palette is stored with delta encoding.
80 const uint32_t cur_score = PaletteColorDistance(palette[k], predict);
86 SwapColor(&palette[best_ix], &palette[i]);
87 predict = palette[i];
91 // The palette has been sorted by alpha. This function checks if the othe
1265 const uint32_t* const palette = enc->palette_; local
1294 const uint32_t* const palette = enc->palette_; local
    [all...]

Completed in 1399 milliseconds

12 3 4 5 6 7 8 91011>>