Home
last modified time | relevance | path

Searched refs:palette (Results 1 – 25 of 129) sorted by relevance

123456

/external/ImageMagick/coders/
Dcut.c328 if (palette != NULL) \ in ReadCUTImage()
329 palette=DestroyImage(palette); \ in ReadCUTImage()
335 Image *image,*palette; in ReadCUTImage() local
372 palette=NULL; in ReadCUTImage()
457 if( (palette=AcquireImage(clone_info,exception))==NULL ) goto NoPalette; in ReadCUTImage()
458 status=OpenBlob(clone_info,palette,ReadBinaryBlobMode,exception); in ReadCUTImage()
462 palette=DestroyImage(palette); in ReadCUTImage()
463 palette=NULL; in ReadCUTImage()
468 if(palette!=NULL) in ReadCUTImage()
470 (void) ReadBlob(palette,2,(unsigned char *) PalHeader.FileId); in ReadCUTImage()
[all …]
Dsixel.c234 unsigned char /* out */ **palette, /* ARGB palette */ in sixel_decode()
564 *palette = (unsigned char *) AcquireQuantumMemory(*ncolors,4); in sixel_decode()
565 if (*palette == (unsigned char *) NULL) in sixel_decode()
568 (*palette)[n * 4 + 0] = sixel_palet[n] >> 16 & 0xff; in sixel_decode()
569 (*palette)[n * 4 + 1] = sixel_palet[n] >> 8 & 0xff; in sixel_decode()
570 (*palette)[n * 4 + 2] = sixel_palet[n] & 0xff; in sixel_decode()
571 (*palette)[n * 4 + 3] = 0xff; in sixel_decode()
709 unsigned char *palette, size_t ncolors, int keycolor, in sixel_encode_impl() argument
761 (palette[n * 3 + 0] * 100 + 127) / 255, in sixel_encode_impl()
762 (palette[n * 3 + 1] * 100 + 127) / 255, in sixel_encode_impl()
[all …]
/external/libpng/contrib/testpngs/
Dmakepngs.sh49 for c in gray palette
58 mpg "$g" palette 8
59 mptrans "$g" palette 8
79 mpg none palette 8 # required: basic palette read
81 mpg 1.8 palette 2 # required: code coverage
82 mpg 1.8 palette 4 # required: code coverage
83 mpg 1.8 palette 8 # error limits only
84 mpg linear palette 8 # error limits only
86 mpg sRGB palette 1 # required: code coverage
/external/mesa3d/src/mesa/main/
Dtexcompress_cpal.c67 get_palette_entry(const struct cpal_format_info *info, const GLubyte *palette, in get_palette_entry() argument
70 memcpy(pixel, palette + info->size * index, info->size); in get_palette_entry()
79 paletted_to_color(const struct cpal_format_info *info, const GLubyte *palette, in paletted_to_color() argument
92 pix += get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix); in paletted_to_color()
93 pix += get_palette_entry(info, palette, ind[i] & 0xf, pix); in paletted_to_color()
96 get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix); in paletted_to_color()
103 pix += get_palette_entry(info, palette, ind[i], pix); in paletted_to_color()
151 GLsizei imageSize, const void *palette) in _mesa_cpal_compressed_teximage2d() argument
169 indices = (const GLubyte *) palette + info->palette_size * info->size; in _mesa_cpal_compressed_teximage2d()
192 if (palette) { in _mesa_cpal_compressed_teximage2d()
[all …]
/external/fonttools/Lib/fontTools/ttLib/tables/
DC_P_A_L_.py33 palette = []
36 palette.append( Color(*struct.unpack(">BBBB", data[ppos:ppos+4])) )
38 self.palettes.append(palette)
112 def _compilePalette(self, palette): argument
113 assert(len(palette) == self.numPaletteEntries)
115 return bytesjoin([pack(color) for color in palette])
119 for palette in self.palettes:
120 packedPalette = self._compilePalette(palette)
167 for index, palette in enumerate(self.palettes):
183 assert(len(palette) == self.numPaletteEntries)
[all …]
/external/libpng/contrib/examples/
Dpngpixel.c91 png_colorp palette = NULL; in print_pixel() local
94 if ((png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette) & in print_pixel()
95 PNG_INFO_PLTE) && num_palette > 0 && palette != NULL) in print_pixel()
103 palette[index].red, palette[index].green, in print_pixel()
104 palette[index].blue, in print_pixel()
109 palette[index].red, palette[index].green, in print_pixel()
110 palette[index].blue); in print_pixel()
/external/u-boot/tools/
Dbmp_logo.c11 uint8_t palette[256*3]; member
163 b->palette[(int)(i*3+2)] = fgetc(fp); in main()
164 b->palette[(int)(i*3+1)] = fgetc(fp); in main()
165 b->palette[(int)(i*3+0)] = fgetc(fp); in main()
170 (b->palette[(int)(i*3+0)] >> 4) & 0x0F, in main()
171 (b->palette[(int)(i*3+1)] >> 4) & 0x0F, in main()
172 (b->palette[(int)(i*3+2)] >> 4) & 0x0F, in main()
/external/u-boot/drivers/video/
Dpxa_lcd.c346 return (ushort *)fbi->palette; in configuration_get_cmap()
363 unsigned short *palette = (unsigned short *)fbi->palette; in lcd_setcolreg() local
372 palette[regno] = ~val; in lcd_setcolreg()
374 palette[regno] = val; in lcd_setcolreg()
379 regno, &palette[regno], in lcd_setcolreg()
381 palette[regno]); in lcd_setcolreg()
422 fbi->palette = (u_long)lcdbase + fb_size + PAGE_SIZE - palette_mem_size; in pxafb_init_mem()
553 fbi->dmadesc_fblow = (struct pxafb_dma_descriptor *)((unsigned int)fbi->palette - 3*16); in pxafb_init()
554 fbi->dmadesc_fbhigh = (struct pxafb_dma_descriptor *)((unsigned int)fbi->palette - 2*16); in pxafb_init()
555 fbi->dmadesc_palette = (struct pxafb_dma_descriptor *)((unsigned int)fbi->palette - 1*16); in pxafb_init()
[all …]
/external/libpng/
Dpngrtran.c417 png_set_quantize(png_structrp png_ptr, png_colorp palette, in png_set_quantize() argument
503 palette[i] = palette[j]; in png_set_quantize()
525 tmp_color = palette[j]; in png_set_quantize()
526 palette[j] = palette[i]; in png_set_quantize()
527 palette[i] = tmp_color; in png_set_quantize()
543 min_d = PNG_COLOR_DIST(palette[d_index], palette[0]); in png_set_quantize()
548 d = PNG_COLOR_DIST(palette[d_index], palette[k]); in png_set_quantize()
622 d = PNG_COLOR_DIST(palette[i], palette[j]); in png_set_quantize()
671 palette[png_ptr->index_to_palette[j]] in png_set_quantize()
672 = palette[num_new_palette]; in png_set_quantize()
[all …]
Dexample.c475 png_colorp palette;
487 else if (png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette) != 0)
493 png_set_quantize(png_ptr, palette, num_palette,
769 png_colorp palette;
848 palette = (png_colorp)png_malloc(png_ptr, PNG_MAX_PALETTE_LENGTH
851 png_set_PLTE(png_ptr, info_ptr, palette, PNG_MAX_PALETTE_LENGTH);
1041 png_free(png_ptr, palette);
1042 palette = NULL;
Dpngwrite.c206 png_write_PLTE(png_ptr, info_ptr->palette, in png_write_info()
1810 png_color palette[256]; in png_image_set_PLTE() local
1814 memset(palette, 0, (sizeof palette)); in png_image_set_PLTE()
1831 palette[i].blue = (png_byte)PNG_sRGB_FROM_LINEAR(255 * in png_image_set_PLTE()
1833 palette[i].green = (png_byte)PNG_sRGB_FROM_LINEAR(255 * in png_image_set_PLTE()
1835 palette[i].red = (png_byte)PNG_sRGB_FROM_LINEAR(255 * in png_image_set_PLTE()
1840 palette[i].blue = palette[i].red = palette[i].green = in png_image_set_PLTE()
1863 palette[i].blue = png_unpremultiply(entry[afirst + (2 ^ bgr)], in png_image_set_PLTE()
1865 palette[i].green = png_unpremultiply(entry[afirst + 1], alpha, in png_image_set_PLTE()
1867 palette[i].red = png_unpremultiply(entry[afirst + bgr], alpha, in png_image_set_PLTE()
[all …]
/external/pdfium/third_party/libpng16/
Dpngrtran.c416 png_set_quantize(png_structrp png_ptr, png_colorp palette, in png_set_quantize() argument
502 palette[i] = palette[j]; in png_set_quantize()
524 tmp_color = palette[j]; in png_set_quantize()
525 palette[j] = palette[i]; in png_set_quantize()
526 palette[i] = tmp_color; in png_set_quantize()
542 min_d = PNG_COLOR_DIST(palette[d_index], palette[0]); in png_set_quantize()
547 d = PNG_COLOR_DIST(palette[d_index], palette[k]); in png_set_quantize()
619 d = PNG_COLOR_DIST(palette[i], palette[j]); in png_set_quantize()
668 palette[png_ptr->index_to_palette[j]] in png_set_quantize()
669 = palette[num_new_palette]; in png_set_quantize()
[all …]
Dpngwrite.c206 png_write_PLTE(png_ptr, info_ptr->palette, in png_write_info()
1797 png_color palette[256]; in png_image_set_PLTE() local
1801 memset(palette, 0, (sizeof palette)); in png_image_set_PLTE()
1818 palette[i].blue = (png_byte)PNG_sRGB_FROM_LINEAR(255 * in png_image_set_PLTE()
1820 palette[i].green = (png_byte)PNG_sRGB_FROM_LINEAR(255 * in png_image_set_PLTE()
1822 palette[i].red = (png_byte)PNG_sRGB_FROM_LINEAR(255 * in png_image_set_PLTE()
1827 palette[i].blue = palette[i].red = palette[i].green = in png_image_set_PLTE()
1850 palette[i].blue = png_unpremultiply(entry[afirst + (2 ^ bgr)], in png_image_set_PLTE()
1852 palette[i].green = png_unpremultiply(entry[afirst + 1], alpha, in png_image_set_PLTE()
1854 palette[i].red = png_unpremultiply(entry[afirst + bgr], alpha, in png_image_set_PLTE()
[all …]
/external/zopfli/src/zopflipng/
Dzopflipng_lib.cc118 bool palette = count.size() <= 256; in LossyOptimizeTransparent() local
122 if (key || palette) { in LossyOptimizeTransparent()
142 if (!key && !palette) { in LossyOptimizeTransparent()
153 if (palette && inputstate->info_png.color.palettesize > 0) { in LossyOptimizeTransparent()
157 unsigned char* palette_in = inputstate->info_png.color.palette; in LossyOptimizeTransparent()
253 if (color.palette[i * 4 + 0] != color.palette[i * 4 + 2] in TryOptimize()
254 || color.palette[i * 4 + 1] != color.palette[i * 4 + 2]) { in TryOptimize()
/external/webp/src/enc/
Dvp8l_enc.c68 static void GreedyMinimizeDeltas(uint32_t palette[], int num_colors) { in GreedyMinimizeDeltas() argument
78 const uint32_t cur_score = PaletteColorDistance(palette[k], predict); in GreedyMinimizeDeltas()
84 SwapColor(&palette[best_ix], &palette[i]); in GreedyMinimizeDeltas()
85 predict = palette[i]; in GreedyMinimizeDeltas()
95 static int PaletteHasNonMonotonousDeltas(uint32_t palette[], int num_colors) { in PaletteHasNonMonotonousDeltas() argument
100 const uint32_t diff = VP8LSubPixels(palette[i], predict); in PaletteHasNonMonotonousDeltas()
113 predict = palette[i]; in PaletteHasNonMonotonousDeltas()
125 uint32_t palette[MAX_PALETTE_SIZE], in AnalyzeAndCreatePalette()
127 const int num_colors = WebPGetColorPalette(pic, palette); in AnalyzeAndCreatePalette()
133 qsort(palette, num_colors, sizeof(*palette), PaletteCompareColorsForQsort); in AnalyzeAndCreatePalette()
[all …]
/external/harfbuzz_ng/src/
Dtest-ot-color.cc170 for (unsigned int palette = 0; palette < palette_count; palette++) in layered_glyph_dump() local
172 unsigned int num_colors = hb_ot_color_palette_get_colors (face, palette, 0, NULL, NULL); in layered_glyph_dump()
177 hb_ot_color_palette_get_colors (face, palette, 0, &num_colors, colors); in layered_glyph_dump()
181 sprintf (output_path, "out/colr-%u-%u-%u.svg", gid, palette, face_index); in layered_glyph_dump()
/external/pdfium/core/fxcodec/codec/
Dccodec_bmpmodule.cpp40 std::vector<uint32_t>* palette, in ReadHeader() argument
55 *palette = ctx->m_Bmp.palette; in ReadHeader()
/external/pdfium/core/fxcodec/gif/
Dcfx_gifcontext_unittest.cpp214 uint8_t palette[4 * sizeof(CFX_GifPalette)]; in TEST() member
231 EXPECT_TRUE(0 == memcmp(data.palette, context.global_palette_.data(), in TEST()
232 sizeof(data.palette))); in TEST()
296 uint8_t palette[4 * sizeof(CFX_GifPalette)]; in TEST() member
312 EXPECT_TRUE(0 == memcmp(data.palette, context.global_palette_.data(), in TEST()
313 sizeof(data.palette))); in TEST()
/external/skia/src/codec/
DSkPngCodec.cpp262 png_color* palette; in createColorTable() local
263 if (!png_get_PLTE(fPng_ptr, fInfo_ptr, &palette, &numColors)) { in createColorTable()
285 colorTable[i] = proc(alphas[i], palette->red, palette->green, palette->blue); in createColorTable()
286 palette++; in createColorTable()
295 SkASSERT(&palette->red < &palette->green); in createColorTable()
296 SkASSERT(&palette->green < &palette->blue); in createColorTable()
300 SkOpts::RGB_to_RGB1(colorTable + numColorsWithAlpha, (const uint8_t*)palette, in createColorTable()
303 SkOpts::RGB_to_BGR1(colorTable + numColorsWithAlpha, (const uint8_t*)palette, in createColorTable()
/external/skqp/src/codec/
DSkPngCodec.cpp262 png_color* palette; in createColorTable() local
263 if (!png_get_PLTE(fPng_ptr, fInfo_ptr, &palette, &numColors)) { in createColorTable()
285 colorTable[i] = proc(alphas[i], palette->red, palette->green, palette->blue); in createColorTable()
286 palette++; in createColorTable()
295 SkASSERT(&palette->red < &palette->green); in createColorTable()
296 SkASSERT(&palette->green < &palette->blue); in createColorTable()
300 SkOpts::RGB_to_RGB1(colorTable + numColorsWithAlpha, (const uint8_t*)palette, in createColorTable()
303 SkOpts::RGB_to_BGR1(colorTable + numColorsWithAlpha, (const uint8_t*)palette, in createColorTable()
/external/zopfli/src/zopflipng/lodepng/
Dlodepng.cpp2530 info->palette = 0; in lodepng_color_mode_init()
2544 if(source->palette) in lodepng_color_mode_copy()
2546 dest->palette = (unsigned char*)lodepng_malloc(1024); in lodepng_color_mode_copy()
2547 if(!dest->palette && source->palettesize) return 83; /*alloc fail*/ in lodepng_color_mode_copy()
2548 for(i = 0; i < source->palettesize * 4; i++) dest->palette[i] = source->palette[i]; in lodepng_color_mode_copy()
2568 if(a->palette[i] != b->palette[i]) return 0; in lodepng_color_mode_equal()
2575 if(info->palette) lodepng_free(info->palette); in lodepng_palette_clear()
2576 info->palette = 0; in lodepng_palette_clear()
2586 if(!info->palette) /*allocate palette if empty*/ in lodepng_palette_add()
2589 data = (unsigned char*)lodepng_realloc(info->palette, 1024); in lodepng_palette_add()
[all …]
/external/mesa3d/src/gallium/state_trackers/xvmc/
Dsubpicture.c354 subpicture_priv->palette = pipe->create_sampler_view(pipe, tex, &sampler_templ); in XvMCCreateSubpicture()
470 pipe_sampler_view_reference(&subpicture_priv->palette, NULL); in XvMCDestroySubpicture()
479 Status XvMCSetSubpicturePalette(Display *dpy, XvMCSubpicture *subpicture, unsigned char *palette) in XvMCSetSubpicturePalette() argument
487 assert(palette); in XvMCSetSubpicturePalette()
498 upload_sampler(pipe, subpicture_priv->palette, &dst_box, palette, 0, 0, 0); in XvMCSetSubpicturePalette()
/external/libpng/contrib/libtests/
Dmakepng.c249 generate_palette(png_colorp palette, png_bytep trans, int bit_depth, in generate_palette() argument
269 set_color(palette+0, trans+0, colors[1], colors[1], colors[1], 255, in generate_palette()
274 set_color(palette+0, trans+0, colors[1], colors[1], colors[1], in generate_palette()
279 set_color(palette+0, trans+0, colors[1], colors[2], colors[3], 255, in generate_palette()
284 set_color(palette+0, trans+0, colors[1], colors[2], colors[3], in generate_palette()
291 set_color(palette+0, trans+0, 255, 0, 0, 0, gamma_table); in generate_palette()
292 set_color(palette+1, trans+1, 255, 255, 255, 255, gamma_table); in generate_palette()
313 set_color(palette+ip, trans+ip, in generate_palette()
890 png_color palette[256]; in write_png() local
893 npalette = generate_palette(palette, trans, bit_depth, gamma_table, in write_png()
[all …]
/external/u-boot/tools/easylogo/
Deasylogo.c52 void *data, *palette; member
177 image->palette = NULL; in image_load_tga()
239 free (image->palette); in image_free()
258 yuyv_image->palette = 0; in image_rgb_to_yuyv()
294 rgb565_image->palette = 0; in image_rgb888_to_rgb565()
/external/swiftshader/third_party/PowerVR_SDK/Examples/Advanced/ChameleonMan/
DChameleonMan.txt10 Matrix Skinning is the act of animating a vertex over time given a set (palette) of matrices and a …
14 Per vertex, up to 3 matrices, from the palette, along with 3 weights are used by the vertex shader …

123456