Lines Matching defs:direntry
66 static enum TIFFReadDirEntryErr TIFFReadDirEntryByte(TIFF* tif, TIFFDirEntry* direntry, uint8* value);
67 static enum TIFFReadDirEntryErr TIFFReadDirEntryShort(TIFF* tif, TIFFDirEntry* direntry, uint16* value);
68 static enum TIFFReadDirEntryErr TIFFReadDirEntryLong(TIFF* tif, TIFFDirEntry* direntry, uint32* value);
69 static enum TIFFReadDirEntryErr TIFFReadDirEntryLong8(TIFF* tif, TIFFDirEntry* direntry, uint64* value);
70 static enum TIFFReadDirEntryErr TIFFReadDirEntryFloat(TIFF* tif, TIFFDirEntry* direntry, float* value);
71 static enum TIFFReadDirEntryErr TIFFReadDirEntryDouble(TIFF* tif, TIFFDirEntry* direntry, double* value);
72 static enum TIFFReadDirEntryErr TIFFReadDirEntryIfd8(TIFF* tif, TIFFDirEntry* direntry, uint64* value);
74 static enum TIFFReadDirEntryErr TIFFReadDirEntryArray(TIFF* tif, TIFFDirEntry* direntry, uint32* count, uint32 desttypesize, void** value);
75 static enum TIFFReadDirEntryErr TIFFReadDirEntryByteArray(TIFF* tif, TIFFDirEntry* direntry, uint8** value);
76 static enum TIFFReadDirEntryErr TIFFReadDirEntrySbyteArray(TIFF* tif, TIFFDirEntry* direntry, int8** value);
77 static enum TIFFReadDirEntryErr TIFFReadDirEntryShortArray(TIFF* tif, TIFFDirEntry* direntry, uint16** value);
78 static enum TIFFReadDirEntryErr TIFFReadDirEntrySshortArray(TIFF* tif, TIFFDirEntry* direntry, int16** value);
79 static enum TIFFReadDirEntryErr TIFFReadDirEntryLongArray(TIFF* tif, TIFFDirEntry* direntry, uint32** value);
80 static enum TIFFReadDirEntryErr TIFFReadDirEntrySlongArray(TIFF* tif, TIFFDirEntry* direntry, int32** value);
81 static enum TIFFReadDirEntryErr TIFFReadDirEntryLong8Array(TIFF* tif, TIFFDirEntry* direntry, uint64** value);
82 static enum TIFFReadDirEntryErr TIFFReadDirEntrySlong8Array(TIFF* tif, TIFFDirEntry* direntry, int64** value);
83 static enum TIFFReadDirEntryErr TIFFReadDirEntryFloatArray(TIFF* tif, TIFFDirEntry* direntry, float** value);
84 static enum TIFFReadDirEntryErr TIFFReadDirEntryDoubleArray(TIFF* tif, TIFFDirEntry* direntry, double** value);
85 static enum TIFFReadDirEntryErr TIFFReadDirEntryIfd8Array(TIFF* tif, TIFFDirEntry* direntry, uint64** value);
87 static enum TIFFReadDirEntryErr TIFFReadDirEntryPersampleShort(TIFF* tif, TIFFDirEntry* direntry, uint16* value);
89 static enum TIFFReadDirEntryErr 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 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckedLong8(TIFF* tif, TIFFDirEntry* direntry, uint64* value);
99 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckedSlong8(TIFF* tif, TIFFDirEntry* direntry, int64* value);
100 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckedRational(TIFF* tif, TIFFDirEntry* direntry, double* value);
101 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckedSrational(TIFF* tif, TIFFDirEntry* direntry, double* value);
102 static void TIFFReadDirEntryCheckedFloat(TIFF* tif, TIFFDirEntry* direntry, float* value);
103 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckedDouble(TIFF* tif, TIFFDirEntry* direntry, double* value);
197 static enum TIFFReadDirEntryErr TIFFReadDirEntryByte(TIFF* tif, TIFFDirEntry* direntry, uint8* value)
200 if (direntry->tdir_count!=1)
202 switch (direntry->tdir_type)
205 TIFFReadDirEntryCheckedByte(tif,direntry,value);
210 TIFFReadDirEntryCheckedSbyte(tif,direntry,&m);
220 TIFFReadDirEntryCheckedShort(tif,direntry,&m);
230 TIFFReadDirEntryCheckedSshort(tif,direntry,&m);
240 TIFFReadDirEntryCheckedLong(tif,direntry,&m);
250 TIFFReadDirEntryCheckedSlong(tif,direntry,&m);
260 err=TIFFReadDirEntryCheckedLong8(tif,direntry,&m);
272 err=TIFFReadDirEntryCheckedSlong8(tif,direntry,&m);
286 static enum TIFFReadDirEntryErr TIFFReadDirEntryShort(TIFF* tif, TIFFDirEntry* direntry, uint16* value)
289 if (direntry->tdir_count!=1)
291 switch (direntry->tdir_type)
296 TIFFReadDirEntryCheckedByte(tif,direntry,&m);
303 TIFFReadDirEntryCheckedSbyte(tif,direntry,&m);
311 TIFFReadDirEntryCheckedShort(tif,direntry,value);
316 TIFFReadDirEntryCheckedSshort(tif,direntry,&m);
326 TIFFReadDirEntryCheckedLong(tif,direntry,&m);
336 TIFFReadDirEntryCheckedSlong(tif,direntry,&m);
346 err=TIFFReadDirEntryCheckedLong8(tif,direntry,&m);
358 err=TIFFReadDirEntryCheckedSlong8(tif,direntry,&m);
372 static enum TIFFReadDirEntryErr TIFFReadDirEntryLong(TIFF* tif, TIFFDirEntry* direntry, uint32* value)
375 if (direntry->tdir_count!=1)
377 switch (direntry->tdir_type)
382 TIFFReadDirEntryCheckedByte(tif,direntry,&m);
389 TIFFReadDirEntryCheckedSbyte(tif,direntry,&m);
399 TIFFReadDirEntryCheckedShort(tif,direntry,&m);
406 TIFFReadDirEntryCheckedSshort(tif,direntry,&m);
414 TIFFReadDirEntryCheckedLong(tif,direntry,value);
419 TIFFReadDirEntryCheckedSlong(tif,direntry,&m);
429 err=TIFFReadDirEntryCheckedLong8(tif,direntry,&m);
441 err=TIFFReadDirEntryCheckedSlong8(tif,direntry,&m);
455 static enum TIFFReadDirEntryErr TIFFReadDirEntryLong8(TIFF* tif, TIFFDirEntry* direntry, uint64* value)
458 if (direntry->tdir_count!=1)
460 switch (direntry->tdir_type)
465 TIFFReadDirEntryCheckedByte(tif,direntry,&m);
472 TIFFReadDirEntryCheckedSbyte(tif,direntry,&m);
482 TIFFReadDirEntryCheckedShort(tif,direntry,&m);
489 TIFFReadDirEntryCheckedSshort(tif,direntry,&m);
499 TIFFReadDirEntryCheckedLong(tif,direntry,&m);
506 TIFFReadDirEntryCheckedSlong(tif,direntry,&m);
514 err=TIFFReadDirEntryCheckedLong8(tif,direntry,value);
519 err=TIFFReadDirEntryCheckedSlong8(tif,direntry,&m);
533 static enum TIFFReadDirEntryErr TIFFReadDirEntryFloat(TIFF* tif, TIFFDirEntry* direntry, float* value)
536 if (direntry->tdir_count!=1)
538 switch (direntry->tdir_type)
543 TIFFReadDirEntryCheckedByte(tif,direntry,&m);
550 TIFFReadDirEntryCheckedSbyte(tif,direntry,&m);
557 TIFFReadDirEntryCheckedShort(tif,direntry,&m);
564 TIFFReadDirEntryCheckedSshort(tif,direntry,&m);
571 TIFFReadDirEntryCheckedLong(tif,direntry,&m);
578 TIFFReadDirEntryCheckedSlong(tif,direntry,&m);
585 err=TIFFReadDirEntryCheckedLong8(tif,direntry,&m);
603 err=TIFFReadDirEntryCheckedSlong8(tif,direntry,&m);
612 err=TIFFReadDirEntryCheckedRational(tif,direntry,&m);
621 err=TIFFReadDirEntryCheckedSrational(tif,direntry,&m);
628 TIFFReadDirEntryCheckedFloat(tif,direntry,value);
633 err=TIFFReadDirEntryCheckedDouble(tif,direntry,&m);
644 static enum TIFFReadDirEntryErr TIFFReadDirEntryDouble(TIFF* tif, TIFFDirEntry* direntry, double* value)
647 if (direntry->tdir_count!=1)
649 switch (direntry->tdir_type)
654 TIFFReadDirEntryCheckedByte(tif,direntry,&m);
661 TIFFReadDirEntryCheckedSbyte(tif,direntry,&m);
668 TIFFReadDirEntryCheckedShort(tif,direntry,&m);
675 TIFFReadDirEntryCheckedSshort(tif,direntry,&m);
682 TIFFReadDirEntryCheckedLong(tif,direntry,&m);
689 TIFFReadDirEntryCheckedSlong(tif,direntry,&m);
696 err=TIFFReadDirEntryCheckedLong8(tif,direntry,&m);
714 err=TIFFReadDirEntryCheckedSlong8(tif,direntry,&m);
721 err=TIFFReadDirEntryCheckedRational(tif,direntry,value);
724 err=TIFFReadDirEntryCheckedSrational(tif,direntry,value);
729 TIFFReadDirEntryCheckedFloat(tif,direntry,&m);
734 err=TIFFReadDirEntryCheckedDouble(tif,direntry,value);
741 static enum TIFFReadDirEntryErr TIFFReadDirEntryIfd8(TIFF* tif, TIFFDirEntry* direntry, uint64* value)
744 if (direntry->tdir_count!=1)
746 switch (direntry->tdir_type)
752 TIFFReadDirEntryCheckedLong(tif,direntry,&m);
758 err=TIFFReadDirEntryCheckedLong8(tif,direntry,value);
765 static enum TIFFReadDirEntryErr TIFFReadDirEntryArray(TIFF* tif, TIFFDirEntry* direntry, uint32* count, uint32 desttypesize, void** value)
770 typesize=TIFFDataWidth(direntry->tdir_type);
771 if ((direntry->tdir_count==0)||(typesize==0))
783 if ((uint64)(2147483647/typesize)<direntry->tdir_count)
785 if ((uint64)(2147483647/desttypesize)<direntry->tdir_count)
788 *count=(uint32)direntry->tdir_count;
797 _TIFFmemcpy(data,&direntry->tdir_offset,datasize);
801 uint32 offset = direntry->tdir_offset.toff_long;
815 _TIFFmemcpy(data,&direntry->tdir_offset,datasize);
819 uint64 offset = direntry->tdir_offset.toff_long8;
834 static enum TIFFReadDirEntryErr TIFFReadDirEntryByteArray(TIFF* tif, TIFFDirEntry* direntry, uint8** value)
840 switch (direntry->tdir_type)
856 err=TIFFReadDirEntryArray(tif,direntry,&count,1,&origdata);
862 switch (direntry->tdir_type)
894 switch (direntry->tdir_type)
1015 static enum TIFFReadDirEntryErr TIFFReadDirEntrySbyteArray(TIFF* tif, TIFFDirEntry* direntry, int8** value)
1021 switch (direntry->tdir_type)
1036 err=TIFFReadDirEntryArray(tif,direntry,&count,1,&origdata);
1042 switch (direntry->tdir_type)
1073 switch (direntry->tdir_type)
1194 static enum TIFFReadDirEntryErr TIFFReadDirEntryShortArray(TIFF* tif, TIFFDirEntry* direntry, uint16** value)
1200 switch (direntry->tdir_type)
1214 err=TIFFReadDirEntryArray(tif,direntry,&count,2,&origdata);
1220 switch (direntry->tdir_type)
1254 switch (direntry->tdir_type)
1366 static enum TIFFReadDirEntryErr TIFFReadDirEntrySshortArray(TIFF* tif, TIFFDirEntry* direntry, int16** value)
1372 switch (direntry->tdir_type)
1386 err=TIFFReadDirEntryArray(tif,direntry,&count,2,&origdata);
1392 switch (direntry->tdir_type)
1426 switch (direntry->tdir_type)
1533 static enum TIFFReadDirEntryErr TIFFReadDirEntryLongArray(TIFF* tif, TIFFDirEntry* direntry, uint32** value)
1539 switch (direntry->tdir_type)
1553 err=TIFFReadDirEntryArray(tif,direntry,&count,4,&origdata);
1559 switch (direntry->tdir_type)
1593 switch (direntry->tdir_type)
1702 static enum TIFFReadDirEntryErr TIFFReadDirEntrySlongArray(TIFF* tif, TIFFDirEntry* direntry, int32** value)
1708 switch (direntry->tdir_type)
1722 err=TIFFReadDirEntryArray(tif,direntry,&count,4,&origdata);
1728 switch (direntry->tdir_type)
1762 switch (direntry->tdir_type)
1863 static enum TIFFReadDirEntryErr TIFFReadDirEntryLong8Array(TIFF* tif, TIFFDirEntry* direntry, uint64** value)
1869 switch (direntry->tdir_type)
1883 err=TIFFReadDirEntryArray(tif,direntry,&count,8,&origdata);
1889 switch (direntry->tdir_type)
1923 switch (direntry->tdir_type)
2029 static enum TIFFReadDirEntryErr TIFFReadDirEntrySlong8Array(TIFF* tif, TIFFDirEntry* direntry, int64** value)
2035 switch (direntry->tdir_type)
2049 err=TIFFReadDirEntryArray(tif,direntry,&count,8,&origdata);
2055 switch (direntry->tdir_type)
2089 switch (direntry->tdir_type)
2179 static enum TIFFReadDirEntryErr TIFFReadDirEntryFloatArray(TIFF* tif, TIFFDirEntry* direntry, float** value)
2185 switch (direntry->tdir_type)
2203 err=TIFFReadDirEntryArray(tif,direntry,&count,4,&origdata);
2209 switch (direntry->tdir_type)
2224 switch (direntry->tdir_type)
2417 TIFFReadDirEntryDoubleArray(TIFF* tif, TIFFDirEntry* direntry, double** value)
2423 switch (direntry->tdir_type)
2441 err=TIFFReadDirEntryArray(tif,direntry,&count,8,&origdata);
2447 switch (direntry->tdir_type)
2462 switch (direntry->tdir_type)
2654 static enum TIFFReadDirEntryErr TIFFReadDirEntryIfd8Array(TIFF* tif, TIFFDirEntry* direntry, uint64** value)
2660 switch (direntry->tdir_type)
2670 err=TIFFReadDirEntryArray(tif,direntry,&count,8,&origdata);
2676 switch (direntry->tdir_type)
2691 switch (direntry->tdir_type)
2715 static enum TIFFReadDirEntryErr TIFFReadDirEntryPersampleShort(TIFF* tif, TIFFDirEntry* direntry, uint16* value)
2721 if (direntry->tdir_count<(uint64)tif->tif_dir.td_samplesperpixel)
2723 err=TIFFReadDirEntryShortArray(tif,direntry,&m);
2744 static enum TIFFReadDirEntryErr TIFFReadDirEntryPersampleDouble(TIFF* tif, TIFFDirEntry* direntry, double* value)
2750 if (direntry->tdir_count<(uint64)tif->tif_dir.td_samplesperpixel)
2752 err=TIFFReadDirEntryDoubleArray(tif,direntry,&m);
2773 static void TIFFReadDirEntryCheckedByte(TIFF* tif, TIFFDirEntry* direntry, uint8* value)
2776 *value=*(uint8*)(&direntry->tdir_offset);
2779 static void TIFFReadDirEntryCheckedSbyte(TIFF* tif, TIFFDirEntry* direntry, int8* value)
2782 *value=*(int8*)(&direntry->tdir_offset);
2785 static void TIFFReadDirEntryCheckedShort(TIFF* tif, TIFFDirEntry* direntry, uint16* value)
2787 *value = direntry->tdir_offset.toff_short;
2788 /* *value=*(uint16*)(&direntry->tdir_offset); */
2793 static void TIFFReadDirEntryCheckedSshort(TIFF* tif, TIFFDirEntry* direntry, int16* value)
2795 *value=*(int16*)(&direntry->tdir_offset);
2800 static void TIFFReadDirEntryCheckedLong(TIFF* tif, TIFFDirEntry* direntry, uint32* value)
2802 *value=*(uint32*)(&direntry->tdir_offset);
2807 static void TIFFReadDirEntryCheckedSlong(TIFF* tif, TIFFDirEntry* direntry, int32* value)
2809 *value=*(int32*)(&direntry->tdir_offset);
2814 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckedLong8(TIFF* tif, TIFFDirEntry* direntry, uint64* value)
2819 uint32 offset = direntry->tdir_offset.toff_long;
2827 *value = direntry->tdir_offset.toff_long8;
2833 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckedSlong8(TIFF* tif, TIFFDirEntry* direntry, int64* value)
2838 uint32 offset = direntry->tdir_offset.toff_long;
2846 *value=*(int64*)(&direntry->tdir_offset);
2852 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckedRational(TIFF* tif, TIFFDirEntry* direntry, double* value)
2862 uint32 offset = direntry->tdir_offset.toff_long;
2870 m.l = direntry->tdir_offset.toff_long8;
2880 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckedSrational(TIFF* tif, TIFFDirEntry* direntry, double* value)
2890 uint32 offset = direntry->tdir_offset.toff_long;
2898 m.l=direntry->tdir_offset.toff_long8;
2908 static void TIFFReadDirEntryCheckedFloat(TIFF* tif, TIFFDirEntry* direntry, float* value)
2918 float_union.i=*(uint32*)(&direntry->tdir_offset);
2924 static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckedDouble(TIFF* tif, TIFFDirEntry* direntry, double* value)
2932 uint32 offset = direntry->tdir_offset.toff_long;
2942 uint64_union.l=direntry->tdir_offset.toff_long8;