| /libtiff-4.0.7/port/ |
| H A D | strtoull.c | 48 const char *s; in strtoull() local 57 s = nptr; in strtoull() 59 c = *s++; in strtoull() 63 c = *s++; in strtoull() 67 c = *s++; in strtoull() 70 c == '0' && (*s == 'x' || *s == 'X') && in strtoull() 71 ((s[1] >= '0' && s[1] <= '9') || in strtoull() 72 (s[1] >= 'A' && s[1] <= 'F') || in strtoull() 73 (s[1] >= 'a' && s[1] <= 'f'))) { in strtoull() 74 c = s[1]; in strtoull() [all …]
|
| H A D | strtoul.c | 51 const char *s; in strtoul() local 59 s = nptr; in strtoul() 61 c = (unsigned char) *s++; in strtoul() 65 c = *s++; in strtoul() 69 c = *s++; in strtoul() 72 c == '0' && (*s == 'x' || *s == 'X')) { in strtoul() 73 c = s[1]; in strtoul() 74 s += 2; in strtoul() 82 for (acc = 0, any = 0;; c = (unsigned char) *s++) { in strtoul() 107 *endptr = (char *)(any ? s - 1 : nptr); in strtoul()
|
| /libtiff-4.0.7/tools/ |
| H A D | tiffcmp.c | 160 tsample_t s; in tiffcmp() local 195 for (s = 0; s < samplesperpixel; s++) { in tiffcmp() 207 for (s = 0; s < samplesperpixel; s++) { in tiffcmp() 216 for (s = 0; s < samplesperpixel; s++) in tiffcmp() 350 for(s = 0; s < samples_to_test; s++) { in ContigCompare() 371 for(s = 0; s < samples_to_test; s++) { in ContigCompare() 387 int s; in ContigCompare() local 389 for(s = 0; s < samples_to_test; s++) { in ContigCompare() 403 int s; in ContigCompare() local 405 for(s = 0; s < samples_to_test; s++) { in ContigCompare() [all …]
|
| H A D | tiffinfoce.c | 250 tsample_t s, samplesperpixel; in TIFFReadSeparateStripData() local 256 for (s = 0; s < samplesperpixel; s++) { in TIFFReadSeparateStripData() 338 for (s = 0; s < samplesperpixel; s++) { in TIFFReadSeparateTileData() 407 tstrip_t s; in TIFFReadRawData() local 409 for (s = 0; s < nstrips; s++) { in TIFFReadRawData() 410 if (stripbc[s] > bufsize) { in TIFFReadRawData() 412 bufsize = stripbc[s]; in TIFFReadRawData() 417 (unsigned long) s); in TIFFReadRawData() 420 if (TIFFReadRawStrip(tif, s, buf, stripbc[s]) < 0) { in TIFFReadRawData() 422 (unsigned long) s); in TIFFReadRawData() [all …]
|
| H A D | tiffinfo.c | 252 tsample_t s, samplesperpixel=0; in TIFFReadSeparateStripData() local 258 for (s = 0; s < samplesperpixel; s++) { in TIFFReadSeparateStripData() 339 tsample_t s, samplesperpixel=0; in TIFFReadSeparateTileData() local 354 for (s = 0; s < samplesperpixel; s++) { in TIFFReadSeparateTileData() 423 tstrip_t s; in TIFFReadRawData() local 425 for (s = 0; s < nstrips; s++) { in TIFFReadRawData() 426 if (stripbc[s] > bufsize) { in TIFFReadRawData() 433 (unsigned long) s); in TIFFReadRawData() 436 if (TIFFReadRawStrip(tif, s, buf, (tmsize_t) stripbc[s]) < 0) { in TIFFReadRawData() 438 (unsigned long) s); in TIFFReadRawData() [all …]
|
| H A D | tiffcp.c | 988 for (s = 0; s < ns; s++) { in DECLAREcpFunc() 1028 tsample_t s; in DECLAREcpFunc() local 1035 for (s = 0; s < spp; s++) { in DECLAREcpFunc() 1070 tsample_t s; in DECLAREcpFunc() local 1079 for (s = 0; s < spp; s++) { in DECLAREcpFunc() 1123 tsample_t s; in DECLAREcpFunc() local 1133 for (s = 0; s < spp; s++) { in DECLAREcpFunc() 1291 for (s = 0; s < spp; s++) { in DECLAREreadFunc() 1401 for (s = 0; s < spp; s++) { in DECLAREreadFunc() 1478 for (s = 0; s < spp; s++) { in DECLAREwriteFunc() [all …]
|
| H A D | tiffsplit.c | 237 tstrip_t s, ns = TIFFNumberOfStrips(in); in cpStrips() local 245 for (s = 0; s < ns; s++) { in cpStrips() 246 if (bytecounts[s] > (uint64)bufsize) { in cpStrips() 247 buf = (unsigned char *)_TIFFrealloc(buf, (tmsize_t)bytecounts[s]); in cpStrips() 250 bufsize = (tmsize_t)bytecounts[s]; in cpStrips() 252 if (TIFFReadRawStrip(in, s, buf, (tmsize_t)bytecounts[s]) < 0 || in cpStrips() 253 TIFFWriteRawStrip(out, s, buf, (tmsize_t)bytecounts[s]) < 0) { in cpStrips()
|
| H A D | thumbnail.c | 309 tstrip_t s, ns = TIFFNumberOfStrips(in); in cpStrips() local 313 for (s = 0; s < ns; s++) { in cpStrips() 314 if (bytecounts[s] > (uint64) bufsize) { in cpStrips() 315 buf = (unsigned char *)_TIFFrealloc(buf, (tmsize_t)bytecounts[s]); in cpStrips() 318 bufsize = (tmsize_t)bytecounts[s]; in cpStrips() 320 if (TIFFReadRawStrip(in, s, buf, (tmsize_t)bytecounts[s]) < 0 || in cpStrips() 321 TIFFWriteRawStrip(out, s, buf, (tmsize_t)bytecounts[s]) < 0) { in cpStrips() 602 tstrip_t s, ns = TIFFNumberOfStrips(in); in generateThumbnail() local 627 for (s = 0; s < ns; s++) { in generateThumbnail() 628 (void) TIFFReadEncodedStrip(in, s, rp, -1); in generateThumbnail()
|
| H A D | tiffcrop.c | 1013 for (s = 0; s < spp && s < MAX_SAMPLES; s++) in readSeparateTilesIntoBuffer() 1193 for (s = 0; s < spp; s++) in writeBufferToSeparateStrips() 1371 for (s = 0; s < spp; s++) in writeBufferToSeparateTiles() 3734 for (s = 0; s < spp; s++) in combineSeparateSamplesBytes() 3745 for (s = 0; (s < spp) && (s < MAX_SAMPLES); s++) in combineSeparateSamplesBytes() 3808 for (s = 0; (s < spp) && (s < MAX_SAMPLES); s++) in combineSeparateSamples8bits() 3907 for (s = 0; (s < spp) && (s < MAX_SAMPLES); s++) in combineSeparateSamples16bits() 4257 for (s = 0; s < spp; s++) in combineSeparateTileSamplesBytes() 4818 for (s = 0; (s < spp) && (s < MAX_SAMPLES); s++) in readSeparateStripsIntoBuffer() 4836 for (s = 0; (s < spp) && (s < MAX_SAMPLES); s++) in readSeparateStripsIntoBuffer() [all …]
|
| /libtiff-4.0.7/contrib/iptcutil/ |
| H A D | iptcutil.c | 99 for (; len > 0; --len, ++s) { in formatString() 100 int c = *s; in formatString() 120 putc(*s, ofile); in formatString() 150 int convertHTMLcodes(char *s, int len) in convertHTMLcodes() argument 152 if (len <=0 || s==(char*)NULL || *s=='\0') in convertHTMLcodes() 155 if (s[1] == '#') in convertHTMLcodes() 162 while (s[o] != ';') in convertHTMLcodes() 169 strcpy(s+1, s+1+o); in convertHTMLcodes() 170 *s = val; in convertHTMLcodes() 185 strcpy(s+1, s+html_codes[i].len); in convertHTMLcodes() [all …]
|
| /libtiff-4.0.7/libtiff/ |
| H A D | tif_compress.c | 52 _TIFFNoRowEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) in _TIFFNoRowEncode() argument 54 (void) pp; (void) cc; (void) s; in _TIFFNoRowEncode() 61 (void) pp; (void) cc; (void) s; in _TIFFNoStripEncode() 66 _TIFFNoTileEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) in _TIFFNoTileEncode() argument 68 (void) pp; (void) cc; (void) s; in _TIFFNoTileEncode() 96 _TIFFNoRowDecode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) in _TIFFNoRowDecode() argument 98 (void) pp; (void) cc; (void) s; in _TIFFNoRowDecode() 105 (void) pp; (void) cc; (void) s; in _TIFFNoStripDecode() 112 (void) pp; (void) cc; (void) s; in _TIFFNoTileDecode() 126 _TIFFNoPreCode(TIFF* tif, uint16 s) in _TIFFNoPreCode() argument [all …]
|
| H A D | tif_luv.c | 197 assert(s == 0); in LogL16Decode() 270 assert(s == 0); in LogLuvDecode24() 330 assert(s == 0); in LogLuvDecode32() 451 assert(s == 0); in LogL16Encode() 544 assert(s == 0); in LogLuvEncode24() 601 assert(s == 0); in LogLuvEncode32() 986 x = 9.*u * s; in LogLuv24toXYZ() 987 y = 4.*v * s; in LogLuv24toXYZ() 1124 x = 9.*u * s; in LogLuv32toXYZ() 1125 y = 4.*v * s; in LogLuv32toXYZ() [all …]
|
| 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() 117 static int JBIGCopyEncodedData(TIFF* tif, unsigned char* pp, size_t cc, uint16 s) in JBIGCopyEncodedData() argument 119 (void) s; in JBIGCopyEncodedData() 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 | tif_packbits.c | 37 PackBitsPreEncode(TIFF* tif, uint16 s) in PackBitsPreEncode() argument 39 (void) s; in PackBitsPreEncode() 66 PackBitsEncode(TIFF* tif, uint8* buf, tmsize_t cc, uint16 s) in PackBitsEncode() argument 76 (void) s; in PackBitsEncode() 197 PackBitsEncodeChunk(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s) in PackBitsEncodeChunk() argument 207 if (PackBitsEncode(tif, bp, chunk, s) < 0) in PackBitsEncodeChunk() 216 PackBitsDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in PackBitsDecode() argument 224 (void) s; in PackBitsDecode()
|
| H A D | tif_zip.c | 86 static int ZIPEncode(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s); 87 static int ZIPDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s); 123 ZIPPreDecode(TIFF* tif, uint16 s) in ZIPPreDecode() argument 128 (void) s; in ZIPPreDecode() 149 ZIPDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in ZIPDecode() argument 154 (void) s; in ZIPDecode() 228 ZIPPreEncode(TIFF* tif, uint16 s) in ZIPPreEncode() argument 233 (void) s; in ZIPPreEncode() 256 ZIPEncode(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s) in ZIPEncode() argument 264 (void) s; in ZIPEncode()
|
| H A D | tif_lzma.c | 66 static int LZMAEncode(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s); 67 static int LZMADecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s); 130 LZMAPreDecode(TIFF* tif, uint16 s) in LZMAPreDecode() argument 136 (void) s; in LZMAPreDecode() 165 LZMADecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in LZMADecode() argument 170 (void) s; in LZMADecode() 248 LZMAPreEncode(TIFF* tif, uint16 s) in LZMAPreEncode() argument 253 (void) s; in LZMAPreEncode() 272 LZMAEncode(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s) in LZMAEncode() argument 280 (void) s; in LZMAEncode()
|
| H A D | tif_unix.c | 311 _TIFFmalloc(tmsize_t s) in _TIFFmalloc() argument 313 if (s == 0) in _TIFFmalloc() 316 return (malloc((size_t) s)); in _TIFFmalloc() 326 _TIFFrealloc(void* p, tmsize_t s) in _TIFFrealloc() argument 328 return (realloc(p, (size_t) s)); in _TIFFrealloc() 338 _TIFFmemcpy(void* d, const void* s, tmsize_t c) in _TIFFmemcpy() argument 340 memcpy(d, s, (size_t) c); in _TIFFmemcpy()
|
| H A D | tif_dumpmode.c | 45 DumpModeEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) in DumpModeEncode() argument 47 (void) s; in DumpModeEncode() 78 DumpModeDecode(TIFF* tif, uint8* buf, tmsize_t cc, uint16 s) in DumpModeDecode() argument 81 (void) s; in DumpModeDecode()
|
| H A D | tif_next.c | 49 NeXTDecode(TIFF* tif, uint8* buf, tmsize_t occ, uint16 s) in NeXTDecode() argument 57 (void) s; in NeXTDecode() 155 NeXTPreDecode(TIFF* tif, uint16 s) in NeXTPreDecode() argument 159 (void)s; in NeXTPreDecode()
|
| H A D | tiffiop.h | 318 extern int _TIFFNoRowEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s); 319 extern int _TIFFNoStripEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s); 320 extern int _TIFFNoTileEncode(TIFF*, uint8* pp, tmsize_t cc, uint16 s); 321 extern int _TIFFNoRowDecode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s); 322 extern int _TIFFNoStripDecode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s); 323 extern int _TIFFNoTileDecode(TIFF*, uint8* pp, tmsize_t cc, uint16 s); 325 extern int _TIFFNoPreCode(TIFF* tif, uint16 s); 337 extern uint32 _TIFFDefaultStripSize(TIFF* tif, uint32 s);
|
| H A D | tif_win32.c | 355 _TIFFmalloc(tmsize_t s) in _TIFFmalloc() argument 357 if (s == 0) in _TIFFmalloc() 360 return (malloc((size_t) s)); in _TIFFmalloc() 370 _TIFFrealloc(void* p, tmsize_t s) in _TIFFrealloc() argument 372 return (realloc(p, (size_t) s)); in _TIFFrealloc() 382 _TIFFmemcpy(void* d, const void* s, tmsize_t c) in _TIFFmemcpy() argument 384 memcpy(d, s, (size_t) c); in _TIFFmemcpy()
|
| H A D | tif_jpeg.c | 1008 JPEGPreDecode(TIFF* tif, uint16 s) in JPEGPreDecode() argument 1189 (void) s; in JPEGDecode() 1245 (void) s; in JPEGDecode() 1351 (void) s; in DecodeRowError() 1367 (void) s; in JPEGDecodeRaw() 1882 (void) s; in JPEGEncode() 1964 (void) s; in JPEGEncodeRaw() 2230 s = (*sp->defsparent)(tif, s); in JPEGDefaultStripSize() 2231 if (s < td->td_imagelength) in JPEGDefaultStripSize() 2232 s = TIFFroundup_32(s, td->td_ycbcrsubsampling[1] * DCTSIZE); in JPEGDefaultStripSize() [all …]
|
| H A D | tif_print.c | 661 uint32 s; in TIFFPrintDirectory() local 666 for (s = 0; s < td->td_nstrips; s++) in TIFFPrintDirectory() 669 (unsigned long) s, in TIFFPrintDirectory() 670 (unsigned __int64) td->td_stripoffset[s], in TIFFPrintDirectory() 671 (unsigned __int64) td->td_stripbytecount[s]); in TIFFPrintDirectory() 674 (unsigned long) s, in TIFFPrintDirectory() 675 (unsigned long long) td->td_stripoffset[s], in TIFFPrintDirectory() 676 (unsigned long long) td->td_stripbytecount[s]); in TIFFPrintDirectory()
|
| H A D | tif_predict.c | 49 static int PredictorDecodeRow(TIFF* tif, uint8* op0, tmsize_t occ0, uint16 s); 51 static int PredictorEncodeRow(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s); 52 static int PredictorEncodeTile(TIFF* tif, uint8* bp0, tmsize_t cc0, uint16 s); 452 PredictorDecodeRow(TIFF* tif, uint8* op0, tmsize_t occ0, uint16 s) in PredictorDecodeRow() argument 460 if ((*sp->decoderow)(tif, op0, occ0, s)) { in PredictorDecodeRow() 474 PredictorDecodeTile(TIFF* tif, uint8* op0, tmsize_t occ0, uint16 s) in PredictorDecodeTile() argument 481 if ((*sp->decodetile)(tif, op0, occ0, s)) { in PredictorDecodeTile() 679 PredictorEncodeRow(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s) in PredictorEncodeRow() argument 690 return (*sp->encoderow)(tif, bp, cc, s); in PredictorEncodeRow() 694 PredictorEncodeTile(TIFF* tif, uint8* bp0, tmsize_t cc0, uint16 s) in PredictorEncodeTile() argument [all …]
|
| /libtiff-4.0.7/test/images/ |
| H A D | minisblack-1c-8b.pgm | 7 …i����������������s����������Ym����������sL#JlJGJfe[WUTRSSQPLONOQys����YUVYZ^][\]`]WWWXYZ[ZXZ[Z^… 9 3����������������r�����������o�������s: 13 …`b``cba_`acfbcfdbdbcb`a`a_befein[��������xymihlqr{������������������������������s����������Q=`\; 14 …dX\]\^___`abcbaa_ecbggddbabc```acfccdfh\^�����scXXdy~usv�������������������������������s���������~+ 48 …��������������۲`zs�����e;}�qU@60.)'Ql[J=4.1//"U������������������������������YBNRPQTWZ[]^_`ceglkj… 55 …s�����������p.i�����������������������qUlT{ttoYI952-13/0576852143141$~�������������������������… 56 …423112$k�������������������������������5:5J}�����������nITjG�y���������»Ҭ��s��fe�����������������… 80 …v|yvrsx{���������������I.+.FRQPLNNJJIEA;>>BA><1GLXlgXIHD3"%" s���������������������… 88 …',1:=>?B?@?>@:<=9[zoojhb_]ZZY]bZVTUPK?s��������������������������q'@EPU^c]aouo`UXT\co… 139 …GILOQUVTTWXZ[YYXVWWUQPPOPRX`o������cGT[XVVUVRQUXPR�TNQOSSVW\[YY\\ae{����v���s���������������������…
|