| /libtiff-4.0.7/libtiff/ |
| H A D | tif_print.c | 80 fprintf(fd, "0x%x", in _TIFFPrintField() 89 fprintf(fd, "%lu", in _TIFFPrintField() 136 fprintf(fd, ","); in _TIFFPrintField() 139 fprintf(fd, "\n"); in _TIFFPrintField() 203 fprintf(fd, in _TIFFPrettyPrintField() 220 fprintf(fd, in _TIFFPrettyPrintField() 273 fprintf(fd, "\n"); in TIFFPrintDirectory() 281 fprintf(fd, "\n"); in TIFFPrintDirectory() 401 fputs(sep, fd); in TIFFPrintDirectory() 568 fputc('\n', fd); in TIFFPrintDirectory() [all …]
|
| H A D | tif_unix.c | 64 int fd; member 80 fdh.h = fd; in _tiffReadProc() 108 fdh.h = fd; in _tiffWriteProc() 135 fdh.h = fd; in _tiffSeekProc() 143 fdh.h = fd; in _tiffCloseProc() 152 fdh.h = fd; in _tiffSizeProc() 183 (void) fd; in _tiffUnmapProc() 210 fdh.fd = fd; in TIFFFdOpen() 228 int m, fd; in TIFFOpen() local 252 close(fd); in TIFFOpen() [all …]
|
| H A D | tif_stream.cxx | 89 static uint64 _tiffosSizeProc(thandle_t fd); 90 static uint64 _tiffisSizeProc(thandle_t fd); 91 static int _tiffosCloseProc(thandle_t fd); 92 static int _tiffisCloseProc(thandle_t fd); 296 _tiffosSizeProc(thandle_t fd) in _tiffosSizeProc() argument 311 _tiffisSizeProc(thandle_t fd) in _tiffisSizeProc() argument 325 _tiffosCloseProc(thandle_t fd) in _tiffosCloseProc() argument 328 delete reinterpret_cast<tiffos_data *>(fd); in _tiffosCloseProc() 333 _tiffisCloseProc(thandle_t fd) in _tiffisCloseProc() argument 336 delete reinterpret_cast<tiffis_data *>(fd); in _tiffisCloseProc() [all …]
|
| H A D | tif_win32.c | 148 _tiffCloseProc(thandle_t fd) in _tiffCloseProc() argument 150 return (CloseHandle(fd) ? 0 : -1); in _tiffCloseProc() 154 _tiffSizeProc(thandle_t fd) in _tiffSizeProc() argument 164 (void) fd; in _tiffDummyMapProc() 188 size = _tiffSizeProc(fd); in _tiffMapProc() 209 (void) fd; in _tiffDummyUnmapProc() 217 (void) fd; in _tiffUnmapProc() 261 thandle_t fd; in TIFFOpen() local 289 CloseHandle(fd); in TIFFOpen() 300 thandle_t fd; in TIFFOpenW() local [all …]
|
| H A D | mkg3states.c | 351 fprintf(fd, "%s %s TIFFFaxTabEnt %s[%d] = {", in WriteTable() 356 fprintf(fd, "%s%s%d,%d,%d%s", in WriteTable() 367 fprintf(fd, "%s%s%3d,%3d,%4d%s", in WriteTable() 376 fprintf(fd, "\n};\n"); in WriteTable() 383 FILE* fd; in main() local 414 fd = fopen(outputfile, "w"); in main() 415 if (fd == NULL) { in main() 437 fprintf(fd, " mkg3states program */\n"); in main() 438 fprintf(fd, "#include \"tiff.h\"\n"); in main() 439 fprintf(fd, "#include \"tif_fax3.h\"\n"); in main() [all …]
|
| H A D | tif_vms.c | 57 return (read((int) fd, buf, size)); in _tiffReadProc() 63 return (write((int) fd, buf, size)); in _tiffWriteProc() 73 _tiffCloseProc(thandle_t fd) in _tiffCloseProc() argument 75 return (close((int) fd)); in _tiffCloseProc() 81 _tiffSizeProc(thandle_t fd) in _tiffSizeProc() argument 151 size = _tiffSizeProc(fd); in _tiffMapProc() 222 (thandle_t) fd, in TIFFFdOpen() 226 tif->tif_fd = fd; in TIFFFdOpen() 237 int m, fd; in TIFFOpen() local 253 fd = open(name, m, 0666, in TIFFOpen() [all …]
|
| H A D | tif_wince.c | 55 thandle_t fd; variable 105 fd = (thandle_t)CreateFile(wchName, 113 if (fd == INVALID_HANDLE_VALUE) { 120 tif = TIFFFdOpen((int)fd, name, mode); 122 CloseHandle(fd); 133 thandle_t fd; in TIFFOpenW() local 155 fd = (thandle_t)CreateFile(name, in TIFFOpenW() 160 if (fd == INVALID_HANDLE_VALUE) { in TIFFOpenW() 179 tif = TIFFFdOpen((int)fd, in TIFFOpenW() 182 CloseHandle(fd); in TIFFOpenW()
|
| H A D | tif_fax3.c | 1251 fprintf(fd, " Group 4 Options:"); in Fax3PrintDir() 1256 fprintf(fd, " Group 3 Options:"); in Fax3PrintDir() 1258 fprintf(fd, "%s2-d encoding", sep); in Fax3PrintDir() 1262 fprintf(fd, "%sEOL padding", sep); in Fax3PrintDir() 1268 fprintf(fd, " (%lu = 0x%lx)\n", in Fax3PrintDir() 1273 fprintf(fd, " Fax Data:"); in Fax3PrintDir() 1276 fprintf(fd, " clean"); in Fax3PrintDir() 1282 fprintf(fd, " uncorrected errors"); in Fax3PrintDir() 1285 fprintf(fd, " (%u = 0x%x)\n", in Fax3PrintDir() 1289 fprintf(fd, " Bad Fax Lines: %lu\n", in Fax3PrintDir() [all …]
|
| H A D | tif_open.c | 36 _tiffDummyMapProc(thandle_t fd, void** pbase, toff_t* psize) in _tiffDummyMapProc() argument 38 (void) fd; (void) pbase; (void) psize; in _tiffDummyMapProc() 43 _tiffDummyUnmapProc(thandle_t fd, void* base, toff_t size) in _tiffDummyUnmapProc() argument 45 (void) fd; (void) base; (void) size; in _tiffDummyUnmapProc() 526 TIFFSetFileno(TIFF* tif, int fd) argument 529 tif->tif_fd = fd;
|
| H A D | tif_error.c | 63 TIFFErrorExt(thandle_t fd, const char* module, const char* fmt, ...) in TIFFErrorExt() argument 70 (*_TIFFerrorHandlerExt)(fd, module, fmt, ap); in TIFFErrorExt()
|
| H A D | tif_warning.c | 63 TIFFWarningExt(thandle_t fd, const char* module, const char* fmt, ...) in TIFFWarningExt() argument 70 (*_TIFFwarningHandlerExt)(fd, module, fmt, ap); in TIFFWarningExt()
|
| H A D | tif_close.c | 126 thandle_t fd = tif->tif_clientdata; in TIFFClose() local 129 (void) (*closeproc)(fd); in TIFFClose()
|
| H A D | tif_predict.c | 788 PredictorPrintDir(TIFF* tif, FILE* fd, long flags) in PredictorPrintDir() argument 794 fprintf(fd, " Predictor: "); in PredictorPrintDir() 796 case 1: fprintf(fd, "none "); break; in PredictorPrintDir() 797 case 2: fprintf(fd, "horizontal differencing "); break; in PredictorPrintDir() 798 case 3: fprintf(fd, "floating point predictor "); break; in PredictorPrintDir() 800 fprintf(fd, "%u (0x%x)\n", sp->predictor, sp->predictor); in PredictorPrintDir() 803 (*sp->printdir)(tif, fd, flags); in PredictorPrintDir()
|
| H A D | tif_ojpeg.c | 341 static void OJPEGPrintDir(TIFF* tif, FILE* fd, long flags); 611 OJPEGPrintDir(TIFF* tif, FILE* fd, long flags) in OJPEGPrintDir() argument 623 fprintf(fd," JpegQTables:"); in OJPEGPrintDir() 625 fprintf(fd," " TIFF_UINT64_FORMAT,(TIFF_UINT64_T)sp->qtable_offset[m]); in OJPEGPrintDir() 626 fprintf(fd,"\n"); in OJPEGPrintDir() 630 fprintf(fd," JpegDcTables:"); in OJPEGPrintDir() 633 fprintf(fd,"\n"); in OJPEGPrintDir() 637 fprintf(fd," JpegAcTables:"); in OJPEGPrintDir() 640 fprintf(fd,"\n"); in OJPEGPrintDir() 643 fprintf(fd," JpegProc: %u\n",(unsigned int)sp->jpeg_proc); in OJPEGPrintDir() [all …]
|
| /libtiff-4.0.7/contrib/mfs/ |
| H A D | mfs_file.c | 331 if (fds[fd] == -1 || buf_mode[fd] != 'r') in mfs_read() 338 else if (buf_off[fd] + size > buf_size[fd]) in mfs_read() 345 buf_off[fd] = buf_off[fd] + size; in mfs_read() 371 if (fds[fd] == -1 || buf_mode[fd] == 'r') in mfs_write() 382 if (buf_off[fd] + size > buf_size[fd]) in mfs_write() 385 buf_size[fd] = (buf_off[fd] + size); in mfs_write() 389 buf_off[fd] = buf_off[fd] + size; in mfs_write() 397 if (buf_off[fd] != buf_size[fd]) in mfs_write() 398 buf_off[fd] = buf_size[fd]; in mfs_write() 400 extend_mem_file (fd, buf_off[fd] + size); in mfs_write() [all …]
|
| /libtiff-4.0.7/tools/ |
| H A D | tiff2ps.c | 1772 fputs(" <", fd); in PS_Lvl2colorspace() 1856 fd); in PS_Lvl2ImageDict() 1949 fputs(" [", fd); in PS_Lvl2ImageDict() 2077 fputs(" ]", fd); in PS_Lvl2ImageDict() 2115 fputs("}\n", fd); in PS_Lvl2ImageDict() 2311 putc('\n', fd); in PS_Lvl2page() 2385 fprintf(fd, in PSpage() 2391 putc('\n', fd); in PSpage() 2431 #define PUTHEX(c,fd) putc(hex[((c)>>4)&0xf],fd); putc(hex[(c)&0xf],fd) argument 2520 PUTHEX(c,fd); in PSDataColorSeparate() [all …]
|
| H A D | tiffdump.c | 116 int one = 1, fd; in main() local 145 if (fd < 0) { in main() 154 dump(fd, diroff); in main() 155 close(fd); in main() 168 dump(int fd, uint64 diroff) in dump() argument 645 PrintTag(FILE* fd, uint16 tag) in PrintTag() argument 699 fputc(*cp, fd); in PrintASCII() 706 fprintf(fd, "\\%c", *tp); in PrintASCII() 710 fprintf(fd, "\\0"); in PrintASCII() 859 vfprintf(fd, fmt, ap); in vError() [all …]
|
| H A D | fax2ps.c | 167 emitFont(FILE* fd) in emitFont() argument 195 fprintf(fd, "%s\n", fontPrologue[i]); in emitFont() 390 FILE* fd; in main() local 393 fd = tmpfile(); in main() 394 if (fd == NULL) { in main() 402 if (write(fileno(fd), buf, n) != n) { in main() 403 fclose(fd); in main() 409 _TIFF_lseek_f(fileno(fd), 0, SEEK_SET); in main() 411 tif = TIFFFdOpen(_get_osfhandle(fileno(fd)), "temp", "r"); in main() 413 tif = TIFFFdOpen(fileno(fd), "temp", "r"); in main() [all …]
|
| H A D | raw2tiff.c | 102 int fd; in main() local 206 fd = open(argv[optind], O_RDONLY|O_BINARY, 0); in main() 207 if (fd < 0) { in main() 213 if (guessSize(fd, dtype, hdr_size, nbands, swab, &width, &length) < 0) in main() 287 _TIFF_lseek_f(fd, hdr_size, SEEK_SET); /* Skip the file header */ in main() 292 if (_TIFF_lseek_f(fd, in main() 301 if (read(fd, buf, linebytes) < 0) { in main() 317 if (read(fd, buf1, bufsize) < 0) { in main() 368 guessSize(int fd, TIFFDataType dtype, _TIFF_off_t hdr_size, uint32 nbands, in guessSize() argument 378 if (_TIFF_fstat_f(fd, &filestat) == -1) { in guessSize() [all …]
|
| H A D | fax2tiff.c | 84 int fd; /* Integer file descriptor */ 287 client_data.fd = fileno(in); in main()
|
| /libtiff-4.0.7/contrib/stream/ |
| H A D | tiffstream.cpp | 131 TiffStream::close(thandle_t fd) in close() argument 148 TiffStream::size(thandle_t fd) in size() argument 151 return ts->getSize(fd); in size() 168 if(!isOpen(fd)) return 0; in getSize() 170 unsigned int pos = tell(fd); in getSize() 171 seekInt(fd, 0, end); in getSize() 172 unsigned int size = tell(fd); in getSize() 173 seekInt(fd, pos, beg); in getSize() 179 TiffStream::tell(thandle_t fd) in tell() argument 195 if(!isOpen(fd)) return false; in seekInt() [all …]
|
| H A D | tiffstream.h | 32 static tsize_t read(thandle_t fd, tdata_t buf, tsize_t size); 33 static tsize_t write(thandle_t fd, tdata_t buf, tsize_t size); 34 static toff_t seek(thandle_t fd, toff_t offset, int origin); 35 static toff_t size(thandle_t fd); 36 static int close(thandle_t fd); 37 static int map(thandle_t fd, tdata_t* phase, toff_t* psize); 38 static void unmap(thandle_t fd, tdata_t base, tsize_t size); 47 unsigned int getSize(thandle_t fd); 48 unsigned int tell(thandle_t fd); 49 bool seekInt(thandle_t fd, unsigned int offset, int origin); [all …]
|
| /libtiff-4.0.7/archive/tools/ |
| H A D | bmp2tiff.c | 237 int fd = 0; in main() local 293 if (fd < 0) { in main() 298 if (read(fd, file_hdr.bType, 2) != 2) { in main() 323 if (_TIFF_fstat_f(fd, &instat) == -1) { in main() 399 if ( read(fd, &iShort, 2) != 2 ) { in main() 408 if ( read(fd, &iShort, 2) != 2 ) { in main() 417 if (read(fd, &iShort, 2) != 2 ) { in main() 426 if ( read(fd, &iShort, 2) != 2 ) { in main() 445 close(fd); in main() 455 close(fd); in main() [all …]
|
| /libtiff-4.0.7/contrib/tags/ |
| H A D | xtif_dir.c | 41 _XTIFFPrintDirectory(TIFF* tif, FILE* fd, long flags) in _XTIFFPrintDirectory() argument 49 (PARENT(xt,printdir))(tif,fd,flags); in _XTIFFPrintDirectory() 55 fprintf(fd,"--My Example Tags--\n"); in _XTIFFPrintDirectory() 63 fprintf(fd, " My Multi-Valued Doubles:"); in _XTIFFPrintDirectory() 69 fprintf(fd,"("); in _XTIFFPrintDirectory() 70 for (i=0;i<num;i++) fprintf(fd, " %lg", *value++); in _XTIFFPrintDirectory() 71 fprintf(fd,")\n"); in _XTIFFPrintDirectory() 73 fprintf(fd, "(present)\n"); in _XTIFFPrintDirectory() 83 _TIFFprintAsciiTag(fd,"My ASCII Tag", in _XTIFFPrintDirectory() 321 XTIFFFdOpen(int fd, const char* name, const char* mode) in XTIFFFdOpen() argument [all …]
|
| H A D | xtiffio.h | 44 extern TIFF* XTIFFFdOpen(int fd, const char* name, const char* mode);
|