/dports/x11/xlockmore/xlockmore-5.67/modes/ |
H A D | toneclock.c | 142 int ncolors; member 346 tclock->ncolors = 0; in init_toneclock() 415 tclock->ncolors = MI_NCOLORS(mi); in init_toneclock() 416 if (tclock->ncolors < 2) in init_toneclock() 417 tclock->ncolors = 2; in init_toneclock() 418 if (tclock->ncolors <= 2) in init_toneclock() 427 (tclock->ncolors + 1))) == NULL) { in init_toneclock() 487 if (tclock->ncolors < 2) { in init_toneclock() 488 tclock->ncolors = 2; in init_toneclock() 492 if (tclock->ncolors <= 2) in init_toneclock() [all …]
|
/dports/graphics/urt/urt-3.1b1_12/tools/ |
H A D | rlestereo.c | 149 out_hdr.ncolors = 3; 160 for (i = 3; i < left_hdr.ncolors; i++) 162 for (i = 3; i < right_hdr.ncolors; i++) 165 lcolors = left_hdr.ncolors > 3 ? 3 : left_hdr.ncolors; 166 rcolors = right_hdr.ncolors > 3 ? 3 : right_hdr.ncolors;
|
/dports/graphics/grads/grads-1.9b4/src/ |
H A D | gaimg.c | 152 int i, ncolors; in getxcolors() local 163 ncolors = win_info->visual->map_entries; in getxcolors() 165 if (!(*colors = (XColor *) malloc (sizeof(XColor) * ncolors))) in getxcolors() 175 for (i=0; i<ncolors; i++) { in getxcolors() 190 for (i=0; i<ncolors; i++) { in getxcolors() 196 ncolors); in getxcolors() 197 return(ncolors); in getxcolors()
|
/dports/graphics/p5-Image-Scale/Image-Scale-0.12/src/ |
H A D | bmp.c | 20 static uint32_t ncolors[3] = { (1 << 5) - 1, (1 << 5) - 1, (1 << 5) - 1 }; 120 ncolors[1] = (1 << 6) - 1; 122 ncolors[1] = (1 << 5) - 1; 125 DEBUG_TRACE("16bpp mask %d: %08x >> %d, ncolors %d\n", i, masks[i], shifts[i], ncolors[i]); 290 ((p & masks[0]) >> shifts[0]) * 255 / ncolors[0], 291 ((p & masks[1]) >> shifts[1]) * 255 / ncolors[1], 292 ((p & masks[2]) >> shifts[2]) * 255 / ncolors[2]); 295 ((p & masks[0]) >> shifts[0]) * 255 / ncolors[0], 296 ((p & masks[1]) >> shifts[1]) * 255 / ncolors[1], 297 ((p & masks[2]) >> shifts[2]) * 255 / ncolors[2]
|
/dports/graphics/urt/urt-3.1b1_12/lib/ |
H A D | rle_row_alc.c | 66 for ( i = 0; i < the_hdr->ncolors; i++ ) 70 ncol = the_hdr->ncolors + the_hdr->alpha; 84 for ( i = -the_hdr->alpha; i < the_hdr->ncolors; i++ ) 122 for ( i = 0; i < the_hdr->ncolors + the_hdr->alpha; i++ )
|
/dports/graphics/netpbm/netpbm-10.91.01/urt/ |
H A D | rle_row_alc.c | 68 for ( i = 0; i < the_hdr->ncolors; i++ ) 72 ncol = the_hdr->ncolors + the_hdr->alpha; 86 for ( i = -the_hdr->alpha; i < the_hdr->ncolors; i++ ) 124 for ( i = 0; i < the_hdr->ncolors + the_hdr->alpha; i++ )
|
/dports/x11-toolkits/xmhtml/XmHTML-1.1.10/lib/common/ |
H A D | readFLG.c | 175 _readCardinal(frame->ncolors); in readFLG() 177 if(frame->ncolors) in readFLG() 180 frame->ncolors++; in readFLG() 181 frame->scolors = frame->ncolors; in readFLG() 184 frame->reds = (Dimension*)calloc(3*frame->ncolors, in readFLG() 191 for(i = 0; i < frame->ncolors; i++, color++) in readFLG() 196 for(i = 0; i < frame->ncolors; i++, color++) in readFLG() 201 for(i = 0; i < frame->ncolors; i++, color++) in readFLG()
|
/dports/science/afni/afni-AFNI_21.3.16/src/XmHTML/lib/common/ |
H A D | readFLG.c | 181 _readCardinal(frame->ncolors); in readFLG() 183 if(frame->ncolors) in readFLG() 186 frame->ncolors++; in readFLG() 187 frame->scolors = frame->ncolors; in readFLG() 190 frame->reds = (Dimension*)calloc(3*frame->ncolors, in readFLG() 197 for(i = 0; i < frame->ncolors; i++, color++) in readFLG() 202 for(i = 0; i < frame->ncolors; i++, color++) in readFLG() 207 for(i = 0; i < frame->ncolors; i++, color++) in readFLG()
|
/dports/graphics/graphviz/graphviz-2.44.1/cmd/gvpr/lib/ |
H A D | color | 13 int ncolors; /* number of colors: ncolors >= 2 */ 15 * lim[0]=0 < lim[1] < ... < lim[ncolors-1]=1 24 ncolors = 2; 51 for (i = 1; i < ncolors; i++) {
|
/dports/x11-wm/fvwm2/fvwm-2.6.9/libs/ |
H A D | Graphics.c | 865 *width_ret = ncolors; in CalculateGradientDimensions() 870 *height_ret = ncolors; in CalculateGradientDimensions() 878 *width_ret = (ncolors + 1) / 2; in CalculateGradientDimensions() 993 int d = i * ncolors / t_width; in CreateGradientPixmap() 1012 int d = j * ncolors / t_height; in CreateGradientPixmap() 1034 c = xcs[(i+j) * ncolors / t_scale]; in CreateGradientPixmap() 1067 register int myncolors = ncolors * 2; in CreateGradientPixmap() 1252 int ncolors = 0; in CreateGradientPixmapFromString() local 1312 ncolors * sizeof(Pixel)); in CreateGradientPixmapFromString() 1313 for(i=0; i<ncolors; i++) in CreateGradientPixmapFromString() [all …]
|
/dports/x11-wm/fvwm3/fvwm3-1.0.4/libs/ |
H A D | Graphics.c | 846 *width_ret = ncolors; in CalculateGradientDimensions() 851 *height_ret = ncolors; in CalculateGradientDimensions() 859 *width_ret = (ncolors + 1) / 2; in CalculateGradientDimensions() 974 int d = i * ncolors / t_width; in CreateGradientPixmap() 993 int d = j * ncolors / t_height; in CreateGradientPixmap() 1015 c = xcs[(i+j) * ncolors / t_scale]; in CreateGradientPixmap() 1048 register int myncolors = ncolors * 2; in CreateGradientPixmap() 1233 int ncolors = 0; in CreateGradientPixmapFromString() local 1251 colors, perc, nsegs, ncolors, dither); in CreateGradientPixmapFromString() 1293 for(i=0; i<ncolors; i++) in CreateGradientPixmapFromString() [all …]
|
/dports/net/mpich2/mpich2-1.5/src/mpe2/src/graphics/src/ |
H A D | mpe_graphics.c | 472 int *colorRanges, ncolors, colorNum, n; local 492 &ncolors ); 497 for (i=0; i<ncolors; i++) { 503 n = (colorNum < ncolors-1) 545 int a, **boundaryPoints, *ncolors; 604 for (top=0; top < *ncolors; top++) { 821 int ncolors; 831 XBUniformHues( handle->xwin, ncolors + 2 ); 848 white = handle->xwin->cmapping[ncolors+1]; 849 for (i=0; i<ncolors; i++) { [all …]
|
/dports/graphics/gimp-app/gimp-2.10.30/plug-ins/common/ |
H A D | file-xpm.c | 420 cmap = g_new0 (guchar, 4 * xpm_image->ncolors); in parse_colors() 423 for (i = 0, j = 0; i < xpm_image->ncolors; i++) in parse_colors() 615 gint ncolors = 1; in save_image() local 677 ncolors = alpha ? 1 : 0; in save_image() 733 *indexno = ncolors++; in save_image() 753 --ncolors; in save_image() 768 ncolors++; in save_image() 770 colormap = g_new (XpmColor, ncolors); in save_image() 777 for (i = alpha_used ? 1 : 0; i < ncolors; i++) in save_image() 795 colormap = g_new (XpmColor, ncolors); in save_image() [all …]
|
/dports/x11/xscreensaver/xscreensaver-5.44/hacks/ |
H A D | halo.c | 49 int ncolors; member 130 if (st->ncolors < 2) st->ncolors = 2; in halo_init() 131 if (st->ncolors <= 2) mono_p = True; in halo_init() 143 st->colors, &st->ncolors, in halo_init() 147 st->colors, &st->ncolors, in halo_init() 150 if (st->ncolors <= 2) mono_p = True; in halo_init() 161 st->bg_index = st->ncolors / 4; in halo_init() 301 st->fg_index = (st->fg_index + 1) % st->ncolors; in halo_draw() 302 st->bg_index = (st->fg_index + (st->ncolors/2)) % st->ncolors; in halo_draw() 335 if (st->fg_index >= st->ncolors) st->fg_index = 0; in halo_draw() [all …]
|
/dports/graphics/leptonica/leptonica-1.76.0/src/ |
H A D | bmpio.c | 397 l_int32 ncolors, val, stepsize; in pixWriteMemBmp() local 448 ncolors = 0; in pixWriteMemBmp() 451 ncolors = pixcmapGetCount(cmap); in pixWriteMemBmp() 452 cmaplen = ncolors * sizeof(RGBA_QUAD); in pixWriteMemBmp() 457 ncolors = 2; in pixWriteMemBmp() 460 ncolors = 1 << fdepth; in pixWriteMemBmp() 461 cmaplen = ncolors * sizeof(RGBA_QUAD); in pixWriteMemBmp() 464 stepsize = 255 / (ncolors - 1); in pixWriteMemBmp() 466 i < ncolors; in pixWriteMemBmp() 508 bmpih->biClrUsed = convertOnBigEnd32(ncolors); in pixWriteMemBmp() [all …]
|
/dports/devel/tkcvs/tkcvs-8.2.3/tkcvs/ |
H A D | annotate.tcl | 76 set ncolors [expr {[array size agecolors] - 1}] 77 if {$revindex > $ncolors} {set revindex $ncolors} 122 set ncolors [expr {[array size agecolors] - 1}] 123 if {$revindex > $ncolors} {set revindex $ncolors} 303 set ncolors [expr {[array size agecolors] - 1}] 304 if {$nrevs < $ncolors} { 307 set rpc [expr {1 + ($nrevs / $ncolors)}]
|
/dports/x11-toolkits/p5-Tk/Tk-804.035/pTk/mTk/additions/ |
H A D | imgWindow.c | 60 int ncolors; /* Number of color values stored */ member 211 int fileWidth, fileHeight, i, depth, ncolors, nBytes, x, y; local 301 ncolors = visual->map_entries; 302 cdata.colors = (XColor *) ckalloc(sizeof(XColor) * ncolors); 303 cdata.ncolors = ncolors; 318 for (i = 0; i < ncolors; i ++) 325 for (i = 0; i < ncolors; i ++) cdata.colors[i].pixel = i; 329 XQueryColors(Tk_Display(tkwin), cmap, cdata.colors, ncolors);
|
/dports/games/libretro-scummvm/scummvm-7b1e929/backends/platform/libretro/deps/libjpeg/ |
H A D | rdcolmap.c | 52 int ncolors = cinfo->actual_number_of_colors; in add_map_entry() local 56 for (index = 0; index < ncolors; index++) { in add_map_entry() 64 if (ncolors >= (MAXJSAMPLE+1)) in add_map_entry() 68 colormap0[ncolors] = (JSAMPLE) R; in add_map_entry() 69 colormap1[ncolors] = (JSAMPLE) G; in add_map_entry() 70 colormap2[ncolors] = (JSAMPLE) B; in add_map_entry()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/angle/third_party/glmark2/src/src/libjpeg-turbo/ |
H A D | rdcolmap.c | 52 int ncolors = cinfo->actual_number_of_colors; in add_map_entry() local 56 for (index = 0; index < ncolors; index++) { in add_map_entry() 64 if (ncolors >= (MAXJSAMPLE+1)) in add_map_entry() 68 colormap0[ncolors] = (JSAMPLE) R; in add_map_entry() 69 colormap1[ncolors] = (JSAMPLE) G; in add_map_entry() 70 colormap2[ncolors] = (JSAMPLE) B; in add_map_entry()
|
/dports/graphics/freeimage/FreeImage/Source/LibJPEG/ |
H A D | rdcolmap.c | 51 int ncolors = cinfo->actual_number_of_colors; in add_map_entry() local 55 for (index = 0; index < ncolors; index++) { in add_map_entry() 63 if (ncolors >= (MAXJSAMPLE+1)) in add_map_entry() 67 colormap0[ncolors] = (JSAMPLE) R; in add_map_entry() 68 colormap1[ncolors] = (JSAMPLE) G; in add_map_entry() 69 colormap2[ncolors] = (JSAMPLE) B; in add_map_entry()
|
/dports/multimedia/mpeg_encode/mpeg_encode/jpeg/ |
H A D | rdcolmap.c | 51 int ncolors = cinfo->actual_number_of_colors; in add_map_entry() local 55 for (index = 0; index < ncolors; index++) { in add_map_entry() 63 if (ncolors >= (MAXJSAMPLE+1)) in add_map_entry() 67 colormap0[ncolors] = (JSAMPLE) R; in add_map_entry() 68 colormap1[ncolors] = (JSAMPLE) G; in add_map_entry() 69 colormap2[ncolors] = (JSAMPLE) B; in add_map_entry()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/libjpeg_turbo/ |
H A D | rdcolmap.c | 52 int ncolors = cinfo->actual_number_of_colors; in add_map_entry() local 56 for (index = 0; index < ncolors; index++) { in add_map_entry() 64 if (ncolors >= (MAXJSAMPLE + 1)) in add_map_entry() 68 colormap0[ncolors] = (JSAMPLE)R; in add_map_entry() 69 colormap1[ncolors] = (JSAMPLE)G; in add_map_entry() 70 colormap2[ncolors] = (JSAMPLE)B; in add_map_entry()
|
/dports/emulators/mess/mame-mame0226/3rdparty/libjpeg/ |
H A D | rdcolmap.c | 51 int ncolors = cinfo->actual_number_of_colors; in add_map_entry() local 55 for (index = 0; index < ncolors; index++) { in add_map_entry() 63 if (ncolors >= (MAXJSAMPLE+1)) in add_map_entry() 67 colormap0[ncolors] = (JSAMPLE) R; in add_map_entry() 68 colormap1[ncolors] = (JSAMPLE) G; in add_map_entry() 69 colormap2[ncolors] = (JSAMPLE) B; in add_map_entry()
|
/dports/x11-wm/windowmaker/WindowMaker-0.95.9/wrlib/tests/ |
H A D | testgrad.c | 29 int i, rmode = RDitheredRendering, ncolors = 0, cpc = 4; in main() local 74 color_name[ncolors++] = argv[i]; in main() 82 if (ncolors == 0) { in main() 109 colors = malloc(sizeof(RColor *) * (ncolors + 1)); in main() 110 for (i = 0; i < ncolors; i++) { in main() 153 for (i = 0; i < ncolors + 1; i++) in main()
|
/dports/japanese/xv/xv-3.10a/jpeg/ |
H A D | rdcolmap.c | 51 int ncolors = cinfo->actual_number_of_colors; in add_map_entry() local 55 for (index = 0; index < ncolors; index++) { in add_map_entry() 63 if (ncolors >= (MAXJSAMPLE+1)) in add_map_entry() 67 colormap0[ncolors] = (JSAMPLE) R; in add_map_entry() 68 colormap1[ncolors] = (JSAMPLE) G; in add_map_entry() 69 colormap2[ncolors] = (JSAMPLE) B; in add_map_entry()
|