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

Describe a borrowed schema or owned compatibility batch. More...

#include <tif_dir.h>

Collaboration diagram for _TIFFFieldArray:
[legend]

Data Fields

TIFFFieldArrayType type
 Namespace/category of the schema.
 
uint32_t allocated_size
 Descriptor capacity when owned; zero identifies a static schema.
 
uint32_t count
 Number of valid descriptors in fields.
 
TIFFField * fields
 Descriptor array; static/borrowed or owned according to allocated_size and creator.
 

Detailed Description

Describe a borrowed schema or owned compatibility batch.

Built-in arrays have static fields and zero allocated_size. Compatibility batches own their descriptor storage but borrow names; TIFFDefaultDirectory() (on each directory setup) and handle cleanup release the batch allocations, so legacy descriptors must be re-registered, typically from a tag extender, for each directory. Registration itself stores pointers into fields, so descriptor storage must outlive every lookup/value referring to it.

Definition at line 961 of file tif_dir.h.

Field Documentation

◆ allocated_size

uint32_t _TIFFFieldArray::allocated_size

Descriptor capacity when owned; zero identifies a static schema.

Definition at line 970 of file tif_dir.h.

Referenced by TIFFCleanup(), TIFFDefaultDirectory(), and TIFFMergeFieldInfo().

◆ count

uint32_t _TIFFFieldArray::count

Number of valid descriptors in fields.

Definition at line 972 of file tif_dir.h.

Referenced by _TIFFSetupFields(), TIFFMergeFieldInfo(), and TIFFReadCustomDirectory().

◆ fields

TIFFField* _TIFFFieldArray::fields

Descriptor array; static/borrowed or owned according to allocated_size and creator.

Definition at line 978 of file tif_dir.h.

Referenced by _TIFFSetupFields(), TIFFCleanup(), TIFFDefaultDirectory(), TIFFMergeFieldInfo(), and TIFFReadCustomDirectory().

◆ type

TIFFFieldArrayType _TIFFFieldArray::type

Namespace/category of the schema.

Definition at line 964 of file tif_dir.h.

Referenced by TIFFMergeFieldInfo().


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