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

Describe a field's file type and internal argument contract. More...

#include <tif_dir.h>

Collaboration diagram for _TIFFField:
[legend]

Data Fields

uint32_t field_tag
 Tag identifier in this schema namespace.
 
short field_readcount
 Fixed getter count or TIFF_VARIABLE/TIFF_VARIABLE2/TIFF_SPP rule.
 
short field_writecount
 Fixed setter count or variable/sample-count sentinel.
 
TIFFDataType field_type
 On-disk TIFFDataType, distinct from the argument representation.
 
uint32_t field_anonymous
 Nonzero for an automatically created unknown-tag descriptor.
 
TIFFSetGetFieldType set_get_field_type
 Internal storage/count representation for tag access and conversion.
 
unsigned short field_bit
 FIELD_* presence index; FIELD_CUSTOM shares storage through the custom list.
 
unsigned char field_oktochange
 Nonzero to permit changes after writing starts; ImageLength is separately exempt.
 
unsigned char field_passcount
 Nonzero for an explicit count argument; tag-specific exceptions still apply.
 
const char * field_name
 Borrowed or anonymous-owned null-terminated name; must remain live while used.
 
TIFFFieldArray * field_subfields
 Borrowed child-directory schema, or NULL; not recursively freed here.
 

Detailed Description

Describe a field's file type and internal argument contract.

Built-in descriptors/names are static. Ordinary merged descriptors/names remain borrowed; anonymous descriptors own generated names and are freed by field-table cleanup. Legacy compatibility descriptors are handle-owned and freed at each TIFFDefaultDirectory() call; their names remain borrowed. Do not mutate a registered descriptor: sorted lookup and stored values rely on it.

Definition at line 992 of file tif_dir.h.

Field Documentation

◆ field_anonymous

uint32_t _TIFFField::field_anonymous

Nonzero for an automatically created unknown-tag descriptor.

Definition at line 1013 of file tif_dir.h.

Referenced by _TIFFCreateAnonField(), TIFFFieldIsAnonymous(), and TIFFMergeFieldInfo().

◆ field_bit

unsigned short _TIFFField::field_bit

◆ field_name

const char* _TIFFField::field_name

◆ field_oktochange

unsigned char _TIFFField::field_oktochange

Nonzero to permit changes after writing starts; ImageLength is separately exempt.

Definition at line 1028 of file tif_dir.h.

Referenced by _TIFFCreateAnonField(), _TIFFPrintFieldInfo(), OkToChangeTag(), and TIFFMergeFieldInfo().

◆ field_passcount

unsigned char _TIFFField::field_passcount

Nonzero for an explicit count argument; tag-specific exceptions still apply.

Definition at line 1033 of file tif_dir.h.

Referenced by _TIFFCreateAnonField(), _TIFFPrintFieldInfo(), _TIFFVGetField(), _TIFFVSetField(), TIFFFetchNormalTag(), TIFFFieldPassCount(), TIFFMergeFieldInfo(), TIFFPrintDirectory(), and TIFFWriteDirectorySec().

◆ field_readcount

short _TIFFField::field_readcount

◆ field_subfields

TIFFFieldArray* _TIFFField::field_subfields

Borrowed child-directory schema, or NULL; not recursively freed here.

Definition at line 1043 of file tif_dir.h.

Referenced by _TIFFCreateAnonField(), and TIFFMergeFieldInfo().

◆ field_tag

uint32_t _TIFFField::field_tag

◆ field_type

TIFFDataType _TIFFField::field_type

◆ field_writecount

short _TIFFField::field_writecount

Fixed setter count or variable/sample-count sentinel.

Definition at line 1003 of file tif_dir.h.

Referenced by _TIFFCreateAnonField(), _TIFFPrintFieldInfo(), _TIFFVSetField(), TIFFFieldWriteCount(), and TIFFMergeFieldInfo().

◆ set_get_field_type

TIFFSetGetFieldType _TIFFField::set_get_field_type

Internal storage/count representation for tag access and conversion.

Definition at line 1018 of file tif_dir.h.

Referenced by _TIFFCreateAnonField(), TIFFFetchNormalTag(), TIFFFieldSetGetCountSize(), TIFFFieldSetGetSize(), TIFFMergeFieldInfo(), TIFFReadCustomDirectory(), and TIFFWriteDirectorySec().


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