Searched refs:num_colors (Results 1 - 10 of 10) sorted by relevance

/macosx-10.10.1/tcl-105/tcl_ext/tkimg/tkimg/compat/libjpeg/
H A Dwrtarga.c54 write_header (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo, int num_colors) argument
62 if (num_colors > 0) {
64 targaheader[5] = (char) (num_colors & 0xFF);
65 targaheader[6] = (char) (num_colors >> 8);
79 if (num_colors > 0) {
170 int num_colors, i; local
184 num_colors = cinfo->actual_number_of_colors;
185 if (num_colors > 256)
186 ERREXIT1(cinfo, JERR_TOO_MANY_COLORS, num_colors);
187 write_header(cinfo, dinfo, num_colors);
[all...]
H A Dwrgif.c219 emit_header (gif_dest_ptr dinfo, int num_colors, JSAMPARRAY colormap) argument
227 if (num_colors > 256)
228 ERREXIT1(dinfo->cinfo, JERR_TOO_MANY_COLORS, num_colors);
231 while (num_colors > (1 << BitsPerPixel))
261 if (i < num_colors) {
273 /* Create a gray-scale map of num_colors values, range 0..255 */
274 put_3bytes(dinfo, (i * 255 + (num_colors-1)/2) / (num_colors-1));
H A Dwrbmp.c296 int num_colors = cinfo->actual_number_of_colors; local
303 for (i = 0; i < num_colors; i++) {
312 for (i = 0; i < num_colors; i++) {
/macosx-10.10.1/tcl-105/tcl_ext/tkimg/tkimg/compat/libtiff/tools/
H A Dtiffmedian.c85 int num_colors; variable
125 num_colors = MAX_CMAP_SIZE;
133 num_colors = atoi(optarg);
134 if (num_colors > MAX_CMAP_SIZE) {
181 box_list = freeboxes = (Colorbox *)_TIFFmalloc(num_colors*sizeof (Colorbox));
184 for (i = 1; i < num_colors-1; ++i) {
188 freeboxes[num_colors-1].next = NULL;
189 freeboxes[num_colors-1].prev = &freeboxes[num_colors-2];
633 for (i = 0; i < num_colors;
[all...]
H A Dtiff2ps.c992 int i, num_colors; local
1025 num_colors = (1 << bitspersample);
1031 if (checkcmap(tif, num_colors, rmap, gmap, bmap) == 16) {
1036 for (i = 0; i < num_colors; i++) {
1043 fprintf(fd, "[ /Indexed /DeviceRGB %d", num_colors - 1);
1050 for (i = 0; i < num_colors; i++) {
/macosx-10.10.1/tcl-105/tcl_ext/incrtcl/iwidgets/generic/
H A Ddateentry.itk210 /* width height num_colors chars_per_pixel */
H A Dtimeentry.itk200 /* width height num_colors chars_per_pixel */
/macosx-10.10.1/emacs-93/emacs/src/
H A Dw32term.h144 unsigned num_colors;
142 unsigned num_colors; member in struct:w32_display_info
H A Dw32fns.c1132 FRAME_W32_DISPLAY_INFO (f)->num_colors * sizeof (PALETTEENTRY));
1134 log_palette->palNumEntries = FRAME_W32_DISPLAY_INFO (f)->num_colors;
1138 i < FRAME_W32_DISPLAY_INFO (f)->num_colors;
1194 FRAME_W32_DISPLAY_INFO (f)->num_colors++;
1218 FRAME_W32_DISPLAY_INFO (f)->num_colors--;
1302 one_w32_display_info.num_colors++;
H A Dimage.c4325 int num_colors, chars_per_pixel;
4367 &num_colors, &chars_per_pixel) != 4
4369 || num_colors <= 0 || chars_per_pixel <= 0)
4397 while (num_colors-- > 0)
4315 int num_colors, chars_per_pixel; local

Completed in 356 milliseconds