/external/trappy/trappy/plotter/ |
ColorMap.py | 38 :param num_colors: Number or colors for which a gradient 40 :type num_colors: int 43 def __init__(self, num_colors, cmap='hsv'): 44 self.color_norm = clrs.Normalize(vmin=0, vmax=num_colors) 46 self.num_colors = num_colors 64 return self.cmap(self.num_colors - index) 78 num_colors = len(rgb_list) 80 return cls(num_colors, cmap=rgb_map)
|
/external/libjpeg-turbo/ |
wrtarga.c | 48 write_header (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo, int num_colors) 56 if (num_colors > 0) { 58 targaheader[5] = (char) (num_colors & 0xFF); 59 targaheader[6] = (char) (num_colors >> 8); 73 if (num_colors > 0) { 164 int num_colors, i; local 178 num_colors = cinfo->actual_number_of_colors; 179 if (num_colors > 256) 180 ERREXIT1(cinfo, JERR_TOO_MANY_COLORS, num_colors); 181 write_header(cinfo, dinfo, num_colors); [all...] |
wrgif.c | 222 emit_header (gif_dest_ptr dinfo, int num_colors, JSAMPARRAY colormap) 230 if (num_colors > 256) 231 ERREXIT1(dinfo->cinfo, JERR_TOO_MANY_COLORS, num_colors); 234 while (num_colors > (1 << BitsPerPixel)) 264 if (i < num_colors) { 276 /* Create a grayscale map of num_colors values, range 0..255 */ 277 put_3bytes(dinfo, (i * 255 + (num_colors-1)/2) / (num_colors-1));
|
wrbmp.c | 335 int num_colors = cinfo->actual_number_of_colors; local 342 for (i = 0; i < num_colors; i++) { 351 for (i = 0; i < num_colors; i++) {
|
/external/webp/src/utils/ |
utils.c | 253 int num_colors = 0; local 275 ++num_colors; 276 if (num_colors > MAX_PALETTE_SIZE) { 293 num_colors = 0; 296 palette[num_colors] = colors[i]; 297 ++num_colors; 301 return num_colors;
|
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
tgsi_two_side.c | 102 uint num_colors = 0; local 118 num_colors++; 122 if (num_colors > 0) { 127 decl.Range.Last = ts->num_temps + num_colors - 1;
|
/frameworks/native/libs/vr/libdvr/tests/ |
dvr_display-test.cpp | 302 uint32_t num_colors = color_textures.size(); local 326 uint32_t num_pixels = width * height / num_colors; 327 for (uint32_t color_index = 0; color_index < num_colors - 1; ++color_index) { 336 uint32_t color_texture = color_textures[num_colors - 1]; 337 uint32_t num_colored_pixels = num_pixels * (num_colors - 1);
|
/external/webp/src/enc/ |
alpha_enc.c | 210 const int num_colors = GetNumColors(alpha, width, height, width); local 212 filter = (num_colors <= kMinColorsForFilterNone) 218 if (try_filter_none || num_colors > kMaxColorsForFilterNone) {
|
vp8l_enc.c | 70 static void GreedyMinimizeDeltas(uint32_t palette[], int num_colors) { 76 for (i = 0; i < num_colors; ++i) { 79 for (k = i; k < num_colors; ++k) { 97 static int PaletteHasNonMonotonousDeltas(uint32_t palette[], int num_colors) { 101 for (i = 0; i < num_colors; ++i) { 129 const int num_colors = WebPGetColorPalette(pic, palette); local 130 if (num_colors > MAX_PALETTE_SIZE) { 134 *palette_size = num_colors; 135 qsort(palette, num_colors, sizeof(*palette), PaletteCompareColorsForQsort); 136 if (!low_effort && PaletteHasNonMonotonousDeltas(palette, num_colors)) { [all...] |
/frameworks/base/tools/aapt2/compile/ |
Png.cpp | 256 int num_colors = 0; local 319 for (idx = 0; idx < num_colors; idx++) { 331 if (num_colors == 256) { 337 colors[num_colors++] = col; 347 int paletteSize = w * h + bpp * num_colors; 398 *paletteEntries = num_colors; 401 for (int idx = 0; idx < num_colors; idx++) { [all...] |
/external/webp/src/dec/ |
vp8l_dec.c | 1274 const int num_colors = VP8LReadBits(br, 8) + 1; local [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/X11/extensions/ |
XKBgeom.h | 286 unsigned short num_colors; member in struct:_XkbGeometry 311 unsigned short num_colors; member in struct:_XkbGeometrySizes
|
/external/webp/src/mux/ |
anim_encode.c | 886 const int num_colors = WebPGetColorPalette(¶ms->sub_frame_ll_, NULL); local [all...] |
/external/mesa3d/src/gallium/drivers/radeonsi/ |
si_state_shaders.c | 633 unsigned num_colors = !!(info->colors_read & 0x0f) + local 636 (ps->key.part.ps.prolog.color_two_side ? num_colors : 0); [all...] |