Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 26) sorted by relevance

12

/libtiff-4.0.7/libtiff/
H A Dtif_dirwrite.c709 uint32 count = tif->tif_dir.td_customValues[m].count; in TIFFWriteDirectorySec() local
1914 return(TIFFWriteDirectoryTagData(tif,ndir,dir,tag,TIFF_ASCII,count,count,value)); in TIFFWriteDirectoryTagCheckedAscii()
1937 return(TIFFWriteDirectoryTagData(tif,ndir,dir,tag,TIFF_BYTE,count,count,value)); in TIFFWriteDirectoryTagCheckedByteArray()
1953 return(TIFFWriteDirectoryTagData(tif,ndir,dir,tag,TIFF_SBYTE,count,count,value)); in TIFFWriteDirectoryTagCheckedSbyteArray()
1970 assert(count<0x80000000); in TIFFWriteDirectoryTagCheckedShortArray()
1993 assert(count<0x80000000); in TIFFWriteDirectoryTagCheckedSshortArray()
2014 assert(count<0x40000000); in TIFFWriteDirectoryTagCheckedLongArray()
2037 assert(count<0x40000000); in TIFFWriteDirectoryTagCheckedSlongArray()
2061 assert(count<0x20000000); in TIFFWriteDirectoryTagCheckedLong8Array()
2169 o=TIFFWriteDirectoryTagData(tif,ndir,dir,tag,TIFF_RATIONAL,count,count*8,&m[0]); in TIFFWriteDirectoryTagCheckedRationalArray()
[all …]
H A Dtif_dirread.c839 uint32 count; in TIFFReadDirEntryByteArray() local
1020 uint32 count; in TIFFReadDirEntrySbyteArray() local
1199 uint32 count; in TIFFReadDirEntryShortArray() local
1371 uint32 count; in TIFFReadDirEntrySshortArray() local
1538 uint32 count; in TIFFReadDirEntryLongArray() local
1707 uint32 count; in TIFFReadDirEntrySlongArray() local
1868 uint32 count; in TIFFReadDirEntryLong8Array() local
2034 uint32 count; in TIFFReadDirEntrySlong8Array() local
2184 uint32 count; in TIFFReadDirEntryFloatArray() local
2422 uint32 count; in TIFFReadDirEntryDoubleArray() local
[all …]
H A Dtif_unix.c74 tmsize_t count = -1; in _tiffReadProc() local
81 for (bytes_read=0; bytes_read < bytes_total; bytes_read+=count) in _tiffReadProc()
87 count=read(fdh.fd, buf_offset, (TIFFIOSize_t) io_size); in _tiffReadProc()
88 if (count <= 0) in _tiffReadProc()
91 if (count < 0) in _tiffReadProc()
102 tmsize_t count = -1; in _tiffWriteProc() local
109 for (bytes_written=0; bytes_written < bytes_total; bytes_written+=count) in _tiffWriteProc()
115 count=write(fdh.fd, buf_offset, (TIFFIOSize_t) io_size); in _tiffWriteProc()
116 if (count <= 0) in _tiffWriteProc()
119 if (count < 0) in _tiffWriteProc()
H A Dtif_predict.c410 tmsize_t count = cc; in fpAcc() local
425 while (count > stride) { in fpAcc()
428 count -= stride; in fpAcc()
433 for (count = 0; count < wc; count++) { in fpAcc()
437 cp[bps * count + byte] = tmp[byte * wc + count]; in fpAcc()
439 cp[bps * count + byte] = in fpAcc()
642 tmsize_t count; in fpDiff() local
658 for (count = 0; count < wc; count++) { in fpDiff()
662 cp[byte * wc + count] = tmp[bps * count + byte]; in fpDiff()
665 tmp[bps * count + byte]; in fpDiff()
[all …]
H A Dtif_dir.c531 tv->count = 0; in _TIFFVSetField()
562 tv->count=ma; in _TIFFVSetField()
571 tv->count = (int) va_arg(ap, int); in _TIFFVSetField()
574 tv->count = 1; in _TIFFVSetField()
578 tv->count = fip->field_writecount; in _TIFFVSetField()
580 if (tv->count == 0) { in _TIFFVSetField()
616 || tv->count > 1) { in _TIFFVSetField()
618 tv->count * tv_size); in _TIFFVSetField()
621 assert( tv->count == 1 ); in _TIFFVSetField()
1096 || tv->count > 1) { in _TIFFVGetField()
[all …]
H A Dtif_print.c486 int count = (tif->tif_flags & TIFF_PERSAMPLE) ? td->td_samplesperpixel : 1; in TIFFPrintDirectory() local
488 for (i = 0; i < count; ++i) in TIFFPrintDirectory()
494 int count = (tif->tif_flags & TIFF_PERSAMPLE) ? td->td_samplesperpixel : 1; in TIFFPrintDirectory() local
496 for (i = 0; i < count; ++i) in TIFFPrintDirectory()
576 short count; in TIFFPrintDirectory() local
578 count = (short) TIFFGetTagListCount(tif); in TIFFPrintDirectory()
579 for(i = 0; i < count; i++) { in TIFFPrintDirectory()
H A Dtif_dir.h35 int count; member
272 uint32 count; /* number of elements in fields array */ member
H A Dtif_dirinfo.c337 if (!_TIFFMergeFields(tif, fieldarray->fields, fieldarray->count)) { in _TIFFSetupFields()
737 _TIFFSetGetType(TIFFDataType type, short count, unsigned char passcount) in _TIFFSetGetType() argument
739 if (type == TIFF_ASCII && count == TIFF_VARIABLE && passcount == 0) in _TIFFSetGetType()
742 else if (count == 1 && passcount == 0) { in _TIFFSetGetType()
778 else if (count >= 1 && passcount == 0) { in _TIFFSetGetType()
814 else if (count == TIFF_VARIABLE && passcount == 1) { in _TIFFSetGetType()
850 else if (count == TIFF_VARIABLE2 && passcount == 1) { in _TIFFSetGetType()
917 tif->tif_fieldscompat[nfields].count = n; in TIFFMergeFieldInfo()
/libtiff-4.0.7/tools/
H A Dtiffdump.c385 uint64 count; in ReadDirectory() local
412 count = count32; in ReadDirectory()
468 if (count>maxitems) in ReadDirectory()
471 count = maxitems; in ReadDirectory()
721 while (count-- > 0) in PrintData()
725 while (count-- > 0) in PrintData()
729 while (count-- > 0) in PrintData()
737 while (count-- > 0) in PrintData()
743 while (count-- > 0) in PrintData()
757 while (count-- > 0) in PrintData()
[all …]
H A Dpal2rgb.c279 cpTag(TIFF* in, TIFF* out, uint16 tag, uint16 count, TIFFDataType type) in cpTag() argument
283 if (count == 1) { in cpTag()
286 } else if (count == 2) { in cpTag()
289 } else if (count == 4) { in cpTag()
292 } else if (count == (uint16) -1) { in cpTag()
304 if (count == 1) { in cpTag()
307 } else if (count == (uint16) -1) { in cpTag()
318 if (count == 1) { in cpTag()
321 } else if (count == (uint16) -1) { in cpTag()
340 uint16 count; member
[all …]
H A Dtiff2bw.c327 cpTag(TIFF* in, TIFF* out, uint16 tag, uint16 count, TIFFDataType type) in cpTag() argument
331 if (count == 1) { in cpTag()
334 } else if (count == 2) { in cpTag()
337 } else if (count == 4) { in cpTag()
340 } else if (count == (uint16) -1) { in cpTag()
352 if (count == 1) { in cpTag()
355 } else if (count == (uint16) -1) { in cpTag()
366 if (count == 1) { in cpTag()
369 } else if (count == (uint16) -1) { in cpTag()
388 uint16 count; member
[all …]
H A Dthumbnail.c146 cpTag(TIFF* in, TIFF* out, uint16 tag, uint16 count, TIFFDataType type) in cpTag() argument
150 if (count == 1) { in cpTag()
153 } else if (count == 2) { in cpTag()
156 } else if (count == 4) { in cpTag()
159 } else if (count == (uint16) -1) { in cpTag()
181 if (count == 1) { in cpTag()
184 } else if (count == (uint16) -1) { in cpTag()
195 if (count == 1) { in cpTag()
198 } else if (count == (uint16) -1) { in cpTag()
221 uint16 count; member
[all …]
H A Dtiffcrop.c773 tsample_t count = spp; in readContigTilesIntoBuffer() local
1505 if (count == 1) { in cpTag()
1526 if (count == 1) { in cpTag()
1540 if (count == 1) { in cpTag()
1557 uint16 count; member
1596 #define CopyTag(tag, count, type) cpTag(in, out, tag, count, type) argument
2511 if ((fwrite (data, 1, count, dumpfile)) != count) in dump_data()
2748 if (count == spp) in extractContigSamplesBytes()
3528 tsample_t count = 1; in extractContigSamplesToBuffer() local
6291 count = spp; in extractCompositeRegions()
[all …]
H A Dtiffsplit.c175 uint32 count = 0; in tiffcp() local
177 if (TIFFGetField(in, TIFFTAG_JPEGTABLES, &count, &table) in tiffcp()
178 && count > 0 && table) { in tiffcp()
179 TIFFSetField(out, TIFFTAG_JPEGTABLES, count, table); in tiffcp()
H A Dtiffcp.c493 if (count == 1) { in cpTag()
496 } else if (count == 2) { in cpTag()
499 } else if (count == 4) { in cpTag()
502 } else if (count == (uint16) -1) { in cpTag()
514 if (count == 1) { in cpTag()
517 } else if (count == (uint16) -1) { in cpTag()
528 if (count == 1) { in cpTag()
531 } else if (count == (uint16) -1) { in cpTag()
545 uint16 count; member
584 #define CopyTag(tag, count, type) cpTag(in, out, tag, count, type) argument
[all …]
H A Dtiff2rgba.c431 size_t count = pixel_count; in cvt_whole_image() local
435 while (count > 0) in cvt_whole_image()
441 count--; in cvt_whole_image()
H A Dtiff2pdf.c1980 uint32 count = 0; in t2p_read_tiff_size() local
1982 if(count > 4){ in t2p_read_tiff_size()
1983 k += count; in t2p_read_tiff_size()
2071 uint32 count = 0; in t2p_read_tiff_size_tile() local
2073 if(count > 4){ in t2p_read_tiff_size_tile()
2380 uint32 count = 0; in t2p_readwrite_pdf_image() local
2393 if(count > 4) { in t2p_readwrite_pdf_image()
2395 bufferoffset += count - 2; in t2p_readwrite_pdf_image()
2886 uint32 count = 0; in t2p_readwrite_pdf_image_tile() local
2898 if (count >= 4) { in t2p_readwrite_pdf_image_tile()
[all …]
H A Dtiff2ps.c2122 PS_FlipBytes(unsigned char* buf, tsize_t count) in PS_FlipBytes() argument
2127 if (count <= 0 || bitspersample <= 8) { in PS_FlipBytes()
2131 count--; in PS_FlipBytes()
2133 for (i = 0; i < count; i += 2) { in PS_FlipBytes()
/libtiff-4.0.7/port/
H A Dsnprintf.c16 int count = -1; in _TIFF_vsnprintf_f() local
19 count = _vsnprintf_s(str, size, _TRUNCATE, format, ap); in _TIFF_vsnprintf_f()
20 if (count == -1) in _TIFF_vsnprintf_f()
21 count = _vscprintf(format, ap); in _TIFF_vsnprintf_f()
23 return count; in _TIFF_vsnprintf_f()
28 int count; in _TIFF_snprintf_f() local
32 count = vsnprintf(str, size, format, ap); in _TIFF_snprintf_f()
35 return count; in _TIFF_snprintf_f()
/libtiff-4.0.7/archive/tools/
H A Dgif2tiff.c347 int count; in readextension() local
352 while ((count = getc(infile)) && count <= 255) in readextension()
353 if (fread(buf, 1, count, infile) != (size_t) count) { in readextension()
375 register int count, code; in readraster() local
392 for (count = getc(infile); count > 0 && count <= 255; count = getc(infile)) { in readraster()
393 if (fread(buf,1,count,infile) != (size_t)count) { in readraster()
398 for (ch=buf; count-- > 0; ch++) { in readraster()
/libtiff-4.0.7/test/
H A Dlong_tag.c48 short count; member
H A DMakefile.in1017 desc=$$1 count=$$2; \
1018 if test $$maybe_colorize = yes && test $$count -gt 0; then \
1023 echo "$${color_start}# $$desc $$count$${color_end}"; \
/libtiff-4.0.7/contrib/pds/
H A Dtif_pdsdirread.c352 CheckDirCount(TIFF* tif, TIFFDirEntry* dir, uint32 count) in CheckDirCount() argument
354 if (count != dir->tdir_count) { in CheckDirCount()
358 dir->tdir_count, count); in CheckDirCount()
/libtiff-4.0.7/
H A DChangeLog1133 * tools/tiffdump.c: fix crash due to overflow of entry count.
1217 count for tag should be a warning rather than an error since
1237 * libtiff/tif_dir.c: generate error in case of directory count
1564 * man/TIFFGetField.3tiff: Correct the 'count' field type in the
1628 * tools/tiffsplit.c (tiffcp): TIFFGetField count field should be
1940 or missing byte-count tag
2007 * tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for
2189 when the tag count value is zero. Error handling is still a
2760 from the public interface. Type of its 'count' parameter changed
4672 uint32 count. Use this type everywhere.
[all …]
/libtiff-4.0.7/m4/
H A Dlibtool.m43395 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3412 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3414 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"

12