Home
last modified time | relevance | path

Searched refs:ncolors (Results 126 – 150 of 2936) sorted by relevance

12345678910>>...118

/dports/x11-toolkits/lesstif/lesstif-0.95.2/lib/Xm-2.1/
H A DXpmscan.c120 unsigned int ncolors; member
180 unsigned int ncolors; local
186 ncolors = pmap->ncolors;
191 if (i == ncolors) {
201 pmap->ncolors++;
214 if (!pmap->ncolors) {
215 pmap->ncolors = 1;
264 pmap.ncolors = 0;
394 xpmimage->ncolors = pmap.ncolors;
473 unsigned int ncolors;
[all …]
/dports/x11-wm/ctwm/ctwm-4.0.3/
H A Dimage_xwd.c20 static void compress(XImage *image, XColor *colors, int *ncolors);
61 int w, h, depth, ncolors; in LoadXwdImage() local
122 ncolors = header.ncolors; in LoadXwdImage()
124 if(len != ncolors) { in LoadXwdImage()
129 for(i = 0; i < ncolors; i++) { in LoadXwdImage()
134 for(i = 0; i < ncolors; i++) { in LoadXwdImage()
176 compress(image, colors, &ncolors); in LoadXwdImage()
179 for(i = 0; i < ncolors; i++) { in LoadXwdImage()
198 for(i = 0; i < ncolors; i++) { in LoadXwdImage()
239 compress(XImage *image, XColor *colors, int *ncolors) in compress() argument
[all …]
/dports/graphics/urt/urt-3.1b1_12/cnv/
H A Dtifftorle.c133 the_hdr.ncolors = 1;
146 the_hdr.ncolors = 1;
158 the_hdr.ncolors = 3;
172 the_hdr.ncolors = 1;
189 if (the_hdr.ncolors == 3) {
213 if (the_hdr.ncolors == 3) {
229 if (the_hdr.ncolors == 3) { in get_scanlines()
244 if (the_hdr.ncolors == 3) { in get_scanlines()
254 if (the_hdr.ncolors == 3) { in get_scanlines()
279 if ( the_hdr.ncolors == 3 ) in get_scanlines()
[all …]
/dports/graphics/urt/urt-3.1b1_12/tools/
H A Dmergechan.c112 if (((in_hdr[i].ncolors-1) < (i-alpha_flag)) ||
148 out_hdr.ncolors = nfiles - alpha_flag;
152 if ( out_hdr.ncolors > 0 )
155 out_hdr.bg_color = (int *)malloc(out_hdr.ncolors * sizeof(int));
158 for ( i = 0; i < out_hdr.ncolors; i++ )
168 for (i = -alpha_flag; i < out_hdr.ncolors; i++)
186 for (i = -alpha_flag; i < out_hdr.ncolors; i++)
201 for (i = -alpha_flag; i < out_hdr.ncolors; i++)
226 for (i = -alpha_flag; i < out_hdr.ncolors; i++)
242 for (i = -alpha_flag; i < out_hdr.ncolors; i++)
H A Drlecomp.c162 out_hdr.ncolors = MAX(A_hdr.ncolors, B_hdr.ncolors);
173 for (i = -out_hdr.alpha; i < out_hdr.ncolors; i++)
186 bzero( A_hdr.bg_color, A_hdr.ncolors * sizeof(int) );
192 bzero( B_hdr.bg_color, B_hdr.ncolors * sizeof(int) );
204 for ( i = RLE_ALPHA; i < out_hdr.ncolors; i++ )
214 * out_hdr.ncolors+out_hdr.alpha)))
312 for( k = RLE_ALPHA; k < out_hdr.ncolors; k++)
391 for( i = 0; i < out_hdr.ncolors+out_hdr.alpha; i++ )
434 for( i = RLE_ALPHA; i < the_hdr->ncolors; i++ )
457 for( j = 0; j < the_hdr->ncolors && no_backgr == 0; j++)
[all …]
H A Drleswap.c219 out_hdr.ncolors = noutput;
240 if ( out_hdr.background && out_hdr.ncolors > 0 )
243 (int *)malloc( out_hdr.ncolors * sizeof(int) );
359 in_hdr, ncolors, alpha, where, in setup_map() argument
365 int ncolors, alpha;
385 if ( (*outchan)[i] >= ncolors ||
400 if ( nspec > ncolors )
404 where, in_hdr->cmd, ncolors, nspec );
471 *noutput = ncolors;
486 specs[i] >= ncolors )
[all …]
/dports/editors/emacs-devel/emacs-4d1968b/lisp/term/
H A Dxterm.el1076 (if (> ncolors 0)
1086 ncolors (1- ncolors)))
1119 (setq ncolors (1- ncolors))))
1121 (while (> ncolors 0)
1124 (- 256 ncolors)
1126 (setq ncolors (1- ncolors))))
1145 (setq ncolors (1- ncolors))))
1147 (while (> ncolors 0)
1150 (if (= ncolors 8)
1154 (- 88 ncolors)
[all …]
/dports/editors/emacs/emacs-27.2/lisp/term/
H A Dxterm.el1037 (if (> ncolors 0)
1047 ncolors (1- ncolors)))
1080 (setq ncolors (1- ncolors))))
1082 (while (> ncolors 0)
1085 (- 256 ncolors)
1087 (setq ncolors (1- ncolors))))
1106 (setq ncolors (1- ncolors))))
1108 (while (> ncolors 0)
1111 (if (= ncolors 8)
1115 (- 88 ncolors)
[all …]
/dports/x11/xlockmore/xlockmore-5.67/modes/
H A Dtik_tak.c115 int ncolors; member
319 tiktak->ncolors = 0; in init_tik_tak()
380 tiktak->ncolors = MI_NCOLORS(mi); in init_tik_tak()
381 if (tiktak->ncolors < 2) in init_tik_tak()
382 tiktak->ncolors = 2; in init_tik_tak()
383 if (tiktak->ncolors <= 2) in init_tik_tak()
392 (tiktak->ncolors + 1))) == NULL) { in init_tik_tak()
453 if (tiktak->ncolors < 2) { in init_tik_tak()
454 tiktak->ncolors = 2; in init_tik_tak()
458 if (tiktak->ncolors <= 2) in init_tik_tak()
[all …]
/dports/x11-toolkits/xmhtml/XmHTML-1.1.10/lib/common/
H A DreadPNG.c187 int ncolors, max_colors; in _XmHTMLReadPNG() local
218 max_colors = _xmimage_cfg->ncolors; in _XmHTMLReadPNG()
294 img_data->cmapsize = ncolors; in _XmHTMLReadPNG()
322 if(ncolors > 256) in _XmHTMLReadPNG()
325 "while max is 256.", ncolors); in _XmHTMLReadPNG()
349 AllocRawImageCmap(img_data, ncolors); in _XmHTMLReadPNG()
350 for(i = 0; i < ncolors; i++) in _XmHTMLReadPNG()
413 ncolors = 2; in _XmHTMLReadPNG()
421 ncolors = 4; in _XmHTMLReadPNG()
431 ncolors = 16; in _XmHTMLReadPNG()
[all …]
/dports/x11-toolkits/Xmt/xmt400/Xmt/
H A DXpmParse.c432 static void FreeColorTable(color_table, ncolors) in FreeColorTable()
434 int ncolors;
440 for (color = 0; color < ncolors; color++) {
481 xmtimage->ncolors = 0;
502 unsigned int ncolors = 0; local
530 ncolors = rncolors;
531 if (ncolors > 256) {
548 symbols = XtMalloc(ncolors * cpp);
550 for (color = 0; color < ncolors; color++) {
599 for (color = 0; color < ncolors; color++) {
[all …]
/dports/games/dunelegacy/dunelegacy-0.96.4/include/FileClasses/
H A DPalette.h63 if(pSDLPalette == nullptr || i < 0 || i >= pSDLPalette->ncolors) {
71 if(pSDLPalette == nullptr || i < 0 || i >= pSDLPalette->ncolors) {
87 SDL_Palette* pNewSDLPalette = SDL_AllocPalette(pSDLPalette->ncolors); in setSDLPalette()
91 … memcpy(pNewSDLPalette->colors, pSDLPalette->colors, pSDLPalette->ncolors * sizeof(SDL_Color)); in setSDLPalette()
102 return pSDLPalette->ncolors; in getNumColors()
121 …int nColors = (endColor != -1) ? (endColor - firstColor + 1) : (pSDLPalette->ncolors - firstColor);
/dports/science/afni/afni-AFNI_21.3.16/src/XmHTML/lib/common/
H A DreadPNG.c189 int ncolors, max_colors; in _XmHTMLReadPNG() local
217 max_colors = _xmimage_cfg->ncolors; in _XmHTMLReadPNG()
299 if(ncolors > 256) in _XmHTMLReadPNG()
302 "while max is 256.", ncolors); in _XmHTMLReadPNG()
322 AllocRawImageCmap(img_data, ncolors); in _XmHTMLReadPNG()
323 for(i = 0; i < ncolors; i++) in _XmHTMLReadPNG()
376 ncolors = 2; in _XmHTMLReadPNG()
377 AllocRawImageCmap(img_data, ncolors); in _XmHTMLReadPNG()
384 ncolors = 4; in _XmHTMLReadPNG()
394 ncolors = 16; in _XmHTMLReadPNG()
[all …]
/dports/graphics/gimp-refocus-plugin/refocus-0.9.0/src/
H A Dconv.c44 const gboolean has_alpha = bpp > ncolors;
51 for (color = ncolors - 1; color >= 0; color--)
69 tile->data[(y1 * ewidth + x1) * bpp + ncolors] =
70 buf[buf_row_width * y1 + bpp * x1 + ncolors];
344 const gboolean has_alpha = bpp > ncolors; in convolve_tile_general()
356 for (color = ncolors - 1; color >= 0; color--) in convolve_tile_general()
391 if ((ncolors == 3) && (bpp == 4)) in convolve_tile()
395 else if ((ncolors == 3) && (bpp == 3)) in convolve_tile()
399 else if ((ncolors == 1) && (bpp == 2)) in convolve_tile()
403 else if ((ncolors == 1) && (bpp == 1)) in convolve_tile()
[all …]
/dports/x11-toolkits/fltk/fltk-1.3.8/src/
H A Dfl_draw_pixmap.cxx41 static int ncolors, chars_per_pixel; variable
61 int i = sscanf(cdata[0],"%d%d%d%d",&w,&h,&ncolors,&chars_per_pixel); in fl_measure_pixmap()
136 used_colors = (UsedColor*)malloc(abs(ncolors) * sizeof(UsedColor)); in fl_convert_pixmap()
139 if (ncolors < 0) { // FLTK (non standard) compressed colormap in fl_convert_pixmap()
140 ncolors = -ncolors; in fl_convert_pixmap()
151 ncolors--; in fl_convert_pixmap()
154 for (int i=0; i < ncolors; i++) { in fl_convert_pixmap()
168 for (int i=0; i<ncolors; i++) { in fl_convert_pixmap()
/dports/x11/controllermap/SDL2-2.0.18/src/video/
H A DSDL_pixels.c646 SDL_AllocPalette(int ncolors) in SDL_AllocPalette() argument
651 if (ncolors < 1) { in SDL_AllocPalette()
667 palette->ncolors = ncolors; in SDL_AllocPalette()
714 if (ncolors > (palette->ncolors - firstcolor)) { in SDL_SetPaletteColors()
715 ncolors = (palette->ncolors - firstcolor); in SDL_SetPaletteColors()
787 for (i = 0; i < pal->ncolors; ++i) { in SDL_FindColor()
812 for (i = 0; i < pal->ncolors; i++) { in SDL_DetectPalette()
937 if (src->ncolors <= dst->ncolors) { in Map1to1()
955 for (i = 0; i < src->ncolors; ++i) { in Map1to1()
981 for (i = 0; i < pal->ncolors; ++i) { in Map1toN()
[all …]
/dports/devel/sdl20/SDL2-2.0.18/src/video/
H A DSDL_pixels.c646 SDL_AllocPalette(int ncolors) in SDL_AllocPalette() argument
651 if (ncolors < 1) { in SDL_AllocPalette()
667 palette->ncolors = ncolors; in SDL_AllocPalette()
714 if (ncolors > (palette->ncolors - firstcolor)) { in SDL_SetPaletteColors()
715 ncolors = (palette->ncolors - firstcolor); in SDL_SetPaletteColors()
787 for (i = 0; i < pal->ncolors; ++i) { in SDL_FindColor()
812 for (i = 0; i < pal->ncolors; i++) { in SDL_DetectPalette()
937 if (src->ncolors <= dst->ncolors) { in Map1to1()
955 for (i = 0; i < src->ncolors; ++i) { in Map1to1()
981 for (i = 0; i < pal->ncolors; ++i) { in Map1toN()
[all …]
/dports/x11/xscreensaver/xscreensaver-5.44/hacks/
H A Dcynosure.c48 int ncolors; member
116 st->ncolors = get_integer_resource (st->dpy, "colors", "Colors"); in cynosure_init()
117 if (st->ncolors < 2) st->ncolors = 2; in cynosure_init()
118 if (st->ncolors <= 2) mono_p = True; in cynosure_init()
129 st->colors, &st->ncolors, in cynosure_init()
131 if (st->ncolors <= 2) { in cynosure_init()
133 st->ncolors = 2; in cynosure_init()
165 st->ncolors2 = st->ncolors; in cynosure_init()
341 return (random() % st->ncolors); in genNewColor()
365 i = (base + i) % st->ncolors; in genConstrainedColor()
[all …]
/dports/multimedia/ppm2fli/ppm2fli-2.1/
H A Dafbm.c68 int rest, ncolors; in get_fbm_data() local
132 ncolors = 0; in get_fbm_data()
141 ncolors = (clrlen - rest)/3; in get_fbm_data()
146 clrlen, ncolors, rest); in get_fbm_data()
149 if (ncolors > FLI_MAX_COLORS) in get_fbm_data()
151 fprintf(stderr,"Color table too long: %d",ncolors); in get_fbm_data()
183 for (i=0; i < ncolors; i++) in get_fbm_data()
187 for (i=(ncolors); i < FLI_MAX_COLORS; i++) in get_fbm_data()
/dports/graphics/netpbm/netpbm-10.91.01/converter/ppm/
H A Dleaftoppm.c78 short ncolors; in leaf_init() local
79 pm_readbigshort(fp, &ncolors); in leaf_init()
81 if (ncolors > 0) { in leaf_init()
85 if (ncolors > 256) in leaf_init()
94 *ncolorsP = ncolors; in leaf_init()
122 int rows, cols, row, col, depth, ncolors; in main() local
135 leaf_init(ifd, &cols, &rows, &depth, &ncolors, colormap); in main()
137 if ((depth == 8) && (ncolors == 0)) { in main()
/dports/emulators/mess/mame-mame0226/3rdparty/SDL2/src/video/
H A DSDL_pixels.c617 SDL_AllocPalette(int ncolors) in SDL_AllocPalette() argument
622 if (ncolors < 1) { in SDL_AllocPalette()
638 palette->ncolors = ncolors; in SDL_AllocPalette()
685 if (ncolors > (palette->ncolors - firstcolor)) { in SDL_SetPaletteColors()
686 ncolors = (palette->ncolors - firstcolor); in SDL_SetPaletteColors()
782 for (i = 0; i < pal->ncolors; ++i) { in SDL_FindColor()
884 if (src->ncolors <= dst->ncolors) { in Map1to1()
897 map = (Uint8 *) SDL_malloc(src->ncolors); in Map1to1()
902 for (i = 0; i < src->ncolors; ++i) { in Map1to1()
928 for (i = 0; i < pal->ncolors; ++i) { in Map1toN()
[all …]
/dports/emulators/mame/mame-mame0226/3rdparty/SDL2/src/video/
H A DSDL_pixels.c617 SDL_AllocPalette(int ncolors) in SDL_AllocPalette() argument
622 if (ncolors < 1) { in SDL_AllocPalette()
638 palette->ncolors = ncolors; in SDL_AllocPalette()
685 if (ncolors > (palette->ncolors - firstcolor)) { in SDL_SetPaletteColors()
686 ncolors = (palette->ncolors - firstcolor); in SDL_SetPaletteColors()
782 for (i = 0; i < pal->ncolors; ++i) { in SDL_FindColor()
884 if (src->ncolors <= dst->ncolors) { in Map1to1()
897 map = (Uint8 *) SDL_malloc(src->ncolors); in Map1to1()
902 for (i = 0; i < src->ncolors; ++i) { in Map1to1()
928 for (i = 0; i < pal->ncolors; ++i) { in Map1toN()
[all …]
/dports/graphics/milton/milton-1.9.1/third_party/SDL2-2.0.8/src/video/
H A DSDL_pixels.c639 SDL_AllocPalette(int ncolors) in SDL_AllocPalette() argument
644 if (ncolors < 1) { in SDL_AllocPalette()
660 palette->ncolors = ncolors; in SDL_AllocPalette()
707 if (ncolors > (palette->ncolors - firstcolor)) { in SDL_SetPaletteColors()
708 ncolors = (palette->ncolors - firstcolor); in SDL_SetPaletteColors()
780 for (i = 0; i < pal->ncolors; ++i) { in SDL_FindColor()
882 if (src->ncolors <= dst->ncolors) { in Map1to1()
895 map = (Uint8 *) SDL_malloc(src->ncolors); in Map1to1()
900 for (i = 0; i < src->ncolors; ++i) { in Map1to1()
926 for (i = 0; i < pal->ncolors; ++i) { in Map1toN()
[all …]
/dports/graphics/urho3d/Urho3D-1.7.1/Source/ThirdParty/SDL/src/video/
H A DSDL_pixels.c617 SDL_AllocPalette(int ncolors) in SDL_AllocPalette() argument
622 if (ncolors < 1) { in SDL_AllocPalette()
638 palette->ncolors = ncolors; in SDL_AllocPalette()
685 if (ncolors > (palette->ncolors - firstcolor)) { in SDL_SetPaletteColors()
686 ncolors = (palette->ncolors - firstcolor); in SDL_SetPaletteColors()
782 for (i = 0; i < pal->ncolors; ++i) { in SDL_FindColor()
884 if (src->ncolors <= dst->ncolors) { in Map1to1()
897 map = (Uint8 *) SDL_malloc(src->ncolors); in Map1to1()
902 for (i = 0; i < src->ncolors; ++i) { in Map1to1()
928 for (i = 0; i < pal->ncolors; ++i) { in Map1toN()
[all …]
/dports/graphics/imlib2/imlib2-1.7.0/src/modules/loaders/
H A Dloader_xpm.c135 int pc, c, i, j, k, w, h, ncolors, cpp; in load2() local
164 ncolors = 0; in load2()
210 sscanf(line, "%i %i %i %i", &w, &h, &ncolors, &cpp); in load2()
211 if ((ncolors > 32766) || (ncolors < 1)) in load2()
233 cmap = calloc(ncolors, sizeof(cmap_t)); in load2()
254 if (j < ncolors) in load2()
335 if (j >= ncolors) in load2()
338 for (i = 0; i < ncolors; i++) in load2()
341 for (i = 0; i < ncolors; i++) in load2()
345 qsort(cmap, ncolors, sizeof(cmap_t), xpm_cmap_sort); in load2()
[all …]

12345678910>>...118