From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:TIFF" |
|---|
| claim | "TIFF version numbers (not in the values): 42 classic, 43 BigTIFF. Byte-order marks 0x4949 (II, little) and 0x4d4d (MM, big). Field types (the values; TIFF_NOTYPE 0 is only a placeholder): 1 BYTE, 2 ASCII, 3 SHORT, 4 LONG, 5 RATIONAL, 6 SBYTE, 7 UNDEFINED, 8 SSHORT, 9 SLONG, 10 SRATIONAL, 11 FLOAT, 12 DOUBLE, 13 IFD, and for BigTIFF 16 LONG8, 17 SLONG8, 18 IFD8 (14 and 15 are not defined in libtiff)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:TIFF" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "TIFFDataType" |
|---|
| underlying_type | "uint16_t" |
|---|
| values | | 1 | "TIFF_BYTE" |
|---|
| 2 | "TIFF_ASCII" |
|---|
| 3 | "TIFF_SHORT" |
|---|
| 4 | "TIFF_LONG" |
|---|
| 5 | "TIFF_RATIONAL" |
|---|
| 6 | "TIFF_SBYTE" |
|---|
| 7 | "TIFF_UNDEFINED" |
|---|
| 8 | "TIFF_SSHORT" |
|---|
| 9 | "TIFF_SLONG" |
|---|
| 10 | "TIFF_SRATIONAL" |
|---|
| 11 | "TIFF_FLOAT" |
|---|
| 12 | "TIFF_DOUBLE" |
|---|
| 13 | "TIFF_IFD" |
|---|
| 16 | "TIFF_LONG8" |
|---|
| 17 | "TIFF_SLONG8" |
|---|
| 18 | "TIFF_IFD8" |
|---|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Read the vendored libtiff tiff.h: TIFF_VERSION_CLASSIC 42, TIFF_VERSION_BIG 43, TIFF_BIGENDIAN 0x4d4d, TIFF_LITTLEENDIAN 0x4949 and the TIFFDataType enum." |
|---|
| repo | "https://github.com/OSGeo/gdal" |
|---|
| commit | "6364d9384bf9936c97f0e50fff179ecd25074f36" |
|---|
| path | "frmts/gtiff/libtiff/tiff.h" |
|---|
| lines | "48-52, 146-164" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Data types and versions" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T04:54:24.380Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T12:16:11.247Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read gdal frmts/gtiff/libtiff/tiff.h at 6364d93: TIFF_VERSION_CLASSIC 42, TIFF_VERSION_BIG 43, byte order 0x4d4d/0x4949 (lines 48-52) and enum TIFFDataType lines 146-164 (NOTYPE 0, 1-13, 16-18); the 16 values match, 14/15 undefined." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T08:18:11.279Z" |
|---|
| summary | "All 16 field types match tiff.h; clarified that data.values holds only the field types (version and byte-order numbers are in the claim only) and that the enum also has TIFF_NOTYPE 0 as a placeholder." |
|---|
| changed | |
|---|
|
|
|---|