pub enum FieldType {
Show 15 variants
Byte,
Ascii,
Short,
Long,
Rational,
SByte,
Undefined,
SShort,
SLong,
SRational,
Float,
Double,
Long8,
SLong8,
Ifd8,
}Expand description
The type of a tag’s value, stored as the 2-byte Type of an IFD entry (TIFF 6.0 §2).
The discriminants match the on-disk codes (Byte is 1, Short is 3, Rational is 5,
…). The first twelve are the TIFF 6.0 field types; the BigTIFF 64-bit additions
(Long8/SLong8/Ifd8, codes 16–18) appear only when the bigtiff feature is enabled,
so the set stays additive and a classic-only build treats those codes as unknown.
Variants§
Byte
1 — an 8-bit unsigned integer.
Ascii
2 — an 8-bit byte holding a 7-bit ASCII code; NUL-terminated.
Short
3 — a 16-bit unsigned integer.
Long
4 — a 32-bit unsigned integer.
Rational
5 — two Longs: a fraction’s numerator then denominator.
SByte
6 — an 8-bit signed (two’s-complement) integer.
Undefined
7 — an 8-bit byte whose meaning depends on the field.
SShort
8 — a 16-bit signed (two’s-complement) integer.
SLong
9 — a 32-bit signed (two’s-complement) integer.
SRational
10 — two SLongs: a signed fraction’s numerator then denominator.
Float
11 — a 32-bit IEEE single-precision float.
Double
12 — a 64-bit IEEE double-precision float.
Long8
16 — a 64-bit unsigned integer (BigTIFF; references/tiff/bigtiff.html).
SLong8
17 — a 64-bit signed (two’s-complement) integer (BigTIFF).
Ifd8
18 — a 64-bit unsigned IFD offset (BigTIFF).