Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 25 of 27) sorted by relevance

12

/libtiff-4.0.7/libtiff/
H A Dtif_print.c80 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 Dtif_unix.c64 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 Dtif_stream.cxx89 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 Dtif_win32.c148 _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 Dmkg3states.c351 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 Dtif_vms.c57 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 Dtif_wince.c55 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 Dtif_fax3.c1251 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 Dtif_open.c36 _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 Dtif_error.c63 TIFFErrorExt(thandle_t fd, const char* module, const char* fmt, ...) in TIFFErrorExt() argument
70 (*_TIFFerrorHandlerExt)(fd, module, fmt, ap); in TIFFErrorExt()
H A Dtif_warning.c63 TIFFWarningExt(thandle_t fd, const char* module, const char* fmt, ...) in TIFFWarningExt() argument
70 (*_TIFFwarningHandlerExt)(fd, module, fmt, ap); in TIFFWarningExt()
H A Dtif_close.c126 thandle_t fd = tif->tif_clientdata; in TIFFClose() local
129 (void) (*closeproc)(fd); in TIFFClose()
H A Dtif_predict.c788 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 Dtif_ojpeg.c341 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 Dmfs_file.c331 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 Dtiff2ps.c1772 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 Dtiffdump.c116 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 Dfax2ps.c167 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 Draw2tiff.c102 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 Dfax2tiff.c84 int fd; /* Integer file descriptor */
287 client_data.fd = fileno(in); in main()
/libtiff-4.0.7/contrib/stream/
H A Dtiffstream.cpp131 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 Dtiffstream.h32 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 Dbmp2tiff.c237 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 Dxtif_dir.c41 _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 Dxtiffio.h44 extern TIFF* XTIFFFdOpen(int fd, const char* name, const char* mode);

12