Lines Matching refs:value

66 …tic enum TIFFReadDirEntryErr TIFFReadDirEntryByte(TIFF* tif, TIFFDirEntry* direntry, uint8* value);
67 …c enum TIFFReadDirEntryErr TIFFReadDirEntryShort(TIFF* tif, TIFFDirEntry* direntry, uint16* value);
68 …ic enum TIFFReadDirEntryErr TIFFReadDirEntryLong(TIFF* tif, TIFFDirEntry* direntry, uint32* value);
69 …c enum TIFFReadDirEntryErr TIFFReadDirEntryLong8(TIFF* tif, TIFFDirEntry* direntry, uint64* value);
70 …ic enum TIFFReadDirEntryErr TIFFReadDirEntryFloat(TIFF* tif, TIFFDirEntry* direntry, float* value);
71 … enum TIFFReadDirEntryErr TIFFReadDirEntryDouble(TIFF* tif, TIFFDirEntry* direntry, double* value);
72 …ic enum TIFFReadDirEntryErr TIFFReadDirEntryIfd8(TIFF* tif, TIFFDirEntry* direntry, uint64* value);
74 …DirEntryArray(TIFF* tif, TIFFDirEntry* direntry, uint32* count, uint32 desttypesize, void** value);
75 …um TIFFReadDirEntryErr TIFFReadDirEntryByteArray(TIFF* tif, TIFFDirEntry* direntry, uint8** value);
76 …um TIFFReadDirEntryErr TIFFReadDirEntrySbyteArray(TIFF* tif, TIFFDirEntry* direntry, int8** value);
77 … TIFFReadDirEntryErr TIFFReadDirEntryShortArray(TIFF* tif, TIFFDirEntry* direntry, uint16** value);
78 … TIFFReadDirEntryErr TIFFReadDirEntrySshortArray(TIFF* tif, TIFFDirEntry* direntry, int16** value);
79 …m TIFFReadDirEntryErr TIFFReadDirEntryLongArray(TIFF* tif, TIFFDirEntry* direntry, uint32** value);
80 …m TIFFReadDirEntryErr TIFFReadDirEntrySlongArray(TIFF* tif, TIFFDirEntry* direntry, int32** value);
81 … TIFFReadDirEntryErr TIFFReadDirEntryLong8Array(TIFF* tif, TIFFDirEntry* direntry, uint64** value);
82 … TIFFReadDirEntryErr TIFFReadDirEntrySlong8Array(TIFF* tif, TIFFDirEntry* direntry, int64** value);
83 …m TIFFReadDirEntryErr TIFFReadDirEntryFloatArray(TIFF* tif, TIFFDirEntry* direntry, float** value);
84 …TIFFReadDirEntryErr TIFFReadDirEntryDoubleArray(TIFF* tif, TIFFDirEntry* direntry, double** value);
85 …m TIFFReadDirEntryErr TIFFReadDirEntryIfd8Array(TIFF* tif, TIFFDirEntry* direntry, uint64** value);
87 …FFReadDirEntryErr TIFFReadDirEntryPersampleShort(TIFF* tif, TIFFDirEntry* direntry, uint16* value);
89 …FReadDirEntryErr TIFFReadDirEntryPersampleDouble(TIFF* tif, TIFFDirEntry* direntry, double* value);
92 static void TIFFReadDirEntryCheckedByte(TIFF* tif, TIFFDirEntry* direntry, uint8* value);
93 static void TIFFReadDirEntryCheckedSbyte(TIFF* tif, TIFFDirEntry* direntry, int8* value);
94 static void TIFFReadDirEntryCheckedShort(TIFF* tif, TIFFDirEntry* direntry, uint16* value);
95 static void TIFFReadDirEntryCheckedSshort(TIFF* tif, TIFFDirEntry* direntry, int16* value);
96 static void TIFFReadDirEntryCheckedLong(TIFF* tif, TIFFDirEntry* direntry, uint32* value);
97 static void TIFFReadDirEntryCheckedSlong(TIFF* tif, TIFFDirEntry* direntry, int32* value);
98 …TIFFReadDirEntryErr TIFFReadDirEntryCheckedLong8(TIFF* tif, TIFFDirEntry* direntry, uint64* value);
99 …TIFFReadDirEntryErr TIFFReadDirEntryCheckedSlong8(TIFF* tif, TIFFDirEntry* direntry, int64* value);
100 …FReadDirEntryErr TIFFReadDirEntryCheckedRational(TIFF* tif, TIFFDirEntry* direntry, double* value);
101 …ReadDirEntryErr TIFFReadDirEntryCheckedSrational(TIFF* tif, TIFFDirEntry* direntry, double* value);
102 static void TIFFReadDirEntryCheckedFloat(TIFF* tif, TIFFDirEntry* direntry, float* value);
103 …IFFReadDirEntryErr TIFFReadDirEntryCheckedDouble(TIFF* tif, TIFFDirEntry* direntry, double* value);
105 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeByteSbyte(int8 value);
106 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeByteShort(uint16 value);
107 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeByteSshort(int16 value);
108 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeByteLong(uint32 value);
109 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeByteSlong(int32 value);
110 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeByteLong8(uint64 value);
111 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeByteSlong8(int64 value);
113 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSbyteByte(uint8 value);
114 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSbyteShort(uint16 value);
115 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSbyteSshort(int16 value);
116 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSbyteLong(uint32 value);
117 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSbyteSlong(int32 value);
118 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSbyteLong8(uint64 value);
119 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSbyteSlong8(int64 value);
121 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeShortSbyte(int8 value);
122 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeShortSshort(int16 value);
123 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeShortLong(uint32 value);
124 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeShortSlong(int32 value);
125 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeShortLong8(uint64 value);
126 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeShortSlong8(int64 value);
128 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSshortShort(uint16 value);
129 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSshortLong(uint32 value);
130 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSshortSlong(int32 value);
131 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSshortLong8(uint64 value);
132 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSshortSlong8(int64 value);
134 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeLongSbyte(int8 value);
135 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeLongSshort(int16 value);
136 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeLongSlong(int32 value);
137 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeLongLong8(uint64 value);
138 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeLongSlong8(int64 value);
140 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSlongLong(uint32 value);
141 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSlongLong8(uint64 value);
142 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSlongSlong8(int64 value);
144 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeLong8Sbyte(int8 value);
145 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeLong8Sshort(int16 value);
146 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeLong8Slong(int32 value);
147 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeLong8Slong8(int64 value);
149 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSlong8Long8(uint64 value);
167 static uint64 TIFFReadUInt64(const uint8 *value);
183 static uint64 TIFFReadUInt64(const uint8 *value) in TIFFReadUInt64() argument
187 result.c[0]=value[0]; in TIFFReadUInt64()
188 result.c[1]=value[1]; in TIFFReadUInt64()
189 result.c[2]=value[2]; in TIFFReadUInt64()
190 result.c[3]=value[3]; in TIFFReadUInt64()
191 result.c[4]=value[4]; in TIFFReadUInt64()
192 result.c[5]=value[5]; in TIFFReadUInt64()
193 result.c[6]=value[6]; in TIFFReadUInt64()
194 result.c[7]=value[7]; in TIFFReadUInt64()
199 …atic enum TIFFReadDirEntryErr TIFFReadDirEntryByte(TIFF* tif, TIFFDirEntry* direntry, uint8* value) in TIFFReadDirEntryByte() argument
207 TIFFReadDirEntryCheckedByte(tif,direntry,value); in TIFFReadDirEntryByte()
216 *value=(uint8)m; in TIFFReadDirEntryByte()
226 *value=(uint8)m; in TIFFReadDirEntryByte()
236 *value=(uint8)m; in TIFFReadDirEntryByte()
246 *value=(uint8)m; in TIFFReadDirEntryByte()
256 *value=(uint8)m; in TIFFReadDirEntryByte()
268 *value=(uint8)m; in TIFFReadDirEntryByte()
280 *value=(uint8)m; in TIFFReadDirEntryByte()
288 …ic enum TIFFReadDirEntryErr TIFFReadDirEntryShort(TIFF* tif, TIFFDirEntry* direntry, uint16* value) in TIFFReadDirEntryShort() argument
299 *value=(uint16)m; in TIFFReadDirEntryShort()
309 *value=(uint16)m; in TIFFReadDirEntryShort()
313 TIFFReadDirEntryCheckedShort(tif,direntry,value); in TIFFReadDirEntryShort()
322 *value=(uint16)m; in TIFFReadDirEntryShort()
332 *value=(uint16)m; in TIFFReadDirEntryShort()
342 *value=(uint16)m; in TIFFReadDirEntryShort()
354 *value=(uint16)m; in TIFFReadDirEntryShort()
366 *value=(uint16)m; in TIFFReadDirEntryShort()
374 …tic enum TIFFReadDirEntryErr TIFFReadDirEntryLong(TIFF* tif, TIFFDirEntry* direntry, uint32* value) in TIFFReadDirEntryLong() argument
385 *value=(uint32)m; in TIFFReadDirEntryLong()
395 *value=(uint32)m; in TIFFReadDirEntryLong()
402 *value=(uint32)m; in TIFFReadDirEntryLong()
412 *value=(uint32)m; in TIFFReadDirEntryLong()
416 TIFFReadDirEntryCheckedLong(tif,direntry,value); in TIFFReadDirEntryLong()
425 *value=(uint32)m; in TIFFReadDirEntryLong()
437 *value=(uint32)m; in TIFFReadDirEntryLong()
449 *value=(uint32)m; in TIFFReadDirEntryLong()
457 …ic enum TIFFReadDirEntryErr TIFFReadDirEntryLong8(TIFF* tif, TIFFDirEntry* direntry, uint64* value) in TIFFReadDirEntryLong8() argument
468 *value=(uint64)m; in TIFFReadDirEntryLong8()
478 *value=(uint64)m; in TIFFReadDirEntryLong8()
485 *value=(uint64)m; in TIFFReadDirEntryLong8()
495 *value=(uint64)m; in TIFFReadDirEntryLong8()
502 *value=(uint64)m; in TIFFReadDirEntryLong8()
512 *value=(uint64)m; in TIFFReadDirEntryLong8()
516 err=TIFFReadDirEntryCheckedLong8(tif,direntry,value); in TIFFReadDirEntryLong8()
527 *value=(uint64)m; in TIFFReadDirEntryLong8()
535 …tic enum TIFFReadDirEntryErr TIFFReadDirEntryFloat(TIFF* tif, TIFFDirEntry* direntry, float* value) in TIFFReadDirEntryFloat() argument
546 *value=(float)m; in TIFFReadDirEntryFloat()
553 *value=(float)m; in TIFFReadDirEntryFloat()
560 *value=(float)m; in TIFFReadDirEntryFloat()
567 *value=(float)m; in TIFFReadDirEntryFloat()
574 *value=(float)m; in TIFFReadDirEntryFloat()
581 *value=(float)m; in TIFFReadDirEntryFloat()
596 *value = _TIFFUInt64ToFloat(m); in TIFFReadDirEntryFloat()
598 *value=(float)m; in TIFFReadDirEntryFloat()
608 *value=(float)m; in TIFFReadDirEntryFloat()
617 *value=(float)m; in TIFFReadDirEntryFloat()
626 *value=(float)m; in TIFFReadDirEntryFloat()
630 TIFFReadDirEntryCheckedFloat(tif,direntry,value); in TIFFReadDirEntryFloat()
638 *value=(float)m; in TIFFReadDirEntryFloat()
646 …c enum TIFFReadDirEntryErr TIFFReadDirEntryDouble(TIFF* tif, TIFFDirEntry* direntry, double* value) in TIFFReadDirEntryDouble() argument
657 *value=(double)m; in TIFFReadDirEntryDouble()
664 *value=(double)m; in TIFFReadDirEntryDouble()
671 *value=(double)m; in TIFFReadDirEntryDouble()
678 *value=(double)m; in TIFFReadDirEntryDouble()
685 *value=(double)m; in TIFFReadDirEntryDouble()
692 *value=(double)m; in TIFFReadDirEntryDouble()
707 *value = _TIFFUInt64ToDouble(m); in TIFFReadDirEntryDouble()
709 *value = (double)m; in TIFFReadDirEntryDouble()
719 *value=(double)m; in TIFFReadDirEntryDouble()
723 err=TIFFReadDirEntryCheckedRational(tif,direntry,value); in TIFFReadDirEntryDouble()
726 err=TIFFReadDirEntryCheckedSrational(tif,direntry,value); in TIFFReadDirEntryDouble()
732 *value=(double)m; in TIFFReadDirEntryDouble()
736 err=TIFFReadDirEntryCheckedDouble(tif,direntry,value); in TIFFReadDirEntryDouble()
743 …tic enum TIFFReadDirEntryErr TIFFReadDirEntryIfd8(TIFF* tif, TIFFDirEntry* direntry, uint64* value) in TIFFReadDirEntryIfd8() argument
755 *value=(uint64)m; in TIFFReadDirEntryIfd8()
760 err=TIFFReadDirEntryCheckedLong8(tif,direntry,value); in TIFFReadDirEntryIfd8()
767 …dDirEntryArray(TIFF* tif, TIFFDirEntry* direntry, uint32* count, uint32 desttypesize, void** value) in TIFFReadDirEntryArray() argument
775 *value=0; in TIFFReadDirEntryArray()
832 *value=data; in TIFFReadDirEntryArray()
836 …num TIFFReadDirEntryErr TIFFReadDirEntryByteArray(TIFF* tif, TIFFDirEntry* direntry, uint8** value) in TIFFReadDirEntryByteArray() argument
861 *value=0; in TIFFReadDirEntryByteArray()
869 *value=(uint8*)origdata; in TIFFReadDirEntryByteArray()
886 *value=(uint8*)origdata; in TIFFReadDirEntryByteArray()
1013 *value=data; in TIFFReadDirEntryByteArray()
1017 …num TIFFReadDirEntryErr TIFFReadDirEntrySbyteArray(TIFF* tif, TIFFDirEntry* direntry, int8** value) in TIFFReadDirEntrySbyteArray() argument
1041 *value=0; in TIFFReadDirEntrySbyteArray()
1062 *value=(int8*)origdata; in TIFFReadDirEntrySbyteArray()
1066 *value=(int8*)origdata; in TIFFReadDirEntrySbyteArray()
1192 *value=data; in TIFFReadDirEntrySbyteArray()
1196 …m TIFFReadDirEntryErr TIFFReadDirEntryShortArray(TIFF* tif, TIFFDirEntry* direntry, uint16** value) in TIFFReadDirEntryShortArray() argument
1219 *value=0; in TIFFReadDirEntryShortArray()
1225 *value=(uint16*)origdata; in TIFFReadDirEntryShortArray()
1227 TIFFSwabArrayOfShort(*value,count); in TIFFReadDirEntryShortArray()
1246 *value=(uint16*)origdata; in TIFFReadDirEntryShortArray()
1364 *value=data; in TIFFReadDirEntryShortArray()
1368 …m TIFFReadDirEntryErr TIFFReadDirEntrySshortArray(TIFF* tif, TIFFDirEntry* direntry, int16** value) in TIFFReadDirEntrySshortArray() argument
1391 *value=0; in TIFFReadDirEntrySshortArray()
1413 *value=(int16*)origdata; in TIFFReadDirEntrySshortArray()
1417 *value=(int16*)origdata; in TIFFReadDirEntrySshortArray()
1419 TIFFSwabArrayOfShort((uint16*)(*value),count); in TIFFReadDirEntrySshortArray()
1531 *value=data; in TIFFReadDirEntrySshortArray()
1535 …um TIFFReadDirEntryErr TIFFReadDirEntryLongArray(TIFF* tif, TIFFDirEntry* direntry, uint32** value) in TIFFReadDirEntryLongArray() argument
1558 *value=0; in TIFFReadDirEntryLongArray()
1564 *value=(uint32*)origdata; in TIFFReadDirEntryLongArray()
1566 TIFFSwabArrayOfLong(*value,count); in TIFFReadDirEntryLongArray()
1585 *value=(uint32*)origdata; in TIFFReadDirEntryLongArray()
1700 *value=data; in TIFFReadDirEntryLongArray()
1704 …um TIFFReadDirEntryErr TIFFReadDirEntrySlongArray(TIFF* tif, TIFFDirEntry* direntry, int32** value) in TIFFReadDirEntrySlongArray() argument
1727 *value=0; in TIFFReadDirEntrySlongArray()
1749 *value=(int32*)origdata; in TIFFReadDirEntrySlongArray()
1753 *value=(int32*)origdata; in TIFFReadDirEntrySlongArray()
1755 TIFFSwabArrayOfLong((uint32*)(*value),count); in TIFFReadDirEntrySlongArray()
1861 *value=data; in TIFFReadDirEntrySlongArray()
1865 …m TIFFReadDirEntryErr TIFFReadDirEntryLong8Array(TIFF* tif, TIFFDirEntry* direntry, uint64** value) in TIFFReadDirEntryLong8Array() argument
1888 *value=0; in TIFFReadDirEntryLong8Array()
1894 *value=(uint64*)origdata; in TIFFReadDirEntryLong8Array()
1896 TIFFSwabArrayOfLong8(*value,count); in TIFFReadDirEntryLong8Array()
1915 *value=(uint64*)origdata; in TIFFReadDirEntryLong8Array()
2027 *value=data; in TIFFReadDirEntryLong8Array()
2031 …m TIFFReadDirEntryErr TIFFReadDirEntrySlong8Array(TIFF* tif, TIFFDirEntry* direntry, int64** value) in TIFFReadDirEntrySlong8Array() argument
2054 *value=0; in TIFFReadDirEntrySlong8Array()
2076 *value=(int64*)origdata; in TIFFReadDirEntrySlong8Array()
2080 *value=(int64*)origdata; in TIFFReadDirEntrySlong8Array()
2082 TIFFSwabArrayOfLong8((uint64*)(*value),count); in TIFFReadDirEntrySlong8Array()
2177 *value=data; in TIFFReadDirEntrySlong8Array()
2181 …um TIFFReadDirEntryErr TIFFReadDirEntryFloatArray(TIFF* tif, TIFFDirEntry* direntry, float** value) in TIFFReadDirEntryFloatArray() argument
2208 *value=0; in TIFFReadDirEntryFloatArray()
2217 *value=(float*)origdata; in TIFFReadDirEntryFloatArray()
2414 *value=data; in TIFFReadDirEntryFloatArray()
2419 TIFFReadDirEntryDoubleArray(TIFF* tif, TIFFDirEntry* direntry, double** value) in TIFFReadDirEntryDoubleArray() argument
2446 *value=0; in TIFFReadDirEntryDoubleArray()
2455 *value=(double*)origdata; in TIFFReadDirEntryDoubleArray()
2652 *value=data; in TIFFReadDirEntryDoubleArray()
2656 …um TIFFReadDirEntryErr TIFFReadDirEntryIfd8Array(TIFF* tif, TIFFDirEntry* direntry, uint64** value) in TIFFReadDirEntryIfd8Array() argument
2675 *value=0; in TIFFReadDirEntryIfd8Array()
2682 *value=(uint64*)origdata; in TIFFReadDirEntryIfd8Array()
2684 TIFFSwabArrayOfLong8(*value,count); in TIFFReadDirEntryIfd8Array()
2713 *value=data; in TIFFReadDirEntryIfd8Array()
2717 …IFFReadDirEntryErr TIFFReadDirEntryPersampleShort(TIFF* tif, TIFFDirEntry* direntry, uint16* value) in TIFFReadDirEntryPersampleShort() argument
2730 *value=*na++; in TIFFReadDirEntryPersampleShort()
2734 if (*na++!=*value) in TIFFReadDirEntryPersampleShort()
2746 …FFReadDirEntryErr TIFFReadDirEntryPersampleDouble(TIFF* tif, TIFFDirEntry* direntry, double* value)
2759 *value=*na++;
2763 if (*na++!=*value)
2775 static void TIFFReadDirEntryCheckedByte(TIFF* tif, TIFFDirEntry* direntry, uint8* value) in TIFFReadDirEntryCheckedByte() argument
2778 *value=*(uint8*)(&direntry->tdir_offset); in TIFFReadDirEntryCheckedByte()
2781 static void TIFFReadDirEntryCheckedSbyte(TIFF* tif, TIFFDirEntry* direntry, int8* value) in TIFFReadDirEntryCheckedSbyte() argument
2784 *value=*(int8*)(&direntry->tdir_offset); in TIFFReadDirEntryCheckedSbyte()
2787 static void TIFFReadDirEntryCheckedShort(TIFF* tif, TIFFDirEntry* direntry, uint16* value) in TIFFReadDirEntryCheckedShort() argument
2789 *value = direntry->tdir_offset.toff_short; in TIFFReadDirEntryCheckedShort()
2792 TIFFSwabShort(value); in TIFFReadDirEntryCheckedShort()
2795 static void TIFFReadDirEntryCheckedSshort(TIFF* tif, TIFFDirEntry* direntry, int16* value) in TIFFReadDirEntryCheckedSshort() argument
2797 *value=*(int16*)(&direntry->tdir_offset); in TIFFReadDirEntryCheckedSshort()
2799 TIFFSwabShort((uint16*)value); in TIFFReadDirEntryCheckedSshort()
2802 static void TIFFReadDirEntryCheckedLong(TIFF* tif, TIFFDirEntry* direntry, uint32* value) in TIFFReadDirEntryCheckedLong() argument
2804 *value=*(uint32*)(&direntry->tdir_offset); in TIFFReadDirEntryCheckedLong()
2806 TIFFSwabLong(value); in TIFFReadDirEntryCheckedLong()
2809 static void TIFFReadDirEntryCheckedSlong(TIFF* tif, TIFFDirEntry* direntry, int32* value) in TIFFReadDirEntryCheckedSlong() argument
2811 *value=*(int32*)(&direntry->tdir_offset); in TIFFReadDirEntryCheckedSlong()
2813 TIFFSwabLong((uint32*)value); in TIFFReadDirEntryCheckedSlong()
2816 … TIFFReadDirEntryErr TIFFReadDirEntryCheckedLong8(TIFF* tif, TIFFDirEntry* direntry, uint64* value) in TIFFReadDirEntryCheckedLong8() argument
2824 err=TIFFReadDirEntryData(tif,offset,8,value); in TIFFReadDirEntryCheckedLong8()
2829 *value = direntry->tdir_offset.toff_long8; in TIFFReadDirEntryCheckedLong8()
2831 TIFFSwabLong8(value); in TIFFReadDirEntryCheckedLong8()
2835 … TIFFReadDirEntryErr TIFFReadDirEntryCheckedSlong8(TIFF* tif, TIFFDirEntry* direntry, int64* value) in TIFFReadDirEntryCheckedSlong8() argument
2843 err=TIFFReadDirEntryData(tif,offset,8,value); in TIFFReadDirEntryCheckedSlong8()
2848 *value=*(int64*)(&direntry->tdir_offset); in TIFFReadDirEntryCheckedSlong8()
2850 TIFFSwabLong8((uint64*)value); in TIFFReadDirEntryCheckedSlong8()
2854 …FFReadDirEntryErr TIFFReadDirEntryCheckedRational(TIFF* tif, TIFFDirEntry* direntry, double* value) in TIFFReadDirEntryCheckedRational() argument
2876 *value=0.0; in TIFFReadDirEntryCheckedRational()
2878 *value=(double)m.i[0]/(double)m.i[1]; in TIFFReadDirEntryCheckedRational()
2882 …FReadDirEntryErr TIFFReadDirEntryCheckedSrational(TIFF* tif, TIFFDirEntry* direntry, double* value) in TIFFReadDirEntryCheckedSrational() argument
2904 *value=0.0; in TIFFReadDirEntryCheckedSrational()
2906 *value=(double)((int32)m.i[0])/(double)m.i[1]; in TIFFReadDirEntryCheckedSrational()
2910 static void TIFFReadDirEntryCheckedFloat(TIFF* tif, TIFFDirEntry* direntry, float* value) in TIFFReadDirEntryCheckedFloat() argument
2921 *value=float_union.f; in TIFFReadDirEntryCheckedFloat()
2923 TIFFSwabLong((uint32*)value); in TIFFReadDirEntryCheckedFloat()
2926 …TIFFReadDirEntryErr TIFFReadDirEntryCheckedDouble(TIFF* tif, TIFFDirEntry* direntry, double* value) in TIFFReadDirEntryCheckedDouble() argument
2937 err=TIFFReadDirEntryData(tif,offset,8,value); in TIFFReadDirEntryCheckedDouble()
2945 *value=uint64_union.d; in TIFFReadDirEntryCheckedDouble()
2948 TIFFSwabLong8((uint64*)value); in TIFFReadDirEntryCheckedDouble()
2952 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeByteSbyte(int8 value) in TIFFReadDirEntryCheckRangeByteSbyte() argument
2954 if (value<0) in TIFFReadDirEntryCheckRangeByteSbyte()
2960 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeByteShort(uint16 value) in TIFFReadDirEntryCheckRangeByteShort() argument
2962 if (value>0xFF) in TIFFReadDirEntryCheckRangeByteShort()
2968 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeByteSshort(int16 value) in TIFFReadDirEntryCheckRangeByteSshort() argument
2970 if ((value<0)||(value>0xFF)) in TIFFReadDirEntryCheckRangeByteSshort()
2976 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeByteLong(uint32 value) in TIFFReadDirEntryCheckRangeByteLong() argument
2978 if (value>0xFF) in TIFFReadDirEntryCheckRangeByteLong()
2984 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeByteSlong(int32 value) in TIFFReadDirEntryCheckRangeByteSlong() argument
2986 if ((value<0)||(value>0xFF)) in TIFFReadDirEntryCheckRangeByteSlong()
2992 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeByteLong8(uint64 value) in TIFFReadDirEntryCheckRangeByteLong8() argument
2994 if (value>0xFF) in TIFFReadDirEntryCheckRangeByteLong8()
3000 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeByteSlong8(int64 value) in TIFFReadDirEntryCheckRangeByteSlong8() argument
3002 if ((value<0)||(value>0xFF)) in TIFFReadDirEntryCheckRangeByteSlong8()
3008 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSbyteByte(uint8 value) in TIFFReadDirEntryCheckRangeSbyteByte() argument
3010 if (value>0x7F) in TIFFReadDirEntryCheckRangeSbyteByte()
3016 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSbyteShort(uint16 value) in TIFFReadDirEntryCheckRangeSbyteShort() argument
3018 if (value>0x7F) in TIFFReadDirEntryCheckRangeSbyteShort()
3024 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSbyteSshort(int16 value) in TIFFReadDirEntryCheckRangeSbyteSshort() argument
3026 if ((value<-0x80)||(value>0x7F)) in TIFFReadDirEntryCheckRangeSbyteSshort()
3032 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSbyteLong(uint32 value) in TIFFReadDirEntryCheckRangeSbyteLong() argument
3034 if (value>0x7F) in TIFFReadDirEntryCheckRangeSbyteLong()
3040 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSbyteSlong(int32 value) in TIFFReadDirEntryCheckRangeSbyteSlong() argument
3042 if ((value<-0x80)||(value>0x7F)) in TIFFReadDirEntryCheckRangeSbyteSlong()
3048 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSbyteLong8(uint64 value) in TIFFReadDirEntryCheckRangeSbyteLong8() argument
3050 if (value>0x7F) in TIFFReadDirEntryCheckRangeSbyteLong8()
3056 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSbyteSlong8(int64 value) in TIFFReadDirEntryCheckRangeSbyteSlong8() argument
3058 if ((value<-0x80)||(value>0x7F)) in TIFFReadDirEntryCheckRangeSbyteSlong8()
3064 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeShortSbyte(int8 value) in TIFFReadDirEntryCheckRangeShortSbyte() argument
3066 if (value<0) in TIFFReadDirEntryCheckRangeShortSbyte()
3072 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeShortSshort(int16 value) in TIFFReadDirEntryCheckRangeShortSshort() argument
3074 if (value<0) in TIFFReadDirEntryCheckRangeShortSshort()
3080 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeShortLong(uint32 value) in TIFFReadDirEntryCheckRangeShortLong() argument
3082 if (value>0xFFFF) in TIFFReadDirEntryCheckRangeShortLong()
3088 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeShortSlong(int32 value) in TIFFReadDirEntryCheckRangeShortSlong() argument
3090 if ((value<0)||(value>0xFFFF)) in TIFFReadDirEntryCheckRangeShortSlong()
3096 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeShortLong8(uint64 value) in TIFFReadDirEntryCheckRangeShortLong8() argument
3098 if (value>0xFFFF) in TIFFReadDirEntryCheckRangeShortLong8()
3104 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeShortSlong8(int64 value) in TIFFReadDirEntryCheckRangeShortSlong8() argument
3106 if ((value<0)||(value>0xFFFF)) in TIFFReadDirEntryCheckRangeShortSlong8()
3112 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSshortShort(uint16 value) in TIFFReadDirEntryCheckRangeSshortShort() argument
3114 if (value>0x7FFF) in TIFFReadDirEntryCheckRangeSshortShort()
3120 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSshortLong(uint32 value) in TIFFReadDirEntryCheckRangeSshortLong() argument
3122 if (value>0x7FFF) in TIFFReadDirEntryCheckRangeSshortLong()
3128 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSshortSlong(int32 value) in TIFFReadDirEntryCheckRangeSshortSlong() argument
3130 if ((value<-0x8000)||(value>0x7FFF)) in TIFFReadDirEntryCheckRangeSshortSlong()
3136 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSshortLong8(uint64 value) in TIFFReadDirEntryCheckRangeSshortLong8() argument
3138 if (value>0x7FFF) in TIFFReadDirEntryCheckRangeSshortLong8()
3144 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSshortSlong8(int64 value) in TIFFReadDirEntryCheckRangeSshortSlong8() argument
3146 if ((value<-0x8000)||(value>0x7FFF)) in TIFFReadDirEntryCheckRangeSshortSlong8()
3152 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeLongSbyte(int8 value) in TIFFReadDirEntryCheckRangeLongSbyte() argument
3154 if (value<0) in TIFFReadDirEntryCheckRangeLongSbyte()
3160 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeLongSshort(int16 value) in TIFFReadDirEntryCheckRangeLongSshort() argument
3162 if (value<0) in TIFFReadDirEntryCheckRangeLongSshort()
3168 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeLongSlong(int32 value) in TIFFReadDirEntryCheckRangeLongSlong() argument
3170 if (value<0) in TIFFReadDirEntryCheckRangeLongSlong()
3182 TIFFReadDirEntryCheckRangeLongLong8(uint64 value) in TIFFReadDirEntryCheckRangeLongLong8() argument
3184 if (value > TIFF_UINT32_MAX) in TIFFReadDirEntryCheckRangeLongLong8()
3191 TIFFReadDirEntryCheckRangeLongSlong8(int64 value) in TIFFReadDirEntryCheckRangeLongSlong8() argument
3193 if ((value < 0) || (value > (int64) TIFF_UINT32_MAX)) in TIFFReadDirEntryCheckRangeLongSlong8()
3202 TIFFReadDirEntryCheckRangeSlongLong(uint32 value) in TIFFReadDirEntryCheckRangeSlongLong() argument
3204 if (value > 0x7FFFFFFFUL) in TIFFReadDirEntryCheckRangeSlongLong()
3212 TIFFReadDirEntryCheckRangeSlongLong8(uint64 value) in TIFFReadDirEntryCheckRangeSlongLong8() argument
3214 if (value > 0x7FFFFFFF) in TIFFReadDirEntryCheckRangeSlongLong8()
3222 TIFFReadDirEntryCheckRangeSlongSlong8(int64 value) in TIFFReadDirEntryCheckRangeSlongSlong8() argument
3224 if ((value < 0-((int64) 0x7FFFFFFF+1)) || (value > 0x7FFFFFFF)) in TIFFReadDirEntryCheckRangeSlongSlong8()
3231 TIFFReadDirEntryCheckRangeLong8Sbyte(int8 value) in TIFFReadDirEntryCheckRangeLong8Sbyte() argument
3233 if (value < 0) in TIFFReadDirEntryCheckRangeLong8Sbyte()
3240 TIFFReadDirEntryCheckRangeLong8Sshort(int16 value) in TIFFReadDirEntryCheckRangeLong8Sshort() argument
3242 if (value < 0) in TIFFReadDirEntryCheckRangeLong8Sshort()
3249 TIFFReadDirEntryCheckRangeLong8Slong(int32 value) in TIFFReadDirEntryCheckRangeLong8Slong() argument
3251 if (value < 0) in TIFFReadDirEntryCheckRangeLong8Slong()
3258 TIFFReadDirEntryCheckRangeLong8Slong8(int64 value) in TIFFReadDirEntryCheckRangeLong8Slong8() argument
3260 if (value < 0) in TIFFReadDirEntryCheckRangeLong8Slong8()
3272 TIFFReadDirEntryCheckRangeSlong8Long8(uint64 value) in TIFFReadDirEntryCheckRangeSlong8Long8() argument
3274 if (value > TIFF_INT64_MAX) in TIFFReadDirEntryCheckRangeSlong8Long8()
3490 uint16 value; in TIFFReadDirectory() local
3492 err=TIFFReadDirEntryShort(tif,dp,&value); in TIFFReadDirectory()
3494 err=TIFFReadDirEntryPersampleShort(tif,dp,&value); in TIFFReadDirectory()
3500 if (!TIFFSetField(tif,TIFFTAG_COMPRESSION,value)) in TIFFReadDirectory()
3677 uint16 value; in TIFFReadDirectory() local
3679 err=TIFFReadDirEntryShort(tif,dp,&value); in TIFFReadDirectory()
3681 err=TIFFReadDirEntryPersampleShort(tif,dp,&value); in TIFFReadDirectory()
3688 if (!TIFFSetField(tif,dp->tdir_tag,value)) in TIFFReadDirectory()
3748 uint16* value=NULL; in TIFFReadDirectory() local
3788 err=TIFFReadDirEntryShortArray(tif,dp,&value); in TIFFReadDirectory()
3796 TIFFSetField(tif,dp->tdir_tag,value,value+incrementpersample,value+2*incrementpersample); in TIFFReadDirectory()
3797 _TIFFfree(value); in TIFFReadDirectory()
3805 uint32 value; in TIFFReadDirectory() local
3810 case OFILETYPE_REDUCEDIMAGE: value=FILETYPE_REDUCEDIMAGE; break; in TIFFReadDirectory()
3811 case OFILETYPE_PAGE: value=FILETYPE_PAGE; break; in TIFFReadDirectory()
3812 default: value=0; break; in TIFFReadDirectory()
3814 if (value!=0) in TIFFReadDirectory()
3815 TIFFSetField(tif,TIFFTAG_SUBFILETYPE,value); in TIFFReadDirectory()