Home
last modified time | relevance | path

Searched refs:ncolors (Results 26 – 50 of 2936) sorted by relevance

12345678910>>...118

/dports/graphics/devil/devil-1.7.8/examples/sdl_example/
H A Dsdl_test.c45 int ncolors; in DrawPict() local
63 ncolors = picture->format->palette->ncolors; in DrawPict()
67 ncolors*sizeof(SDL_Color)); in DrawPict()
72 ncolors = 256; in DrawPict()
176 for ( i=0; i<ncolors; ++i ) { in DrawPict()
183 for ( c=0; c<ncolors; ++c ) { in DrawPict()
198 for ( i=0; i<ncolors; ++i ) { in DrawPict()
206 for ( c=0; c<ncolors; ++c ) { in DrawPict()
217 for ( i=0; i<ncolors; ++i ) { in DrawPict()
225 for ( i=0; i<ncolors; ++i ) { in DrawPict()
[all …]
/dports/devel/sdl12/SDL-1.2.15/test/
H A Dtestwin.c27 int ncolors; in DrawPict() local
44 ncolors = picture->format->palette->ncolors; in DrawPict()
48 ncolors*sizeof(SDL_Color)); in DrawPict()
53 ncolors = 256; in DrawPict()
157 for ( i=0; i<ncolors; ++i ) { in DrawPict()
164 for ( c=0; c<ncolors; ++c ) { in DrawPict()
179 for ( i=0; i<ncolors; ++i ) { in DrawPict()
187 for ( c=0; c<ncolors; ++c ) { in DrawPict()
198 for ( i=0; i<ncolors; ++i ) { in DrawPict()
206 for ( i=0; i<ncolors; ++i ) { in DrawPict()
[all …]
/dports/devel/sdl12-compat/sdl12-compat-release-1.2.52/test/
H A Dtestwin.c27 int ncolors; in DrawPict() local
44 ncolors = picture->format->palette->ncolors; in DrawPict()
48 ncolors*sizeof(SDL_Color)); in DrawPict()
53 ncolors = 256; in DrawPict()
157 for ( i=0; i<ncolors; ++i ) { in DrawPict()
164 for ( c=0; c<ncolors; ++c ) { in DrawPict()
179 for ( i=0; i<ncolors; ++i ) { in DrawPict()
187 for ( c=0; c<ncolors; ++c ) { in DrawPict()
198 for ( i=0; i<ncolors; ++i ) { in DrawPict()
206 for ( i=0; i<ncolors; ++i ) { in DrawPict()
[all …]
/dports/science/cp2k/cp2k-2e995eec7fd208c8a72d9544807bd8b8ba8cd1cc/src/
H A Dkg_vertex_coloring_methods.F180 ncolors = 0
201 IF (newcolor .GT. ncolors) ncolors = newcolor
235 DO i = 1, ncolors
345 SUBROUTINE kg_dsatur(kg_env, graph, ncolors) argument
364 ncolors = 0
372 ncolors = 1
406 IF (this%color .GT. ncolors) ncolors = this%color
471 low_col = ncolors + 1
523 ALLOCATE (color_present(ncolors))
555 ncolors = 0
[all …]
/dports/science/cp2k-data/cp2k-7.1.0/src/
H A Dkg_vertex_coloring_methods.F180 ncolors = 0
201 IF (newcolor .GT. ncolors) ncolors = newcolor
235 DO i = 1, ncolors
345 SUBROUTINE kg_dsatur(kg_env, graph, ncolors) argument
364 ncolors = 0
372 ncolors = 1
406 IF (this%color .GT. ncolors) ncolors = this%color
471 low_col = ncolors + 1
523 ALLOCATE (color_present(ncolors))
555 ncolors = 0
[all …]
/dports/graphics/netpbm/netpbm-10.91.01/converter/other/pnmtopalm/
H A Dpalmcolormap.c215 cmP->ncolors = 232; in palmcolor_build_default_8bit_colormap()
218 qsort(cmP->color_entries, cmP->ncolors, sizeof(ColormapEntry), in palmcolor_build_default_8bit_colormap()
237 colormapP->ncolors = 0; /* initial value */ in palmcolor_build_custom_8bit_colormap()
248 colormapP->color_entries, colormapP->ncolors, in palmcolor_build_custom_8bit_colormap()
251 if (colormapP->ncolors >= colormapP->nentries) in palmcolor_build_custom_8bit_colormap()
262 qsort(colormapP->color_entries, colormapP->ncolors, in palmcolor_build_custom_8bit_colormap()
276 unsigned short ncolors; in palmcolor_read_colormap() local
280 rc = pm_readbigshort(ifP, (short *) &ncolors); in palmcolor_read_colormap()
290 colormapP->nentries = ncolors; in palmcolor_read_colormap()
293 for (i = 0, error = FALSE; i < ncolors && !error; ++i) { in palmcolor_read_colormap()
[all …]
/dports/graphics/xli/xli-2006-11-10/
H A Dxpixmap.c32 for (i = 0; i < ncolors; i++) in freeCtable()
110 *format = *w = *h = *ncolors = 0; in isXpixmap()
134 *ncolors = value; in isXpixmap()
270 ncolors = tncolors; in xpixmapLoad()
275 image->rgb.used = ncolors; in xpixmapLoad()
315 freeCtable(ctable, ncolors); in xpixmapLoad()
360 for (a = 0; a < ncolors; a++) { in xpixmapLoad()
370 freeCtable(ctable, ncolors); in xpixmapLoad()
485 for (a = 0; a < ncolors; a++) { in xpixmapLoad()
497 for (a = 0; a < ncolors; a++) { in xpixmapLoad()
[all …]
/dports/math/abs/abs-src-0.908/Xpm/
H A Dparse.c93 unsigned int width, height, ncolors, cpp; local
196 image->ncolors = ncolors;
304 || !xpmNextUI(data, ncolors))
338 unsigned int ncolors;
370 xpmFreeColorTable(colorTable, ncolors);
506 if (a < ncolors - 1)
519 unsigned int ncolors;
552 for (a = 0; a < ncolors; a++)
586 for (a = 0; a < ncolors; a++)
667 for (a = 0; a < ncolors; a++)
[all …]
/dports/devel/upp/upp/uppsrc/plugin/bmp/
H A DBmpWrite.cpp23 int ncolors = 0; in Start() local
25 case 1: format.Set1mf(); ncolors = 2; break; in Start()
26 case 4: format.Set4mf(); ncolors = 16; break; in Start()
27 case 8: format.Set8(); ncolors = 256; break; in Start()
32 if(ncolors) { in Start()
34 for(int i = 0; i < ncolors; i++) { in Start()
36 p.rgbRed = p.rgbGreen = p.rgbBlue = 255 * i / (ncolors - 1); in Start()
40 for(int i = 0; i < ncolors; i++) { in Start()
54 ncolors = 3; in Start()
67 bmfh.bfOffBits = sizeof(bmfh) + sizeof(BMP_INFOHEADER) + sizeof(BMP_RGB) * ncolors; in Start()
[all …]
/dports/x11-toolkits/fox14/fox-1.4.35/src/
H A Dfxxpmio.cpp120 FXint i,j,ncolors,cpp,c; in fxloadXPM() local
150 if(ncolors>16384) return FALSE; in fxloadXPM()
155 for(c=0; c<ncolors; c++){ in fxloadXPM()
199 for(c=0; c<ncolors; c++){ in fxloadXPM()
219 FXint i,j,ncolors,cpp,c; in fxloadXPM() local
247 if(ncolors>16384) return FALSE; in fxloadXPM()
252 for(c=0; c<ncolors; c++){ in fxloadXPM()
297 for(c=0; c<ncolors; c++){ in fxloadXPM()
350 FXASSERT(ncolors<=256); in fxsaveXPM()
353 cpp=(ncolors>MAXPRINTABLE)?2:1; in fxsaveXPM()
[all …]
/dports/math/reduce/Reduce-svn5758-src/csl/fox/src/
H A Dfxxpmio.cpp121 FXint i,j,ncolors,cpp,c; in fxloadXPM() local
151 if(ncolors>16384) return false; in fxloadXPM()
156 for(c=0; c<ncolors; c++){ in fxloadXPM()
200 for(c=0; c<ncolors; c++){ in fxloadXPM()
220 FXint i,j,ncolors,cpp,c; in fxloadXPM() local
248 if(ncolors>16384) return false; in fxloadXPM()
253 for(c=0; c<ncolors; c++){ in fxloadXPM()
298 for(c=0; c<ncolors; c++){ in fxloadXPM()
351 FXASSERT(ncolors<=256); in fxsaveXPM()
354 cpp=(ncolors>MAXPRINTABLE)?2:1; in fxsaveXPM()
[all …]
/dports/x11-toolkits/fox16/fox-1.6.57/src/
H A Dfxxpmio.cpp121 FXint i,j,ncolors,cpp,c; in fxloadXPM() local
151 if(ncolors>16384) return false; in fxloadXPM()
156 for(c=0; c<ncolors; c++){ in fxloadXPM()
200 for(c=0; c<ncolors; c++){ in fxloadXPM()
220 FXint i,j,ncolors,cpp,c; in fxloadXPM() local
248 if(ncolors>16384) return false; in fxloadXPM()
253 for(c=0; c<ncolors; c++){ in fxloadXPM()
298 for(c=0; c<ncolors; c++){ in fxloadXPM()
351 FXASSERT(ncolors<=256); in fxsaveXPM()
354 cpp=(ncolors>MAXPRINTABLE)?2:1; in fxsaveXPM()
[all …]
/dports/x11-toolkits/lesstif/lesstif-0.95.2/lib/Xm-2.1/
H A DXpmparse.c190 || !xpmNextUI(data, ncolors))
224 unsigned int ncolors;
254 xpmFreeColorTable(colorTable, ncolors);
259 xpmFreeColorTable(colorTable, ncolors);
319 xpmFreeColorTable(colorTable, ncolors);
399 unsigned int ncolors;
434 if (ncolors > 256) {
440 for (a = 0; a < ncolors; a++)
476 for (a = 0; a < ncolors; a++) {
549 for (a = 0; a < ncolors; a++)
[all …]
/dports/devel/upp/upp/bazaar/PixRaster/lib/
H A Dcolormap.c139 l_int32 ncolors, i; in pixcmapCreateRandom() local
151 ncolors = 1 << depth; in pixcmapCreateRandom()
534 l_int32 ncolors; in pixcmapGetMinDepth() local
545 if (ncolors <= 4) in pixcmapGetMinDepth()
1139 (ncolors < 2 || ncolors > 256)) in pixcmapReadStream()
1211 l_int32 i, ncolors; in pixcmapToArrays() local
1323 *pncolors = ncolors; in pixcmapSerializeToMemory()
1361 if (ncolors > 256) in pixcmapDeserializeFromMemory()
1370 if (ncolors > 16) in pixcmapDeserializeFromMemory()
1372 else if (ncolors > 4) in pixcmapDeserializeFromMemory()
[all …]
/dports/x11/xscreensaver/xscreensaver-5.44/hacks/
H A Ddeco.c29 int ncolors; member
64 int ncolors = 8; in make_mondrian_colormap() local
73 for (i = 0; i < ncolors; i++) in make_mondrian_colormap()
107 if (ncolors > 0) in make_mondrian_colormap()
108 for (i = 0; i < ncolors; i++) in make_mondrian_colormap()
111 if (ncolors > 0) in make_mondrian_colormap()
116 for (i = 0; i < ncolors; i++) in make_mondrian_colormap()
124 ncolors = i; in make_mondrian_colormap()
130 ncolors = *ncolorsP; in make_mondrian_colormap()
143 *ncolorsP = ncolors; in make_mondrian_colormap()
[all …]
/dports/cad/netgen/netgen-6.2.2105/ng/Togl2.1/Xmu/
H A DCrCmap.c170 ncolors = colormap->red_max;
171 if (colormap->green_max > ncolors)
172 ncolors = colormap->green_max;
173 if (colormap->blue_max > ncolors)
174 ncolors = colormap->blue_max;
175 ncolors++;
185 if (ncolors <= 1 || ncolors > vinfo->colormap_size) return 0;
210 vinfo->colormap_size, ncolors)) == 0) {
369 if (npixels == ncolors) {
374 while (count < ncolors && ncolors - count <= *rem)
[all …]
/dports/graphics/R-cran-rgdal/rgdal/R/
H A DSGDF2RGB.R1 SGDF2PCT <- function(x, ncolors=256, adjust.bands=TRUE) { argument
6 if (ncolors > 256) {
8 ncolors <- 256
10 if (ncolors < 2) {
12 ncolors <- 2
38 if (ncolors < 256) bmax <- bmin + ncolors
54 dx <- RGB2PCT(GTiff3B, band=1:3, ncolors=ncolors, set.ctab=FALSE)
59 res <- list(idx=idx, ct=ct[1:ncolors])
/dports/print/cups-filters/cups-filters-1.28.10/cupsfilters/
H A Dimage-gif.c80 ncolors, /* Bits per pixel */ in _cupsImageReadGIF() local
100 ncolors = 2 << (buf[10] & 0x07); in _cupsImageReadGIF()
144 ncolors = 2 << (buf[8] & 0x07); in _cupsImageReadGIF()
170 for (i = ncolors - 1; i >= 0; i --) in _cupsImageReadGIF()
174 for (i = ncolors - 1; i >= 0; i --) in _cupsImageReadGIF()
178 for (i = ncolors - 1; i >= 0; i --) in _cupsImageReadGIF()
185 for (i = ncolors - 1; i >= 0; i --) in _cupsImageReadGIF()
406 for (i = 0; i < ncolors; i ++) in gif_read_cmap()
414 for (i = 0; i < ncolors; i ++) in gif_read_cmap()
418 if (i == ncolors) in gif_read_cmap()
[all …]
/dports/audio/gogglesmm/gogglesmm-1.2.2/cfox/lib/
H A Dfxxpmio.cpp132 FXint i,j,ncolors,cpp,c; in fxloadXPM() local
162 if(ncolors>16384) return false; in fxloadXPM()
167 for(c=0; c<ncolors; c++){ in fxloadXPM()
211 for(c=0; c<ncolors; c++){ in fxloadXPM()
231 FXint i,j,ncolors,cpp,c; in fxloadXPM() local
259 if(ncolors>16384) return false; in fxloadXPM()
264 for(c=0; c<ncolors; c++){ in fxloadXPM()
309 for(c=0; c<ncolors; c++){ in fxloadXPM()
362 FXASSERT(ncolors<=256); in fxsaveXPM()
365 cpp=(ncolors>MAXPRINTABLE)?2:1; in fxsaveXPM()
[all …]
/dports/print/ghostscript9-x11/ghostscript-9.06/cups/libs/filter/
H A Dimage-gif.c85 ncolors, /* Bits per pixel */ in _cupsImageReadGIF() local
104 ncolors = 2 << (buf[10] & 0x07); in _cupsImageReadGIF()
141 ncolors = 2 << (buf[8] & 0x07); in _cupsImageReadGIF()
167 for (i = ncolors - 1; i >= 0; i --) in _cupsImageReadGIF()
171 for (i = ncolors - 1; i >= 0; i --) in _cupsImageReadGIF()
175 for (i = ncolors - 1; i >= 0; i --) in _cupsImageReadGIF()
182 for (i = ncolors - 1; i >= 0; i --) in _cupsImageReadGIF()
403 for (i = 0; i < ncolors; i ++) in gif_read_cmap()
411 for (i = 0; i < ncolors; i ++) in gif_read_cmap()
415 if (i == ncolors) in gif_read_cmap()
[all …]
/dports/print/ghostscript9-base/ghostscript-9.06/cups/libs/filter/
H A Dimage-gif.c85 ncolors, /* Bits per pixel */ in _cupsImageReadGIF() local
104 ncolors = 2 << (buf[10] & 0x07); in _cupsImageReadGIF()
141 ncolors = 2 << (buf[8] & 0x07); in _cupsImageReadGIF()
167 for (i = ncolors - 1; i >= 0; i --) in _cupsImageReadGIF()
171 for (i = ncolors - 1; i >= 0; i --) in _cupsImageReadGIF()
175 for (i = ncolors - 1; i >= 0; i --) in _cupsImageReadGIF()
182 for (i = ncolors - 1; i >= 0; i --) in _cupsImageReadGIF()
403 for (i = 0; i < ncolors; i ++) in gif_read_cmap()
411 for (i = 0; i < ncolors; i ++) in gif_read_cmap()
415 if (i == ncolors) in gif_read_cmap()
[all …]
/dports/x11-toolkits/fox17/fox-1.7.77/lib/
H A Dfxxpmio.cpp132 FXint i,j,ncolors,cpp,c; in fxloadXPM() local
162 if(ncolors>16384) return false; in fxloadXPM()
167 for(c=0; c<ncolors; c++){ in fxloadXPM()
211 for(c=0; c<ncolors; c++){ in fxloadXPM()
231 FXint i,j,ncolors,cpp,c; in fxloadXPM() local
259 if(ncolors>16384) return false; in fxloadXPM()
264 for(c=0; c<ncolors; c++){ in fxloadXPM()
309 for(c=0; c<ncolors; c++){ in fxloadXPM()
362 FXASSERT(ncolors<=256); in fxsaveXPM()
365 cpp=(ncolors>MAXPRINTABLE)?2:1; in fxsaveXPM()
[all …]
/dports/x11-toolkits/libXmu/libXmu-1.1.3/src/
H A DCrCmap.c186 ncolors = colormap->red_max; in readwrite_map()
187 if (colormap->green_max > ncolors) in readwrite_map()
188 ncolors = colormap->green_max; in readwrite_map()
189 if (colormap->blue_max > ncolors) in readwrite_map()
190 ncolors = colormap->blue_max; in readwrite_map()
191 ncolors++; in readwrite_map()
201 if (ncolors <= 1 || (int) ncolors > vinfo->colormap_size) return 0; in readwrite_map()
226 vinfo->colormap_size, ncolors)) == 0) { in readwrite_map()
390 if (npixels == ncolors) { in contiguous()
395 while (count < ncolors && ncolors - count <= *rem) in contiguous()
[all …]
/dports/games/libretro-nxengine/nxengine-libretro-10c4381/nxengine/sdl/video/
H A DSDL_video.c67 int firstcolor, int ncolors) in LRSetPalette_logical() argument
74 ncolors * sizeof(*colors)); in LRSetPalette_logical()
90 SDL_Color *colors, int firstcolor, int ncolors) in LRSDL_SetPalette() argument
109 if ( ncolors > (palsize - firstcolor) ) { in LRSDL_SetPalette()
110 ncolors = (palsize - firstcolor); in LRSDL_SetPalette()
121 LRSetPalette_logical(screen, colors, firstcolor, ncolors); in LRSDL_SetPalette()
127 int ncolors) in SDL_SetColors() argument
130 colors, firstcolor, ncolors); in SDL_SetColors()
/dports/x11-wm/amiwm/amiwm0.21pl2/libami/
H A Diconutil.c55 int transp, ncolors, flags; in image_to_pixmap() local
59 ncolors = 1+*pal++; in image_to_pixmap()
64 ncolors = 0; in image_to_pixmap()
66 if(!ncolors) { in image_to_pixmap()
68 } else if(!cs || !(cs->colors = calloc(ncolors, sizeof(unsigned long)))) { in image_to_pixmap()
69 ncolors = 0; in image_to_pixmap()
72 for(x=0; x<ncolors; x++) { in image_to_pixmap()
84 cs->ncolors = ncolors; in image_to_pixmap()
85 if(ncolors) memcpy(cs->colors, ic, ncolors*sizeof(unsigned long)); in image_to_pixmap()
122 XFreeColors(dpy, cs->cmap, cs->colors, cs->ncolors, 0); in free_color_store()

12345678910>>...118