| /libtiff-4.0.7/contrib/mfs/ |
| H A D | mfs_file.c | 81 int mfs_read (int fd, void *buf, int size); 82 int mfs_write (int fd, void *buf, int size); 159 buf_size[ret] = size; in mfs_open() 208 buf_size[ret] = size; in mfs_open() 345 buf_off[fd] = buf_off[fd] + size; in mfs_read() 346 ret = size; in mfs_read() 389 buf_off[fd] = buf_off[fd] + size; in mfs_write() 391 ret = size; in mfs_write() 401 buf_size[fd] += size; in mfs_write() 404 buf_off[fd] = buf_off[fd] + size; in mfs_write() [all …]
|
| /libtiff-4.0.7/libtiff/ |
| H A D | tif_read.c | 361 size!=(tmsize_t)(-1) && size >= stripsize && in TIFFReadEncodedStrip() 376 if ((size!=(tmsize_t)(-1))&&(size<stripsize)) in TIFFReadEncodedStrip() 426 mb=ma+size; in TIFFReadRawStrip1() 432 n=size; in TIFFReadRawStrip1() 452 size); in TIFFReadRawStrip1() 454 return (size); in TIFFReadRawStrip1() 503 if (size != (tmsize_t)(-1) && size < bytecountm) in TIFFReadRawStrip() 690 size!=(tmsize_t)(-1) && size >= tilesize && in TIFFReadEncodedTile() 760 mb=ma+size; in TIFFReadRawTile1() 766 n=size; in TIFFReadRawTile1() [all …]
|
| H A D | tif_stream.cxx | 93 static int _tiffDummyMapProc(thandle_t , void** base, toff_t* size ); 116 _tiffisReadProc(thandle_t fd, void* buf, tmsize_t size) in _tiffisReadProc() argument 121 streamsize request_size = size; in _tiffisReadProc() 122 if (static_cast<tmsize_t>(request_size) != size) in _tiffisReadProc() 131 _tiffosWriteProc(thandle_t fd, void* buf, tmsize_t size) in _tiffosWriteProc() argument 138 streamsize request_size = size; in _tiffosWriteProc() 139 if (static_cast<tmsize_t>(request_size) != size) in _tiffosWriteProc() 341 _tiffDummyMapProc(thandle_t , void** base, toff_t* size ) in _tiffDummyMapProc() argument 344 (void) size; in _tiffDummyMapProc() 349 _tiffDummyUnmapProc(thandle_t , void* base, toff_t size ) in _tiffDummyUnmapProc() argument [all …]
|
| H A D | tiffiop.h | 63 extern int snprintf(char* str, size_t size, const char* format, ...); 218 #define TIFFReadFile(tif, buf, size) \ argument 219 ((*(tif)->tif_readproc)((tif)->tif_clientdata,(buf),(size))) 220 #define TIFFWriteFile(tif, buf, size) \ argument 221 ((*(tif)->tif_writeproc)((tif)->tif_clientdata,(buf),(size))) 230 #define TIFFUnmapFileContents(tif, addr, size) \ argument 231 ((*(tif)->tif_unmapproc)((tif)->tif_clientdata,(addr),(size))) 237 #define ReadOK(tif, buf, size) \ argument 238 (TIFFReadFile((tif),(buf),(size))==(size)) 245 #define WriteOK(tif, buf, size) \ argument [all …]
|
| H A D | tif_win32.c | 61 _tiffReadProc(thandle_t fd, void* buf, tmsize_t size) in _tiffReadProc() argument 72 mb=size; in _tiffReadProc() 91 _tiffWriteProc(thandle_t fd, void* buf, tmsize_t size) in _tiffWriteProc() argument 102 mb=size; in _tiffWriteProc() 184 uint64 size; in _tiffMapProc() local 188 size = _tiffSizeProc(fd); in _tiffMapProc() 189 sizem = (tmsize_t)size; in _tiffMapProc() 190 if ((uint64)sizem!=size) in _tiffMapProc() 202 *psize = size; in _tiffMapProc() 211 (void) size; in _tiffDummyUnmapProc() [all …]
|
| H A D | tif_unix.c | 69 _tiffReadProc(thandle_t fd, void* buf, tmsize_t size) in _tiffReadProc() argument 72 const size_t bytes_total = (size_t) size; in _tiffReadProc() 75 if ((tmsize_t) bytes_total != size) in _tiffReadProc() 97 _tiffWriteProc(thandle_t fd, void* buf, tmsize_t size) in _tiffWriteProc() argument 100 const size_t bytes_total = (size_t) size; in _tiffWriteProc() 103 if ((tmsize_t) bytes_total != size) in _tiffWriteProc() 181 _tiffUnmapProc(thandle_t fd, void* base, toff_t size) in _tiffUnmapProc() argument 184 (void) munmap(base, (off_t) size); in _tiffUnmapProc() 195 _tiffUnmapProc(thandle_t fd, void* base, toff_t size) in _tiffUnmapProc() argument 197 (void) fd; (void) base; (void) size; in _tiffUnmapProc()
|
| H A D | tif_config.h.cmake.in | 17 /* enable deferred strip/tile offset/size loading (experimental) */ 170 /* The size of `signed int', as computed by sizeof. */ 173 /* The size of `signed long', as computed by sizeof. */ 176 /* The size of `signed long long', as computed by sizeof. */ 179 /* The size of `signed short', as computed by sizeof. */ 182 /* The size of `unsigned char *', as computed by sizeof. */ 185 /* The size of `unsigned int', as computed by sizeof. */ 188 /* The size of `unsigned long', as computed by sizeof. */ 194 /* The size of `unsigned short', as computed by sizeof. */ 209 /* Unsigned size type formatter */ [all …]
|
| H A D | tif_config.h.in | 253 /* The size of `signed int', as computed by sizeof. */ 256 /* The size of `signed long', as computed by sizeof. */ 262 /* The size of `signed short', as computed by sizeof. */ 265 /* The size of `size_t', as computed by sizeof. */ 268 /* The size of `unsigned char *', as computed by sizeof. */ 271 /* The size of `unsigned int', as computed by sizeof. */ 274 /* The size of `unsigned long', as computed by sizeof. */ 280 /* The size of `unsigned short', as computed by sizeof. */ 326 /* Unsigned size type */ 329 /* Signed size type formatter */ [all …]
|
| H A D | tif_vms.c | 55 _tiffReadProc(thandle_t fd, tdata_t buf, tsize_t size) in _tiffReadProc() argument 57 return (read((int) fd, buf, size)); in _tiffReadProc() 61 _tiffWriteProc(thandle_t fd, tdata_t buf, tsize_t size) in _tiffWriteProc() argument 63 return (write((int) fd, buf, size)); in _tiffWriteProc() 125 long size; in _tiffMapProc() local 151 size = _tiffSizeProc(fd); in _tiffMapProc() 153 TIFFhowmany(size,512), 0,0,0); ddd in _tiffMapProc() 163 *psize = (toff_t) size; in _tiffMapProc() 179 _tiffUnmapProc(thandle_t fd, tdata_t base, toff_t size) in _tiffUnmapProc() argument 208 _tiffUnmapProc(thandle_t fd, tdata_t base, toff_t size) in _tiffUnmapProc() argument
|
| H A D | tif_jbig.c | 51 static int JBIGDecode(TIFF* tif, uint8* buffer, tmsize_t size, uint16 s) in JBIGDecode() argument 56 (void) size, (void) s; in JBIGDecode() 157 static int JBIGEncode(TIFF* tif, uint8* buffer, tmsize_t size, uint16 s) in JBIGEncode() argument 162 (void) size, (void) s; in JBIGEncode()
|
| H A D | tiffio.h | 279 typedef int (*TIFFMapFileProc)(thandle_t, void** base, toff_t* size); 280 typedef void (*TIFFUnmapFileProc)(thandle_t, void* base, toff_t size); 396 extern int TIFFReadBufferSetup(TIFF* tif, void* bp, tmsize_t size); 397 extern int TIFFWriteBufferSetup(TIFF* tif, void* bp, tmsize_t size); 466 extern tmsize_t TIFFReadEncodedStrip(TIFF* tif, uint32 strip, void* buf, tmsize_t size); 467 extern tmsize_t TIFFReadRawStrip(TIFF* tif, uint32 strip, void* buf, tmsize_t size); 468 extern tmsize_t TIFFReadEncodedTile(TIFF* tif, uint32 tile, void* buf, tmsize_t size); 469 extern tmsize_t TIFFReadRawTile(TIFF* tif, uint32 tile, void* buf, tmsize_t size);
|
| H A D | tif_write.c | 638 TIFFWriteBufferSetup(TIFF* tif, void* bp, tmsize_t size) in TIFFWriteBufferSetup() argument 649 if (size == (tmsize_t)(-1)) { in TIFFWriteBufferSetup() 650 size = (isTiled(tif) ? in TIFFWriteBufferSetup() 655 if (size < 8*1024) in TIFFWriteBufferSetup() 656 size = 8*1024; in TIFFWriteBufferSetup() 660 bp = _TIFFmalloc(size); in TIFFWriteBufferSetup() 669 tif->tif_rawdatasize = size; in TIFFWriteBufferSetup()
|
| H A D | tif_config.h-vms | 23 /* The size of a `int', as computed by sizeof. */ 26 /* The size of a `long', as computed by sizeof. */
|
| H A D | tiffconf.h-vms | 19 /* The size of a `int', as computed by sizeof. */ 22 /* The size of a `long', as computed by sizeof. */
|
| H A D | tiffconf.h.cmake.in | 34 /* Unsigned size type */ 37 /* Signed size type */
|
| H A D | tif_predict.h | 33 typedef int (*TIFFEncodeDecodeMethod)(TIFF* tif, uint8* buf, tmsize_t size);
|
| /libtiff-4.0.7/contrib/stream/ |
| H A D | tiffstream.cpp | 41 size, in makeFileStream() 62 size, in makeFileStream() 83 size, in makeFileStream() 90 TiffStream::read(thandle_t fd, tdata_t buf, tsize_t size) in read() argument 101 int actual = remain < size ? remain : size; in read() 107 TiffStream::write(thandle_t fd, tdata_t buf, tsize_t size) in write() argument 118 ostr->write(reinterpret_cast<const char*>(buf), size); in write() 148 TiffStream::size(thandle_t fd) in size() function in TiffStream 161 TiffStream::unmap(thandle_t fd, tdata_t base, tsize_t size) in unmap() argument 172 unsigned int size = tell(fd); in getSize() local [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); 35 static toff_t size(thandle_t fd); 38 static void unmap(thandle_t fd, tdata_t base, tsize_t size);
|
| /libtiff-4.0.7/test/ |
| H A D | strip.c | 38 write_strips(TIFF *tif, const tdata_t array, const tsize_t size) in write_strips() argument 51 offset < size && strip < nstrips; in write_strips() 56 tsize_t bufsize = size - offset; in write_strips() 72 read_strips(TIFF *tif, const tdata_t array, const tsize_t size) in read_strips() argument 92 offset < size && strip < nstrips; in read_strips() 97 tsize_t bufsize = size - offset; in read_strips() 124 const tdata_t array, const tsize_t size) in create_image_striped() argument 162 if (write_strips(tif, array, size) < 0) { in create_image_striped() 188 const tdata_t array, const tsize_t size) in read_image_striped() argument 240 if (read_strips(tif, array, size) < 0) { in read_image_striped() [all …]
|
| /libtiff-4.0.7/port/ |
| H A D | snprintf.c | 14 int _TIFF_vsnprintf_f(char* str, size_t size, const char* format, va_list ap) in _TIFF_vsnprintf_f() argument 18 if (size != 0) in _TIFF_vsnprintf_f() 19 count = _vsnprintf_s(str, size, _TRUNCATE, format, ap); in _TIFF_vsnprintf_f() 26 int _TIFF_snprintf_f(char* str, size_t size, const char* format, ...) in _TIFF_snprintf_f() argument 32 count = vsnprintf(str, size, format, ap); in _TIFF_snprintf_f()
|
| H A D | lfind.c | 51 lfind(const void *key, const void *base, size_t *nmemb, size_t size, in lfind() argument 56 end = (char *)base + *nmemb * size; in lfind() 57 for (element = (char *)base; element < end; element += size) in lfind()
|
| H A D | libport.h | 47 lfind(const void *key, const void *base, size_t *nmemb, size_t size, 57 int snprintf(char* str, size_t size, const char* format, ...);
|
| /libtiff-4.0.7/tools/ |
| H A D | tiffset.c | 159 int i, size; in main() local 175 size = 1; in main() 180 size = 2; in main() 189 size = 4; in main() 193 size = 8; in main() 197 array = _TIFFmalloc(wc * size); in main()
|
| /libtiff-4.0.7/archive/tools/ |
| H A D | bmp2tiff.c | 584 uint32 offset, size; in main() local 595 size = width * info_hdr.iBitCount + 31; in main() 597 || (size - 31) / info_hdr.iBitCount != width ) { in main() 603 size = (size & ~31) / 8; in main() 605 scanbuf = (char *) _TIFFmalloc(size); in main() 614 offset = file_hdr.iOffBits+(length-row-1)*size; in main() 616 offset = file_hdr.iOffBits + row * size; in main() 624 if (read(fd, scanbuf, size) != (long) size) { in main()
|
| /libtiff-4.0.7/ |
| H A D | configure.ac | 199 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT 205 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT 211 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG 221 # Obtain size of a 'unsigned long long' and define as 226 # Obtain the size of an 'unsigned char *' and define as 341 # without changing the actual size. 367 AC_DEFINE_UNQUOTED([TIFF_SIZE_T],[$SIZE_T],[Unsigned size type]) 371 AC_MSG_CHECKING(for signed size type) 396 AC_DEFINE_UNQUOTED(TIFF_SSIZE_T,$SSIZE_T,[Signed size type]) 959 AC_ARG_WITH(default-strip-size, [all …]
|