/dports/graphics/netpbm/netpbm-10.91.01/converter/other/ |
H A D | pamtouil.c | 197 unsigned int const ncolors, in genCmap() argument 291 unsigned int const ncolors) { in writeColormap() argument 299 for (i = 0; i < ncolors; ++i) in writeColormap() 314 for (i = 0; i < ncolors; ++i) in writeColormap() 333 unsigned int const ncolors, in writeRaster() argument 371 unsigned int const ncolors) { in freeCmap() argument 375 for (i = 0; i < ncolors; ++i) { in freeCmap() 393 unsigned int ncolors; in main() local 413 pm_message("%u colors found", ncolors); in main() 425 writeColormap(cmdline.outname, cmap, ncolors); in main() [all …]
|
/dports/graphics/leptonica/leptonica-1.76.0/prog/ |
H A D | colorcontent_reg.c | 41 l_int32 ncolors; in main() local 65 pixNumColors(pix3, 1, &ncolors); in main() 66 regTestCompareValues(rp, ncolors, 10, 0.0); /* 3 */ in main() 73 pixNumColors(pix1, 1, &ncolors); /* >255, so should give 0 */ in main() 74 regTestCompareValues(rp, ncolors, 0, 0.0); /* 4 */ in main() 78 ncolors = pixcmapGetCount(pixGetColormap(pix2)); in main() 79 regTestCompareValues(rp, ncolors, 20, 0.0); /* 6 */ in main() 86 pixNumSignificantGrayColors(pix2, 20, 236, 0.0001, 1, &ncolors); in main() 87 regTestCompareValues(rp, ncolors, 219, 0.0); /* 7 */ in main()
|
/dports/games/vultures-eye/vulture-2.3.67/slashem/win/X11/ |
H A D | tile2x11.c | 30 for (i = 0; i < header.ncolors; i++) { 37 if (i == header.ncolors) { 74 for (j = 0; j < header.ncolors; j++) in merge_text_colormap() 85 if (j == header.ncolors) { /* couldn't find it */ in merge_text_colormap() 95 header.ncolors++; in merge_text_colormap() 142 if (header.ncolors > 4096) { 162 header.ncolors, 164 for (i = 0; i < header.ncolors; i++) { 165 if (header.ncolors > 64) { 185 if (header.ncolors > 64) { [all …]
|
/dports/x11/xwd/xwd-1.0.7/ |
H A D | xwd.c | 234 int i , ncolors = 256 ; in Get24bitDirectColors() local 239 for(i=0 ; i < ncolors ; i++) in Get24bitDirectColors() 245 return ncolors ; in Get24bitDirectColors() 262 int ncolors, i; in Window_Dump() local 450 header.ncolors = ncolors; in Window_Dump() 557 int i,ncolors ; in ReadColors() local 572 for (i=0; i<ncolors; i++) { in ReadColors() 586 for (i=0; i<ncolors; i++) { in ReadColors() 594 return(ncolors); in ReadColors() 602 int i, ncolors; in Get_XColors() local [all …]
|
/dports/databases/grass7/grass-7.8.6/lib/display/ |
H A D | tran_colr.c | 14 static int ncolors; variable 53 ncolors = G_num_standard_colors(); in translate_or_add_color() 54 nalloc = 2 * ncolors; in translate_or_add_color() 56 for (i = 0; i < ncolors; i++) in translate_or_add_color() 69 for (i = 1; i < ncolors; i++) in translate_or_add_color() 73 if (ncolors >= nalloc) { in translate_or_add_color() 78 index = ncolors++; in translate_or_add_color() 153 if (color < ncolors) { in D_use_color() 200 if (color >= ncolors) in D_color_number_to_RGB()
|
/dports/graphics/xv-m17n/xv-3.10a/ |
H A D | xvrle.c | 80 ncolors = getc(fp); 96 ncolors, pixelbits, ncmap, cmaplen); 101 for (i=0; i<ncolors; i++) { 179 if (ncolors == 0 || ncolors == 2) 212 if (ncolors == 1) { 222 read_rle(fp, img, w, h, ncolors, ncmap); 234 imagelen = (ncolors==1) ? w*h : w*h*3; 292 static void read_rle(fp, img, w, h, ncolors, ncmap) in read_rle() argument 295 int w, h, ncolors, ncmap; 302 if (ncolors == 1) bperpix = 1; [all …]
|
/dports/japanese/xv/xv-3.10a/ |
H A D | xvrle.c | 80 ncolors = getc(fp); 96 ncolors, pixelbits, ncmap, cmaplen); 101 for (i=0; i<ncolors; i++) { 179 if (ncolors == 0 || ncolors == 2) 212 if (ncolors == 1) { 222 read_rle(fp, img, w, h, ncolors, ncmap); 234 imagelen = (ncolors==1) ? w*h : w*h*3; 292 static void read_rle(fp, img, w, h, ncolors, ncmap) in read_rle() argument 295 int w, h, ncolors, ncmap; 302 if (ncolors == 1) bperpix = 1; [all …]
|
/dports/graphics/xv/xv-3.10a/ |
H A D | xvrle.c | 80 ncolors = getc(fp); 96 ncolors, pixelbits, ncmap, cmaplen); 101 for (i=0; i<ncolors; i++) { 179 if (ncolors == 0 || ncolors == 2) 212 if (ncolors == 1) { 222 read_rle(fp, img, w, h, ncolors, ncmap); 234 imagelen = (ncolors==1) ? w*h : w*h*3; 292 static void read_rle(fp, img, w, h, ncolors, ncmap) in read_rle() argument 295 int w, h, ncolors, ncmap; 302 if (ncolors == 1) bperpix = 1; [all …]
|
/dports/x11-toolkits/xmhtml/XmHTML-1.1.10/lib/common/ |
H A D | colors.c | 526 int ncolors = 0, nlines = 0; in _XmHTMLAddPalette() local 555 GETR(cmap[ncolors]) = r; in _XmHTMLAddPalette() 556 GETG(cmap[ncolors]) = g; in _XmHTMLAddPalette() 557 GETB(cmap[ncolors]) = b; in _XmHTMLAddPalette() 558 ncolors++; in _XmHTMLAddPalette() 600 for(i = 0; i < ncolors; i++) in _XmHTMLAddPalette() 608 ncolors = XCCAddPalette(HTML_ATTR(xcc), cmap, ncolors); in _XmHTMLAddPalette() 619 "colors\n", ncolors)); in _XmHTMLAddPalette() 628 int i, idx, ncolors; in CreateColormap() local 647 for(i = 0; i < ncolors; i++) in CreateColormap() [all …]
|
/dports/science/afni/afni-AFNI_21.3.16/src/XmHTML/lib/common/ |
H A D | colors.c | 522 int ncolors = 0, nlines = 0; in _XmHTMLAddPalette() local 551 GETR(cmap[ncolors]) = r; in _XmHTMLAddPalette() 552 GETG(cmap[ncolors]) = g; in _XmHTMLAddPalette() 553 GETB(cmap[ncolors]) = b; in _XmHTMLAddPalette() 554 ncolors++; in _XmHTMLAddPalette() 596 for(i = 0; i < ncolors; i++) in _XmHTMLAddPalette() 604 ncolors = XCCAddPalette(HTML_ATTR(xcc), cmap, ncolors); in _XmHTMLAddPalette() 615 "colors\n", ncolors)); in _XmHTMLAddPalette() 624 int i, idx, ncolors; in CreateColormap() local 643 for(i = 0; i < ncolors; i++) in CreateColormap() [all …]
|
/dports/editors/ted/Ted-2.23/bitmap/ |
H A D | bmxpm.c | 164 if ( image.ncolors > 256* 256 ) in bmReadXpmFile() 170 if ( image.ncolors > 256 && image.ncolors < 256* 256 ) in bmReadXpmFile() 222 LLDEB(image.cpp,image.ncolors); in bmReadXpmFile() 365 int ncolors ) in bmXpmAllocColors() argument 373 for ( col= 0; col < ncolors; col++ ) in bmXpmAllocColors() 383 xpmi->ncolors= ncolors; in bmXpmAllocColors() 469 while( block < image->ncolors ) in bmXpmFillPalette() 478 { LDEB(image->ncolors); return -1; } in bmXpmFillPalette() 537 image.ncolors= 0; in bmWriteXpmFile() 547 image.ncolors= cp->cpColorCount; in bmWriteXpmFile() [all …]
|
/dports/graphics/netpbm/netpbm-10.91.01/lib/ |
H A D | libppmcmap.c | 605 int ncolors; 611 for( i = 0; i < ncolors; i++ ) { 627 int ncolors, row, col; local 639 ncolors = -1; 645 ++ncolors; 652 *ncolorsP = ncolors; 680 ncolors = -1; 686 ++ncolors; 694 *ncolorsP = ncolors; 741 int const ncolors, in ppm_sortcolorrow() argument [all …]
|
/dports/x11-wm/windowmaker/WindowMaker-0.95.9/wrlib/ |
H A D | context.c | 99 if (ctx->ncolors <= 1) { in allocateStandardPseudoColor() 166 for (i = 0; i < ncolors; i++) { in allocateColor() 190 for (i = 0; i < ncolors; i++) { in allocateColor() 235 int i, ncolors, r, g, b; in allocatePseudoColor() local 238 ncolors = cpc * cpc * cpc; in allocatePseudoColor() 243 ncolors = cpc * cpc * cpc; in allocatePseudoColor() 309 ctx->ncolors = ncolors; in allocatePseudoColor() 322 int i, ncolors; in allocateGrayScale() local 325 ncolors = cpc * cpc * cpc; in allocateGrayScale() 329 ncolors = 1 << ctx->depth; in allocateGrayScale() [all …]
|
/dports/x11-wm/libwraster/WindowMaker-0.95.9/wrlib/ |
H A D | context.c | 99 if (ctx->ncolors <= 1) { in allocateStandardPseudoColor() 166 for (i = 0; i < ncolors; i++) { in allocateColor() 190 for (i = 0; i < ncolors; i++) { in allocateColor() 235 int i, ncolors, r, g, b; in allocatePseudoColor() local 238 ncolors = cpc * cpc * cpc; in allocatePseudoColor() 243 ncolors = cpc * cpc * cpc; in allocatePseudoColor() 309 ctx->ncolors = ncolors; in allocatePseudoColor() 322 int i, ncolors; in allocateGrayScale() local 325 ncolors = cpc * cpc * cpc; in allocateGrayScale() 329 ncolors = 1 << ctx->depth; in allocateGrayScale() [all …]
|
/dports/x11-toolkits/p5-Prima/Prima-1.63/img/ |
H A D | codec_Xpm.c | 215 for ( i = 0; i < l-> image. ncolors; i++) in load() 260 i-> palSize = l-> image. ncolors; in load() 268 i-> palSize = l-> image. ncolors; in load() 451 image. ncolors = hash_count( hash); in save() 452 image. cpp = ( image. ncolors <= 4096) ? in save() 453 (( image. ncolors <= 64) ? 1 : 2) : in save() 454 (( image. ncolors <= 262144) ? 3 : 4); in save() 468 int x, y, type = i-> type & imBPP, val = 0, transcolor = -1, ncolors = image. ncolors; in save() local 473 if ( mask) transcolor = image. ncolors++; in save() 505 image. cpp = ( image. ncolors > 64) ? 2 : 1; in save() [all …]
|
/dports/x11/xscreensaver/xscreensaver-5.44/hacks/ |
H A D | imsmap.c | 34 int ncolors; member 59 ? st->ncolors - 1 - ((-(height)) % st->ncolors) \ 61 : ((height) >= st->ncolors \ 63 ? (height) % st->ncolors \ 64 : st->ncolors-1) \ 177 if (st->ncolors <= 2) st->ncolors = 0; in init_map() 178 if (st->ncolors == 0) mono_p = True; in init_map() 179 if (st->ncolors > 255) st->ncolors = 255; /* too many look bad */ in init_map() 191 if (st->ncolors < 1) st->ncolors = 1; in init_map() 198 if (st->ncolors <= 2) in init_map() [all …]
|
/dports/x11-toolkits/fltk/fltk-1.3.8/src/ |
H A D | Fl_XPM_Image.cxx | 64 int W,H,ncolors,chars_per_pixel; in Fl_XPM_Image() local 118 …if ((!i) && (sscanf(buffer,"%d%d%d%d", &W, &H, &ncolors, &chars_per_pixel) < 4)) goto bad_data; //… in Fl_XPM_Image() 119 …else if ((i > (ncolors<0?1:ncolors)) && (myp-buffer-1<W*chars_per_pixel)) goto bad_data; // pic se… in Fl_XPM_Image() 120 else if (myp-buffer-1<(ncolors<0?-ncolors*4:chars_per_pixel)) goto bad_data; // color segment in Fl_XPM_Image() 129 if ((!i) || (i<1+(ncolors<0?1:ncolors)+H)) goto bad_data; in Fl_XPM_Image()
|
/dports/games/jaggedalliance2/ja2-stracciatella-0.18.0/dependencies/lib-SDL2-2.0.8-mingw/test/ |
H A D | testautomation_pixels.c | 324 int ncolors; in pixels_allocFreePalette() local 332 ncolors = 1; in pixels_allocFreePalette() 336 ncolors = 2; in pixels_allocFreePalette() 340 ncolors = SDLTest_RandomIntegerInRange(8, 16); in pixels_allocFreePalette() 344 result = SDL_AllocPalette(ncolors); in pixels_allocFreePalette() 345 SDLTest_AssertPass("Call to SDL_AllocPalette(%d)", ncolors); in pixels_allocFreePalette() 348 …LTest_AssertCheck(result->ncolors == ncolors, "Verify value of result.ncolors; expected: %u, got %… in pixels_allocFreePalette() 349 if (result->ncolors > 0) { in pixels_allocFreePalette() 352 for(i = 0; i < result->ncolors; i++) { in pixels_allocFreePalette() 369 for (ncolors = 0; ncolors > -3; ncolors--) { in pixels_allocFreePalette() [all …]
|
/dports/devel/sdl20/SDL2-2.0.18/test/ |
H A D | testautomation_pixels.c | 326 int ncolors; in pixels_allocFreePalette() local 334 ncolors = 1; in pixels_allocFreePalette() 338 ncolors = 2; in pixels_allocFreePalette() 342 ncolors = SDLTest_RandomIntegerInRange(8, 16); in pixels_allocFreePalette() 346 result = SDL_AllocPalette(ncolors); in pixels_allocFreePalette() 347 SDLTest_AssertPass("Call to SDL_AllocPalette(%d)", ncolors); in pixels_allocFreePalette() 350 …LTest_AssertCheck(result->ncolors == ncolors, "Verify value of result.ncolors; expected: %u, got %… in pixels_allocFreePalette() 351 if (result->ncolors > 0) { in pixels_allocFreePalette() 354 for(i = 0; i < result->ncolors; i++) { in pixels_allocFreePalette() 371 for (ncolors = 0; ncolors > -3; ncolors--) { in pixels_allocFreePalette() [all …]
|
/dports/emulators/mess/mame-mame0226/3rdparty/SDL2/test/ |
H A D | testautomation_pixels.c | 324 int ncolors; in pixels_allocFreePalette() local 332 ncolors = 1; in pixels_allocFreePalette() 336 ncolors = 2; in pixels_allocFreePalette() 340 ncolors = SDLTest_RandomIntegerInRange(8, 16); in pixels_allocFreePalette() 344 result = SDL_AllocPalette(ncolors); in pixels_allocFreePalette() 345 SDLTest_AssertPass("Call to SDL_AllocPalette(%d)", ncolors); in pixels_allocFreePalette() 348 …LTest_AssertCheck(result->ncolors == ncolors, "Verify value of result.ncolors; expected: %u, got %… in pixels_allocFreePalette() 349 if (result->ncolors > 0) { in pixels_allocFreePalette() 352 for(i = 0; i < result->ncolors; i++) { in pixels_allocFreePalette() 369 for (ncolors = 0; ncolors > -3; ncolors--) { in pixels_allocFreePalette() [all …]
|
/dports/emulators/mame/mame-mame0226/3rdparty/SDL2/test/ |
H A D | testautomation_pixels.c | 324 int ncolors; in pixels_allocFreePalette() local 332 ncolors = 1; in pixels_allocFreePalette() 336 ncolors = 2; in pixels_allocFreePalette() 340 ncolors = SDLTest_RandomIntegerInRange(8, 16); in pixels_allocFreePalette() 344 result = SDL_AllocPalette(ncolors); in pixels_allocFreePalette() 345 SDLTest_AssertPass("Call to SDL_AllocPalette(%d)", ncolors); in pixels_allocFreePalette() 348 …LTest_AssertCheck(result->ncolors == ncolors, "Verify value of result.ncolors; expected: %u, got %… in pixels_allocFreePalette() 349 if (result->ncolors > 0) { in pixels_allocFreePalette() 352 for(i = 0; i < result->ncolors; i++) { in pixels_allocFreePalette() 369 for (ncolors = 0; ncolors > -3; ncolors--) { in pixels_allocFreePalette() [all …]
|
/dports/games/SRB2/SRB2-SRB2_release_2.2.9/libs/SDL2/test/ |
H A D | testautomation_pixels.c | 324 int ncolors; in pixels_allocFreePalette() local 332 ncolors = 1; in pixels_allocFreePalette() 336 ncolors = 2; in pixels_allocFreePalette() 340 ncolors = SDLTest_RandomIntegerInRange(8, 16); in pixels_allocFreePalette() 344 result = SDL_AllocPalette(ncolors); in pixels_allocFreePalette() 345 SDLTest_AssertPass("Call to SDL_AllocPalette(%d)", ncolors); in pixels_allocFreePalette() 348 …LTest_AssertCheck(result->ncolors == ncolors, "Verify value of result.ncolors; expected: %u, got %… in pixels_allocFreePalette() 349 if (result->ncolors > 0) { in pixels_allocFreePalette() 352 for(i = 0; i < result->ncolors; i++) { in pixels_allocFreePalette() 369 for (ncolors = 0; ncolors > -3; ncolors--) { in pixels_allocFreePalette() [all …]
|
/dports/x11/controllermap/SDL2-2.0.18/test/ |
H A D | testautomation_pixels.c | 326 int ncolors; in pixels_allocFreePalette() local 334 ncolors = 1; in pixels_allocFreePalette() 338 ncolors = 2; in pixels_allocFreePalette() 342 ncolors = SDLTest_RandomIntegerInRange(8, 16); in pixels_allocFreePalette() 346 result = SDL_AllocPalette(ncolors); in pixels_allocFreePalette() 347 SDLTest_AssertPass("Call to SDL_AllocPalette(%d)", ncolors); in pixels_allocFreePalette() 350 …LTest_AssertCheck(result->ncolors == ncolors, "Verify value of result.ncolors; expected: %u, got %… in pixels_allocFreePalette() 351 if (result->ncolors > 0) { in pixels_allocFreePalette() 354 for(i = 0; i < result->ncolors; i++) { in pixels_allocFreePalette() 371 for (ncolors = 0; ncolors > -3; ncolors--) { in pixels_allocFreePalette() [all …]
|
/dports/misc/magicpoint/magicpoint-1.13a/contrib/xwintoppm/ |
H A D | xwintoppm.c | 274 int i , ncolors = 256 ; local 285 return ncolors ; 304 int ncolors, i; local 496 header.ncolors = ncolors; 584 if (ncolors && pixel < ncolors) { 673 int i,ncolors ; local 688 for (i=0; i<ncolors; i++) { 702 for (i=0; i<ncolors; i++) { 710 return(ncolors); 720 int i, ncolors; local [all …]
|
/dports/science/dakota/dakota-6.13.0-release-public.src-UI/packages/external/acro/packages/pebbl/python/scripts/ |
H A D | pebblLoadGraph | 268 ncolors = len(colors) 425 ax1.plot(x,y,'-',color=colors[p % ncolors], 500 pl.plot(x,y,'-+',color=colors[p % ncolors], 534 ax1.plot(x,y,'p',color=colors[p % ncolors], 556 ax2.plot(x,y,':',color=colors[p % ncolors], 573 pl.plot(x,y,'-.',color=colors[p % ncolors], 607 pl.plot(x,y,'-x',color=colors[p % ncolors], 663 ax1.plot(x,y,'_',color=colors[p % ncolors], 681 ax1.plot(x,y,'x',color=colors[p % ncolors], 699 ax1.plot(x,y,'v',color=colors[p % ncolors], [all …]
|