LibTIFF 4.7.2
TIFF library public API and implementation reference
Loading...
Searching...
No Matches
Data Fields

Represent a parsed directory entry before value conversion. More...

#include <tif_dir.h>

Data Fields

uint16_t tdir_tag
 Directory tag identifier.
 
uint16_t tdir_type
 On-disk TIFFDataType code.
 
uint64_t tdir_count
 Number of file-type elements, normalised to host order.
 
union { 
 
   uint16_t   toff_short 
 Raw 16-bit view of inline bytes or offset storage. More...
 
   uint32_t   toff_long 
 Raw 32-bit view of inline bytes or offset storage. More...
 
   uint64_t   toff_long8 
 Raw 64-bit view of inline bytes or offset storage. More...
 
} tdir_offset 
 Overlay raw directory inline bytes and offset-width views.
 
uint8_t tdir_ignore
 Nonzero to suppress this entry during parsing, e.g. duplicate tags.
 

Detailed Description

Represent a parsed directory entry before value conversion.

Tag, type, and count are normalised for host access. The offset union preserves raw inline bytes (at most four in classic TIFF, eight in BigTIFF) or an external file offset; byte swapping depends on the consumer. In particular deferred strile entries still need offset swapping. This is an in-memory representation, not a structure to serialise directly.

Definition at line 81 of file tif_dir.h.

Field Documentation

◆ tdir_count

uint64_t TIFFDirEntry::tdir_count

◆ tdir_ignore

uint8_t TIFFDirEntry::tdir_ignore

Nonzero to suppress this entry during parsing, e.g. duplicate tags.

Definition at line 109 of file tif_dir.h.

Referenced by TIFFFetchDirectory(), TIFFReadCustomDirectory(), and TIFFReadDirectory().

◆ [union]

union { ... } TIFFDirEntry::tdir_offset

◆ tdir_tag

uint16_t TIFFDirEntry::tdir_tag

◆ tdir_type

uint16_t TIFFDirEntry::tdir_type

◆ toff_long

uint32_t TIFFDirEntry::toff_long

◆ toff_long8

uint64_t TIFFDirEntry::toff_long8

◆ toff_short

uint16_t TIFFDirEntry::toff_short

Raw 16-bit view of inline bytes or offset storage.

Definition at line 95 of file tif_dir.h.

Referenced by TIFFReadDirEntryCheckedShort().


The documentation for this struct was generated from the following file: