Home
last modified time | relevance | path

Searched refs:ncolors (Results 101 – 125 of 2936) sorted by relevance

12345678910>>...118

/dports/x11-toolkits/fox14/fox-1.4.35/src/
H A Dfxezquantize.cpp53 register FXint ncolors=0; in fxezquantize() local
79 if(ncolors>=maxcolors) return FALSE; in fxezquantize()
83 colormap[ncolors]=color; // Add color to color map in fxezquantize()
84 mapindex[p]=ncolors; // Remember map index of this color in fxezquantize()
85 ncolors++; in fxezquantize()
110 actualcolors=ncolors; in fxezquantize()
/dports/x11-toolkits/fox16/fox-1.6.57/src/
H A Dfxezquantize.cpp53 register FXint ncolors=0; in fxezquantize() local
79 if(ncolors>=maxcolors) return FALSE; in fxezquantize()
83 colormap[ncolors]=color; // Add color to color map in fxezquantize()
84 mapindex[p]=ncolors; // Remember map index of this color in fxezquantize()
85 ncolors++; in fxezquantize()
110 actualcolors=ncolors; in fxezquantize()
/dports/math/reduce/Reduce-svn5758-src/csl/fox/src/
H A Dfxezquantize.cpp53 FXint ncolors=0; in fxezquantize() local
79 if(ncolors>=maxcolors) return FALSE; in fxezquantize()
83 colormap[ncolors]=color; // Add color to color map in fxezquantize()
84 mapindex[p]=ncolors; // Remember map index of this color in fxezquantize()
85 ncolors++; in fxezquantize()
110 actualcolors=ncolors; in fxezquantize()
/dports/graphics/grx/grx249/src/setup/
H A Dcolors.c53 for(i = 0; i < (int)CLRINFO->ncolors; i++) { in GrRefreshColors()
99 if ( ((CLRINFO->ncolors-1)&GrCVALUEMASK) != (CLRINFO->ncolors-1) ) { in _GrResetColors()
104 CLRINFO->ncolors = 1L << cbpp; in _GrResetColors()
118 CLRINFO->nfree = CLRINFO->ncolors - _GR_firstFreeColor; in _GrResetColors()
135 return ((CLRINFO->ncolors-1)&GrCVALUEMASK) == CLRINFO->ncolors-1; in _GrResetColors()
147 switch(CLRINFO->ncolors) { in GrSetRGBcolorMode()
155 CLRINFO->white = CLRINFO->ncolors - 1L; in GrSetRGBcolorMode()
156 for(c = 0; c < CLRINFO->ncolors; c++) loadcolor( in GrSetRGBcolorMode()
187 int ndef = (int)CLRINFO->ncolors - (int)CLRINFO->nfree; in GrAllocColor()
189 for(i = 0; i < (int)CLRINFO->ncolors; i++) { in GrAllocColor()
[all …]
/dports/x11/xscreensaver/xscreensaver-5.44/hacks/
H A Dmoire.c26 int ncolors; member
58 for (i = 0; i < st->ncolors; i++) in moire_init_1()
84 st->ncolors = get_integer_resource (st->dpy, "ncolors", "Integer"); in moire_init_1()
85 if (st->ncolors < 2) st->ncolors = 2; in moire_init_1()
86 oncolors = st->ncolors; in moire_init_1()
109 memset(st->colors, 0, (sizeof (XColor) * (st->ncolors+2))); in moire_init_1()
112 st->colors, &st->ncolors, in moire_init_1()
114 if (st->ncolors != oncolors) in moire_init_1()
116 progname, st->ncolors, oncolors); in moire_init_1()
118 if (st->ncolors <= 2) in moire_init_1()
[all …]
H A Dsquiral.c41 int ncolors; member
88 w->c = (w->c+w->cc) % st->ncolors; in do_worm()
126 st->worms[i].c=R(st->ncolors); in squiral_init_1()
127 if(st->cycle) { st->worms[i].cc=R(3)+st->ncolors; } in squiral_init_1()
158 if( st->ncolors ) { in squiral_init()
160 st->ncolors = 0; in squiral_init()
163 st->ncolors=1; in squiral_init()
167 if (st->ncolors < 0 || st->ncolors > NCOLORSMAX) in squiral_init()
168 st->ncolors = NCOLORSMAX; in squiral_init()
172 if (st->ncolors <= 0) { in squiral_init()
[all …]
H A Drd-bomb.c32 int ncolors; member
262 q[j] = st->colors[(r1>>8) % st->ncolors].pixel; in pixack_frame()
335 if (st->ncolors <= 2) { in random_colors()
337 st->ncolors = 2; in random_colors()
349 if (st->ncolors != 255) { in random_colors()
357 st->ncolors = n; in random_colors()
455 if (st->ncolors <= 0 || st->ncolors >= 255) { in rd_init()
457 st->ncolors = 2047; in rd_init()
459 st->ncolors = 255; in rd_init()
462 if (mono_p || st->ncolors < 2) st->ncolors = 2; in rd_init()
[all …]
/dports/games/xkoules/koules1.4/
H A Dcmap-x11.c55 setcustompalette1 (CONST int ncolors) in setcustompalette1() argument
86 y = (i * ncolors / 32) * 32 / ncolors; in setcustompalette1()
102 y = (i * ncolors / 32) * 32 / ncolors; in setcustompalette1()
118 y = (i * ncolors / 32) * 32 / ncolors; in setcustompalette1()
134 y = (i * ncolors / 32) * 32 / ncolors; in setcustompalette1()
150 y = (i * ncolors / 32) * 32 / ncolors; in setcustompalette1()
165 y = (i * ncolors / 32) * 32 / ncolors; in setcustompalette1()
166 if (ncolors < 8) in setcustompalette1()
182 y = (i * ncolors / 32) * 32 / ncolors; in setcustompalette1()
183 if (ncolors < 8) in setcustompalette1()
[all …]
/dports/editors/ted/Ted-2.23/bitmap/
H A Dbmxwd.c123 if ( xh->ncolors > 0 ) in bmReadX11wd()
131 for ( cp= 0; cp < xh->ncolors; cp++ ) in bmReadX11wd()
179 for ( cp= 0; cp < xh->ncolors; cp++ ) in bmReadX11wd()
220 if ( xh->ncolors > 0 && in bmReadX11wd()
221 ( xh->ncolors < rm+ 1 || in bmReadX11wd()
222 xh->ncolors < gm+ 1 || in bmReadX11wd()
223 xh->ncolors < bm+ 1 ) ) in bmReadX11wd()
268 if ( xh->ncolors > 0 && colors ) in bmReadX11wd()
270 if ( xh->ncolors != 256 ) in bmReadX11wd()
317 if ( xh->ncolors > 0 && colors ) in bmReadX11wd()
[all …]
/dports/x11/xfce4-screensaver/xfce4-screensaver-4.16.0/savers/
H A Dgste-popsquares.c50 int ncolors; member
196 int ncolors; in make_color_ramp() local
199 ncolors = total_ncolors; in make_color_ramp()
204 ncolors = (ncolors / 2) + 1; in make_color_ramp()
212 dh = ((double)h2 - (double)h1) / ncolors; in make_color_ramp()
213 ds = (s2 - s1) / ncolors; in make_color_ramp()
214 dv = (v2 - v1) / ncolors; in make_color_ramp()
216 for (i = 0; i < ncolors; i++) { in make_color_ramp()
236 int ncolors) { in randomize_square_colors() argument
374 pop->priv->ncolors, in setup_colors()
[all …]
/dports/astro/wmglobe/wmglobe-1.3/src/
H A Dmycontext.c65 int i, ncolors, r, g, b; in allocatePseudoColor() local
69 ncolors = cpc * cpc * cpc; in allocatePseudoColor()
75 ncolors = cpc * cpc * cpc; in allocatePseudoColor()
135 for (i = 0; i < ncolors; i++) { in allocatePseudoColor()
150 for (i = 0; i < ncolors; i++) { in allocatePseudoColor()
193 int i, ncolors, r, g, b; in allocateGrayScale() local
197 ncolors = cpc * cpc * cpc; in allocateGrayScale()
201 ncolors = 1 << ctx->depth; in allocateGrayScale()
203 if (ncolors > (1 << ctx->depth)) { in allocateGrayScale()
207 ncolors = cpc * cpc * cpc; in allocateGrayScale()
[all …]
/dports/x11/xlockmore/xlockmore-5.67/modes/
H A Dtube.c101 int ncolors; member
148 tp->cmap, tp->colors, tp->ncolors); in free_tube_screen()
282 tp->ncolors = 0; in init_tube()
306 tp->cmap, tp->colors, tp->ncolors); in init_tube()
310 tp->ncolors = MI_NCOLORS(mi); in init_tube()
311 if (tp->ncolors < 2) in init_tube()
312 tp->ncolors = 2; in init_tube()
313 if (tp->ncolors <= 2) in init_tube()
382 if (tp->ncolors < 2) { in init_tube()
383 tp->ncolors = 2; in init_tube()
[all …]
/dports/x11/libXpm/libXpm-3.5.13/src/
H A Dparse.c106 unsigned int *ncolors, in xpmParseValues() argument
184 || !xpmNextUI(data, ncolors)) in xpmParseValues()
218 unsigned int ncolors, in xpmParseColors() argument
413 xpmFreeColorTable(colorTable, ncolors); in xpmParseColors()
422 unsigned int ncolors, in ParsePixels() argument
457 if (ncolors > 256) { in ParsePixels()
463 for (a = 0; a < ncolors; a++) in ParsePixels()
499 for (a = 0; a < ncolors; a++) { in ParsePixels()
584 for (a = 0; a < ncolors; a++) in ParsePixels()
833 image->ncolors = ncolors; in xpmParseData()
[all …]
H A Dscan.c71 unsigned int ncolors; member
131 unsigned int ncolors; in storePixel() local
137 ncolors = pmap->ncolors; in storePixel()
142 if (i == ncolors) { in storePixel()
152 pmap->ncolors++; in storePixel()
165 if (!pmap->ncolors) { in storeMaskPixel()
166 pmap->ncolors = 1; in storeMaskPixel()
214 pmap.ncolors = 0; in XpmCreateXpmImageFromImage()
344 xpmimage->ncolors = pmap.ncolors; in XpmCreateXpmImageFromImage()
423 unsigned int ncolors, in ScanOtherColors() argument
[all …]
/dports/audio/gogglesmm/gogglesmm-1.2.2/cfox/lib/
H A Dfxezquantize.cpp53 FXint ncolors=0; in fxezquantize() local
79 if(ncolors>=maxcolors) return false; in fxezquantize()
83 colormap[ncolors]=color; // Add color to color map in fxezquantize()
84 mapindex[p]=ncolors; // Remember map index of this color in fxezquantize()
85 ncolors++; in fxezquantize()
110 actualcolors=ncolors; in fxezquantize()
/dports/x11-toolkits/fox17/fox-1.7.77/lib/
H A Dfxezquantize.cpp53 FXint ncolors=0; in fxezquantize() local
79 if(ncolors>=maxcolors) return false; in fxezquantize()
83 colormap[ncolors]=color; // Add color to color map in fxezquantize()
84 mapindex[p]=ncolors; // Remember map index of this color in fxezquantize()
85 ncolors++; in fxezquantize()
110 actualcolors=ncolors; in fxezquantize()
/dports/math/abs/abs-src-0.908/Xpm/
H A Dscan.c62 unsigned int ncolors; member
111 unsigned int ncolors; local
118 ncolors = pmap->ncolors;
123 if (i == ncolors)
135 pmap->ncolors++;
149 if (!pmap->ncolors)
151 pmap->ncolors = 1;
202 pmap.ncolors = 0;
319 xpmimage->ncolors = pmap.ncolors;
389 int ncolors;
[all …]
/dports/science/gnudatalanguage/gdl-1.0.1/src/
H A Dimage.cpp234 DLong ncolors=ctSize; in loadct() local
238 if ( e->KeywordSet ( ncolorsIx ) ) e->AssureLongScalarKWIfPresent ( ncolorsIx, ncolors ); in loadct()
241 if (ncolors < 1) ncolors=1; in loadct()
242 if (ncolors > ctSize) ncolors=ctSize; in loadct()
243 if (bottom+ncolors > ctSize) ncolors=ctSize-bottom; in loadct()
244 for( SizeT i=0, j=bottom ; j<bottom+ncolors; ++i, ++j) { in loadct()
256 DByteGDL* rgbtable = new DByteGDL( dimension(ncolors, 3), BaseGDL::NOZERO); in loadct()
257 for( SizeT i=0, j=bottom ; j<bottom+ncolors; ++i, ++j) in loadct()
260 (*rgbtable)[i+ncolors] = gint[j]; in loadct()
261 (*rgbtable)[i+2*ncolors] = bint[j]; in loadct()
/dports/graphics/leptonica/leptonica-1.76.0/src/
H A Dcolorseg.c234 ncolors, niters); in pixColorSegmentCluster()
307 ncolors = 0; in pixColorSegmentTryCluster()
318 for (k = 0; k < ncolors; k++) { in pixColorSegmentTryCluster()
358 for (k = 0; k < ncolors; k++) { in pixColorSegmentTryCluster()
516 l_int32 i, ncolors, val; in pixColorSegmentClean() local
536 ncolors = pixcmapGetCount(cmap); in pixColorSegmentClean()
537 na = numaCreate(ncolors); in pixColorSegmentClean()
538 for (i = 0; i < ncolors; i++) in pixColorSegmentClean()
549 for (i = 0; i < ncolors; i++) { in pixColorSegmentClean()
588 l_int32 i, ncolors, index, tempindex; in pixColorSegmentRemoveColors() local
[all …]
/dports/x11-toolkits/p5-Tk/Tk-804.035/pTk/mTk/additions/
H A DimgBMP.c419 ncolors = 0;
430 if (i == ncolors) {
431 if (ncolors < 256) {
432 colors[ncolors] = pixel;
434 ncolors++;
440 while (ncolors < 256) {
441 colors[ncolors++] = 0;
446 ncolors = 0;
466 putint(handle, ncolors);
467 putint(handle, ncolors);
[all …]
/dports/sysutils/xvidcap/xvidcap-1.1.7/src/
H A Dcolors.c48 int ncolors, i; in xvc_get_colors() local
52 ncolors = visual->map_entries; in xvc_get_colors()
55 *colors = (XColor *) malloc (sizeof (XColor) * ncolors); in xvc_get_colors()
64 printf ("GetColors() Direct- or TrueColor (%d)\n", ncolors); in xvc_get_colors()
70 for (i = 0; i < ncolors; i++) { in xvc_get_colors()
84 for (i = 0; i < ncolors; i++) { in xvc_get_colors()
89 XQueryColors (dpy, winfo->colormap, *colors, ncolors); in xvc_get_colors()
91 for (i = 0; i < ncolors; i++) { in xvc_get_colors()
97 return (ncolors); in xvc_get_colors()
/dports/x11/libXext/libXext-1.3.4/src/
H A DXcup.c120 int* ncolors) in XcupGetReservedColormapEntries() argument
127 *ncolors = 0; in XcupGetReservedColormapEntries()
165 *ncolors = nentries; in XcupGetReservedColormapEntries()
166 for (i = 0; i < *ncolors; i++, cd++) { in XcupGetReservedColormapEntries()
190 int ncolors) in XcupStoreColors() argument
207 req->length += (ncolors * SIZEOF(xColorItem)) >> 2; in XcupStoreColors()
209 for (i = 0, xcp = colors_in_out; i < ncolors; i++, xcp++) { in XcupStoreColors()
226 if ((nentries == ncolors) && in XcupStoreColors()
230 if (ncolors > 256) in XcupStoreColors()
247 for (i = 0, xcp = colors_in_out, cs = rbufp; i < ncolors; i++, xcp++, cs++) { in XcupStoreColors()
/dports/x11-toolkits/gtk20/gtk+-2.24.33/gdk/win32/
H A Dgdkcolor-win32.c651 gint ncolors) in gdk_colormap_change() argument
770 gint ncolors) in gdk_colormap_free_colors() argument
784 for (i = 0; i < ncolors; i++) in gdk_colormap_free_colors()
843 gint ncolors, in gdk_colormap_alloc_colors_writeable() argument
858 for (i=0; i<ncolors; i++) in gdk_colormap_alloc_colors_writeable()
901 gint ncolors, in gdk_colormap_alloc_colors_private() argument
917 for (i = 0; i < ncolors; i++) in gdk_colormap_alloc_colors_private()
972 for (i=0; i<ncolors; i++) in gdk_colormap_alloc_colors_private()
998 gint ncolors, in gdk_colormap_alloc_colors_shared() argument
1011 for (i = 0; i < ncolors; i++) in gdk_colormap_alloc_colors_shared()
[all …]
/dports/print/gimp-gutenprint/gutenprint-5.3.3/include/gutenprint/
H A Dweave.h81 int ncolors; member
86 int ncolors; member
91 int ncolors; member
96 int ncolors; member
101 int ncolors; member
127 int vertical, int ncolors, int bitwidth,
/dports/print/gutenprint/gutenprint-5.3.3/include/gutenprint/
H A Dweave.h81 int ncolors; member
86 int ncolors; member
91 int ncolors; member
96 int ncolors; member
101 int ncolors; member
127 int vertical, int ncolors, int bitwidth,

12345678910>>...118