Home
last modified time | relevance | path

Searched refs:color_num (Results 1 – 25 of 87) sorted by relevance

1234

/dports/x11/mlterm/mlterm-3.9.1/tool/mlconfig/
H A Dmc_io_file.c442 int color_num; in mc_get_color_rgb_file() local
448 color_num = 0; in mc_get_color_rgb_file()
450 color_num = color_num * 10 + *p - '0'; in mc_get_color_rgb_file()
454 for (color_num = sizeof(vt_colors) / sizeof(vt_colors[0]) - 1; color_num >= 0; color_num--) { in mc_get_color_rgb_file()
458 color_num += 8; in mc_get_color_rgb_file()
470 if (rgb == NULL && color_num >= 0) { in mc_get_color_rgb_file()
473 sprintf(buf, "%d", color_num); in mc_get_color_rgb_file()
475 rgb = get_value(conf, color_num >= 8 ? in mc_get_color_rgb_file()
476 vt_colors[color_num - 8] : vt_colors[color_num] + 3); in mc_get_color_rgb_file()
491 if (0 <= color_num && color_num < 16) { in mc_get_color_rgb_file()
[all …]
/dports/graphics/lfview/lfview-1.1a/plugins/
H A Dplugin_lf.c1363 img[0].color_num = lf2->color_num; in plugin_get_lf2()
1376 for (i = 0; i < lf2->color_num; i++) { in plugin_get_lf2()
1396 img[0].color_num = 16; in plugin_get_lfg()
1432 img[0].color_num = grp->color_num; in plugin_get_grp()
1440 for (i = 0; i < grp->color_num; i++) { in plugin_get_grp()
1465 img[i].color_num = gad->color_num; in plugin_get_gad()
1498 img[0].color_num = grp->color_num; in plugin_get_sgrp()
1506 for (i = 0; i < grp->color_num; i++) { in plugin_get_sgrp()
1531 img[0].color_num = grp->color_num; in plugin_get_wgrp()
1539 for (i = 0; i < grp->color_num; i++) { in plugin_get_wgrp()
[all …]
H A Dhat_grpdec.c72 grp->color_num = 0; in grp_new()
87 grp->color_num = palette[0]; in set_palette_from_data()
90 fprintf(stderr, " plain palette(size=%d)\n", grp->color_num); in set_palette_from_data()
96 fprintf(stderr, " compressed palette(size=%d)\n", grp->color_num); in set_palette_from_data()
106 for (i = 0; i < grp->color_num; i++) { in get_plain_palette()
115 if (grp->color_num < 16) { in get_plain_palette()
144 grp->color_num = dst[0]; in get_compressed_palette()
220 grp->color_num = j + 1; in optimize_palette()
H A Dwa_grpdec.c72 grp->color_num = 0; in grp_new()
87 grp->color_num = palette[0]; in set_palette_from_data()
90 fprintf(stderr, " plain palette(size=%d)\n", grp->color_num); in set_palette_from_data()
96 fprintf(stderr, " compressed palette(size=%d)\n", grp->color_num); in set_palette_from_data()
106 for (i = 0; i < grp->color_num; i++) { in get_plain_palette()
142 grp->color_num = dst[0]; in get_compressed_palette()
222 grp->color_num = j + 1; in optimize_palette()
H A Dcp_grpdec.c76 grp->color_num = 0; in grp_new()
94 grp->color_num = palette[0]; in set_palette_from_data()
97 fprintf(stderr, " plain palette(size=%d)\n", grp->color_num); in set_palette_from_data()
103 fprintf(stderr, " compressed palette(size=%d)\n", grp->color_num); in set_palette_from_data()
113 for (i = 0; i < grp->color_num; i++) { in get_plain_palette()
156 grp->color_num = dst[0]; in get_compressed_palette()
248 grp->color_num = j + 1; in optimize_palette()
H A Dwa_gaddec.c78 gad->color_num = 0; in gad_new()
94 gad->color_num = palette[0]; in set_palette_from_data()
97 fprintf(stderr, " plain palette(size=%d)\n", gad->color_num); in set_palette_from_data()
103 fprintf(stderr, " compressed palette(size=%d)\n", gad->color_num); in set_palette_from_data()
113 for (i = 0; i < gad->color_num; i++) { in get_plain_palette()
147 gad->color_num = dst[0]; in get_compressed_palette()
238 gad->color_num = j + 1; in optimize_palette()
H A Dlf2dec.c84 lf2->color_num = data[0x16]; in read_lf2_from_data()
179 for (i = 0; i < lf2->color_num; i++) { in read_palette()
186 for (i = 0; i < lf2->color_num; i++) { in read_palette()
200 for (i = 0; i < lf2->color_num; i++) { in read_palette_from_data()
209 lf2->color_num = fgetc(fp); in read_color_num()
329 p = 0x18 + lf2->color_num * 3; in extract_body_from_data()
/dports/astro/gpsbabel14/gpsbabel-1.4.4/
H A Drgbcolors.c223 int color_num; in color_to_bbggrr() local
227 color_num = strtol(opt_color, &ep, 10); in color_to_bbggrr()
230 return color_num; in color_to_bbggrr()
234 color_num = (HexByte(opt_color+1)) + // red in color_to_bbggrr()
237 return color_num; in color_to_bbggrr()
/dports/graphics/piglit/piglit-136a7f5fa0703603be1ffb338abe4865e76a8058/tests/spec/arb_gl_spirv/execution/ssbo/
H A Dunsized-array.shader_test33 OpDecorate %color_num Location 0
34 OpDecorate %color_num DescriptorSet 0
35 OpDecorate %color_num Binding 1
52 %color_num = OpVariable %_ptr_UniformConstant_uint UniformConstant
57 %23 = OpLoad %uint %color_num
77 layout(location = 0) uniform uint color_num;
81 color_out = base_color + other_colors[color_num];
/dports/astro/gpsbabel/gpsbabel-gpsbabel_1_7_0/
H A Drgbcolors.cc226 int color_num = strtol(opt_color, &ep, 10); in color_to_bbggrr() local
229 return color_num; in color_to_bbggrr()
233 color_num = (HexByte(opt_color+1)) + // red in color_to_bbggrr()
236 return color_num; in color_to_bbggrr()
/dports/editors/neovim/neovim-0.6.1/contrib/gdb/
H A Dnvim-gdb-pretty-printers.py20 def get_color_code(bg, color_num): argument
21 if color_num < 16:
23 if color_num > 7:
27 color_num %= 8
30 return '\x1b[{0}{1}m'.format(prefix, color_num)
/dports/games/abuse_sdl/abuse-0.8/src/imlib/
H A Dpalette.cpp187 void palette::set_used(int color_num) in set_used() argument
190 CHECK(color_num>=0 && color_num<ncolors); in set_used()
191 x=color_num/8; in set_used()
192 b=color_num%8; in set_used()
199 CHECK(color_num>=0 && color_num<ncolors); in set_unused()
200 x=color_num/8; in set_unused()
201 b=color_num%8; in set_unused()
205 int palette::used(int color_num) in used() argument
208 CHECK(color_num>=0 && color_num<ncolors); in used()
209 x=color_num/8; in used()
[all …]
H A Dfilter.h25 void Set(int color_num, int change_to);
26 int GetMapping(int color_num) { return m_table[color_num]; } in GetMapping() argument
/dports/games/d2x/d2x-0.2.5/2d/
H A Dpalette.c257 ubyte r,g,b,color_num; member
265 void add_computed_color(int r, int g, int b, int color_num) in add_computed_color() argument
278 Computed_colors[add_index].color_num = color_num; in add_computed_color()
307 return Computed_colors[i-1].color_num; in gr_find_closest_color()
309 return Computed_colors[i].color_num; in gr_find_closest_color()
/dports/x11/tilda/tilda-tilda-1.5.0/src/
H A Dtilda-palettes.c202 int color_num) in tilda_palettes_get_palette_color() argument
204 g_return_val_if_fail (color_num >= 0 && color_num < TILDA_COLOR_PALETTE_SIZE, in tilda_palettes_get_palette_color()
207 return palette + color_num; in tilda_palettes_get_palette_color()
/dports/emulators/mess/mame-mame0226/src/devices/video/
H A Dppu2c0x.cpp391 switch (color_num) in nespal_to_RGB()
410 rad = M_PI * ((color_num * 30 + hue) / 180.0); in nespal_to_RGB()
448 for (int color_num = 0; color_num < 16; color_num++) in init_palette_tables() local
450 rgb_t col = nespal_to_RGB(color_intensity, color_num, color_emphasis, is_pal); in init_palette_tables()
466 for (int color_num = 0; color_num < 64; color_num++) in init_palette_tables() local
468 int R = ((color_emphasis & 1) ? 7 : m_palette_data[color_num * 3]); in init_palette_tables()
469 int G = ((color_emphasis & 2) ? 7 : m_palette_data[color_num * 3 + 1]); in init_palette_tables()
470 int B = ((color_emphasis & 4) ? 7 : m_palette_data[color_num * 3 + 2]); in init_palette_tables()
486 for (int color_num = 0; color_num < 64*2; color_num++) in init_palette_tables() local
489 u8 color = m_palette_data[color_num | 0x80]; in init_palette_tables()
[all …]
/dports/emulators/mame/mame-mame0226/src/devices/video/
H A Dppu2c0x.cpp391 switch (color_num) in nespal_to_RGB()
410 rad = M_PI * ((color_num * 30 + hue) / 180.0); in nespal_to_RGB()
448 for (int color_num = 0; color_num < 16; color_num++) in init_palette_tables() local
450 rgb_t col = nespal_to_RGB(color_intensity, color_num, color_emphasis, is_pal); in init_palette_tables()
466 for (int color_num = 0; color_num < 64; color_num++) in init_palette_tables() local
468 int R = ((color_emphasis & 1) ? 7 : m_palette_data[color_num * 3]); in init_palette_tables()
469 int G = ((color_emphasis & 2) ? 7 : m_palette_data[color_num * 3 + 1]); in init_palette_tables()
470 int B = ((color_emphasis & 4) ? 7 : m_palette_data[color_num * 3 + 2]); in init_palette_tables()
486 for (int color_num = 0; color_num < 64*2; color_num++) in init_palette_tables() local
489 u8 color = m_palette_data[color_num | 0x80]; in init_palette_tables()
[all …]
/dports/games/dxx-rebirth/dxx-rebirth_20211220-src/similar/2d/
H A Dpalette.cpp82 color_palette_index color_num; member
242 const auto color_num = c.color_num; in gr_find_closest_color() local
247 return color_num; in gr_find_closest_color()
260 return cc.color_num = gr_find_closest_color_palette(r, g, b, gr_palette); in gr_find_closest_color()
/dports/graphics/open3d/Open3D-0.2/src/IO/FileFormat/
H A DFilePLY.cpp46 long color_num; member
92 if (state_ptr->color_index >= state_ptr->color_num) { in ReadColorCallback()
116 long color_num; member
165 if (state_ptr->color_index >= state_ptr->color_num) { in ReadColorCallback()
233 state.color_num = ply_set_read_cb(ply_file, "vertex", "red", in ReadPointCloudFromPLY()
251 pointcloud.colors_.resize(state.color_num); in ReadPointCloudFromPLY()
360 state.color_num = ply_set_read_cb(ply_file, "vertex", "red", in ReadTriangleMeshFromPLY()
386 mesh.vertex_colors_.resize(state.color_num); in ReadTriangleMeshFromPLY()
/dports/graphics/py-open3d-python/Open3D-0.2/src/IO/FileFormat/
H A DFilePLY.cpp46 long color_num; member
92 if (state_ptr->color_index >= state_ptr->color_num) { in ReadColorCallback()
116 long color_num; member
165 if (state_ptr->color_index >= state_ptr->color_num) { in ReadColorCallback()
233 state.color_num = ply_set_read_cb(ply_file, "vertex", "red", in ReadPointCloudFromPLY()
251 pointcloud.colors_.resize(state.color_num); in ReadPointCloudFromPLY()
360 state.color_num = ply_set_read_cb(ply_file, "vertex", "red", in ReadTriangleMeshFromPLY()
386 mesh.vertex_colors_.resize(state.color_num); in ReadTriangleMeshFromPLY()
/dports/www/xoops/XoopsCore25-2.5.10/htdocs/class/
H A Dxoopscomments.php271 * @param int $color_num
273 public function showThreadPost($order, $mode, $adminview = 0, $color_num = 1) argument
358 …showThread($color_num, $subject_image, $this->getVar('subject'), $text, $post_date, $ip_image, $re…
360 …showThread($color_num, $subject_image, $this->getVar('subject'), $this->getVar('comment'), $post_d…
388 * @param int $color_num
390 public function showTreeItem($order, $mode, $color_num) argument
393 if ($color_num == 1) {
/dports/graphics/cogl/cogl-1.22.8/tests/conform/
H A Dtest-pixel-buffer.c22 int color_num = x / (BITMAP_SIZE / 2) + y / (BITMAP_SIZE / 2) * 2 + 1; in generate_bitmap_data() local
23 *(data++) = (color_num & 4) ? 255 : 0; in generate_bitmap_data()
24 *(data++) = (color_num & 2) ? 255 : 0; in generate_bitmap_data()
25 *(data++) = (color_num & 1) ? 255 : 0; in generate_bitmap_data()
/dports/x11-wm/muffin/muffin-4.8.0/cogl/tests/conform/
H A Dtest-pixel-buffer.c22 int color_num = x / (BITMAP_SIZE / 2) + y / (BITMAP_SIZE / 2) * 2 + 1; in generate_bitmap_data() local
23 *(data++) = (color_num & 4) ? 255 : 0; in generate_bitmap_data()
24 *(data++) = (color_num & 2) ? 255 : 0; in generate_bitmap_data()
25 *(data++) = (color_num & 1) ? 255 : 0; in generate_bitmap_data()
/dports/x11-wm/mutter/mutter-41.1/cogl/tests/conform/
H A Dtest-pixel-buffer.c23 int color_num = x / (BITMAP_SIZE / 2) + y / (BITMAP_SIZE / 2) * 2 + 1; in generate_bitmap_data() local
24 *(data++) = (color_num & 4) ? 255 : 0; in generate_bitmap_data()
25 *(data++) = (color_num & 2) ? 255 : 0; in generate_bitmap_data()
26 *(data++) = (color_num & 1) ? 255 : 0; in generate_bitmap_data()
/dports/games/libretro-mame2003_plus/mame2003-plus-libretro-17e9889/src/vidhrdw/
H A Dbattlex_vidhrdw.c10 int color_num = offset & 7; in WRITE_HANDLER() local
14 …palette_set_color(64+palette_num*16+color_num, pal1bit(data >> 0), pal1bit(data >> 2), pal1bit(dat… in WRITE_HANDLER()
15 …palette_set_color(64+palette_num*16+color_num+8, pal2bit((data >> 0)&1), pal2bit((data >> 2)&1), p… in WRITE_HANDLER()

1234