LibTIFF 4.7.2
TIFF library public API and implementation reference
Loading...
Searching...
No Matches
Data Structures | Macros | Enumerations | Functions | Variables
Directory storage and field schemas

Store directory values and register or query their descriptors. More...

Collaboration diagram for Directory storage and field schemas:

Data Structures

struct  TIFFTagValue
 Store one custom field value and its descriptor. More...
 
struct  TIFFDirEntry
 Represent a parsed directory entry before value conversion. More...
 
struct  TIFFEntryOffsetAndLength
 Describe an external directory-value byte range. More...
 
struct  TIFFDirectory
 Store the current directory values and image traversal state. More...
 
struct  _TIFFFieldArray
 Describe a borrowed schema or owned compatibility batch. More...
 
struct  _TIFFField
 Describe a field's file type and internal argument contract. More...
 

Macros

#define FIELDSET_ITEMS   4
 Size of the presence bitmap in uint32_t words.
 
#define NOSTRIP   ((uint32_t)(-1)) /* undefined state */
 Represent the absence of a current strip with UINT32_MAX.
 
#define NOTILE   ((uint32_t)(-1)) /* undefined state */
 Represent the absence of a current tile with UINT32_MAX.
 
#define FIELD_IGNORE   0
 Mark a processed-but-discarded tag; bit zero is reserved.
 
#define FIELD_IMAGEDIMENSIONS   1
 Index the image dimensions presence bit; not an on-disk tag number.
 
#define FIELD_TILEDIMENSIONS   2
 Index the tile dimensions presence bit; not an on-disk tag number.
 
#define FIELD_RESOLUTION   3
 Index the resolution presence bit; not an on-disk tag number.
 
#define FIELD_POSITION   4
 Index the position presence bit; not an on-disk tag number.
 
#define FIELD_SUBFILETYPE   5
 Index the subfile type presence bit; not an on-disk tag number.
 
#define FIELD_BITSPERSAMPLE   6
 Index the bits per sample presence bit; not an on-disk tag number.
 
#define FIELD_COMPRESSION   7
 Index the compression presence bit; not an on-disk tag number.
 
#define FIELD_PHOTOMETRIC   8
 Index the photometric presence bit; not an on-disk tag number.
 
#define FIELD_THRESHHOLDING   9
 Index the thresholding presence bit; not an on-disk tag number.
 
#define FIELD_FILLORDER   10
 Index the fill order presence bit; not an on-disk tag number.
 
#define FIELD_ORIENTATION   15
 Index the orientation presence bit; not an on-disk tag number.
 
#define FIELD_SAMPLESPERPIXEL   16
 Index the samples per pixel presence bit; not an on-disk tag number.
 
#define FIELD_ROWSPERSTRIP   17
 Index the rows per strip presence bit; not an on-disk tag number.
 
#define FIELD_MINSAMPLEVALUE   18
 Index the minimum sample value presence bit; not an on-disk tag number.
 
#define FIELD_MAXSAMPLEVALUE   19
 Index the maximum sample value presence bit; not an on-disk tag number.
 
#define FIELD_PLANARCONFIG   20
 Index the planar configuration presence bit; not an on-disk tag number.
 
#define FIELD_RESOLUTIONUNIT   22
 Index the resolution unit presence bit; not an on-disk tag number.
 
#define FIELD_PAGENUMBER   23
 Index the page number presence bit; not an on-disk tag number.
 
#define FIELD_STRIPBYTECOUNTS   24
 Index the strile byte counts presence bit; not an on-disk tag number.
 
#define FIELD_STRIPOFFSETS   25
 Index the strile offsets presence bit; not an on-disk tag number.
 
#define FIELD_COLORMAP   26
 Index the colormap presence bit; not an on-disk tag number.
 
#define FIELD_EXTRASAMPLES   31
 Index the extra samples presence bit; not an on-disk tag number.
 
#define FIELD_SAMPLEFORMAT   32
 Index the sample format presence bit; not an on-disk tag number.
 
#define FIELD_SMINSAMPLEVALUE   33
 Index the per-sample minimum presence bit; not an on-disk tag number.
 
#define FIELD_SMAXSAMPLEVALUE   34
 Index the per-sample maximum presence bit; not an on-disk tag number.
 
#define FIELD_IMAGEDEPTH   35
 Index the image depth presence bit; not an on-disk tag number.
 
#define FIELD_TILEDEPTH   36
 Index the tile depth presence bit; not an on-disk tag number.
 
#define FIELD_HALFTONEHINTS   37
 Index the halftone hints presence bit; not an on-disk tag number.
 
#define FIELD_YCBCRSUBSAMPLING   39
 Index the YCbCr subsampling presence bit; not an on-disk tag number.
 
#define FIELD_YCBCRPOSITIONING   40
 Index the YCbCr positioning presence bit; not an on-disk tag number.
 
#define FIELD_REFBLACKWHITE   41
 Index the reference black/white presence bit; not an on-disk tag number.
 
#define FIELD_TRANSFERFUNCTION   44
 Index the transfer function presence bit; not an on-disk tag number.
 
#define FIELD_INKNAMES   46
 Index the ink names presence bit; not an on-disk tag number.
 
#define FIELD_SUBIFD   49
 Index the child IFD presence bit; not an on-disk tag number.
 
#define FIELD_NUMBEROFINKS   50
 Index the number of inks presence bit; not an on-disk tag number.
 
#define FIELD_CODEC   66 /* base of codec-private tags */
 Start the range reserved for codec-private presence bits.
 
#define FIELD_PSEUDO   0
 Share bit zero with FIELD_IGNORE for pseudo-tags.
 
#define FIELD_LAST   (32 * FIELDSET_ITEMS - 1)
 Largest valid presence bit index in the bitmap.
 
#define BITn(n)   (1U << ((n) & 0x1f))
 Construct a one-bit mask within a 32-bit presence word.
 
#define BITFIELDn(tif, n)   ((tif)->tif_dir.td_fieldsset[(n) / 32])
 Select the lvalue word containing a presence bit.
 
#define TIFFFieldSet(tif, field)   (BITFIELDn(tif, field) & BITn(field))
 Test a directory presence bit.
 
#define TIFFSetFieldBit(tif, field)   (BITFIELDn(tif, field) |= BITn(field))
 Set a directory presence bit.
 
#define TIFFClrFieldBit(tif, field)   (BITFIELDn(tif, field) &= ~BITn(field))
 Clear a directory presence bit.
 
#define FieldSet(fields, f)   (fields[(f) / 32] & BITn(f))
 Test a bit in a supplied presence bitmap.
 
#define ResetFieldBit(fields, f)   (fields[(f) / 32] &= ~BITn(f))
 Clear a bit in a supplied presence bitmap.
 

Enumerations

enum  TIFFSetGetFieldType {
  TIFF_SETGET_UNDEFINED = 0 , TIFF_SETGET_ASCII = 1 , TIFF_SETGET_UINT8 = 2 , TIFF_SETGET_SINT8 = 3 ,
  TIFF_SETGET_UINT16 = 4 , TIFF_SETGET_SINT16 = 5 , TIFF_SETGET_UINT32 = 6 , TIFF_SETGET_SINT32 = 7 ,
  TIFF_SETGET_UINT64 = 8 , TIFF_SETGET_SINT64 = 9 , TIFF_SETGET_FLOAT = 10 , TIFF_SETGET_DOUBLE = 11 ,
  TIFF_SETGET_IFD8 = 12 , TIFF_SETGET_INT = 13 , TIFF_SETGET_UINT16_PAIR = 14 , TIFF_SETGET_C0_ASCII = 15 ,
  TIFF_SETGET_C0_UINT8 = 16 , TIFF_SETGET_C0_SINT8 = 17 , TIFF_SETGET_C0_UINT16 = 18 , TIFF_SETGET_C0_SINT16 = 19 ,
  TIFF_SETGET_C0_UINT32 = 20 , TIFF_SETGET_C0_SINT32 = 21 , TIFF_SETGET_C0_UINT64 = 22 , TIFF_SETGET_C0_SINT64 = 23 ,
  TIFF_SETGET_C0_FLOAT = 24 , TIFF_SETGET_C0_DOUBLE = 25 , TIFF_SETGET_C0_IFD8 = 26 , TIFF_SETGET_C16_ASCII = 27 ,
  TIFF_SETGET_C16_UINT8 = 28 , TIFF_SETGET_C16_SINT8 = 29 , TIFF_SETGET_C16_UINT16 = 30 , TIFF_SETGET_C16_SINT16 = 31 ,
  TIFF_SETGET_C16_UINT32 = 32 , TIFF_SETGET_C16_SINT32 = 33 , TIFF_SETGET_C16_UINT64 = 34 , TIFF_SETGET_C16_SINT64 = 35 ,
  TIFF_SETGET_C16_FLOAT = 36 , TIFF_SETGET_C16_DOUBLE = 37 , TIFF_SETGET_C16_IFD8 = 38 , TIFF_SETGET_C32_ASCII = 39 ,
  TIFF_SETGET_C32_UINT8 = 40 , TIFF_SETGET_C32_SINT8 = 41 , TIFF_SETGET_C32_UINT16 = 42 , TIFF_SETGET_C32_SINT16 = 43 ,
  TIFF_SETGET_C32_UINT32 = 44 , TIFF_SETGET_C32_SINT32 = 45 , TIFF_SETGET_C32_UINT64 = 46 , TIFF_SETGET_C32_SINT64 = 47 ,
  TIFF_SETGET_C32_FLOAT = 48 , TIFF_SETGET_C32_DOUBLE = 49 , TIFF_SETGET_C32_IFD8 = 50 , TIFF_SETGET_OTHER = 51
}
 Encode the internal value and variadic count representation. More...
 
enum  TIFFFieldArrayType { tfiatImage , tfiatExif , tfiatGps , tfiatOther }
 Identify the namespace described by a field array. More...
 

Functions

const TIFFFieldArray * _TIFFGetFields (void)
 Return the built-in image field schema.
 
const TIFFFieldArray * _TIFFGetExifFields (void)
 Return the built-in EXIF field schema.
 
const TIFFFieldArray * _TIFFGetGpsFields (void)
 Return the built-in GPS field schema.
 
void _TIFFSetupFields (TIFF *tif, const TIFFFieldArray *fieldarray)
 Replace the registered field-pointer table with a schema.
 
void _TIFFPrintFieldInfo (TIFF *tif, FILE *fd)
 Print the registered field metadata to a stream.
 
int _TIFFMergeFields (TIFF *tif, const TIFFField info[], uint32_t n)
 Merge borrowed field definitions into the lookup table.
 
const TIFFField * _TIFFFindOrRegisterField (TIFF *tif, uint32_t tag, TIFFDataType dt)
 Find a typed field or register an anonymous replacement.
 
TIFFField * _TIFFCreateAnonField (TIFF *tif, uint32_t tag, TIFFDataType field_type)
 Allocate a counted anonymous field descriptor.
 
int _TIFFCheckFieldIsValidForCodec (TIFF *tif, ttag_t tag)
 Filter recognised codec-specific tags against current compression.
 
static void * td_lfind (const void *key, const void *base, size_t *nmemb, size_t size, int(*compar)(const void *, const void *))
 Find the first equal fixed-width element by linear search.
 
static int tagCompare (const void *a, const void *b)
 Compare field pointers by tag number and reverse type order.
 
static int tagNameCompare (const void *a, const void *b)
 Compare field pointers by case-sensitive name and reverse type order.
 
static const TIFFField * _TIFFFindFieldByName (TIFF *tif, const char *field_name, TIFFDataType dt)
 Find a registered descriptor by name and file type.
 
static TIFFSetGetFieldType _TIFFSetGetType (TIFFDataType type, short count, unsigned char passcount)
 Translate legacy type/count metadata into a set/get representation.
 

Variables

static TIFFExtendProc _TIFFextender = (TIFFExtendProc)NULL
 Store the process-wide borrowed directory-extension callback.
 
static const TIFFField tiffFields []
 Describe the built-in image fields and their argument representations.
 
static const TIFFField exifFields []
 Describe the built-in EXIF fields and their argument representations.
 
static const TIFFField gpsFields []
 Describe the built-in GPS fields and their argument representations.
 
static const TIFFFieldArray tiffFieldArray
 Wrap the static image field schema.
 
static const TIFFFieldArray exifFieldArray
 Wrap the static EXIF field schema.
 
static const TIFFFieldArray gpsFieldArray
 Wrap the static GPS field schema.
 

Detailed Description

Store directory values and register or query their descriptors.

Macro Definition Documentation

◆ BITFIELDn

#define BITFIELDn (   tif,
  n 
)    ((tif)->tif_dir.td_fieldsset[(n) / 32])

Select the lvalue word containing a presence bit.

No allocation, ownership change, diagnostic, or locking occurs. Arguments must identify valid bitmap storage.

Parameters
[in,out]tifNon-NULL live handle; expression is evaluated once.
[in]nIndex from zero through FIELD_LAST; evaluated once.
Returns
Lvalue uint32_t word; no range check or allocation.

Definition at line 650 of file tif_dir.h.

◆ BITn

#define BITn (   n)    (1U << ((n) & 0x1f))

Construct a one-bit mask within a 32-bit presence word.

No allocation, ownership change, diagnostic, or locking occurs. Arguments must identify valid bitmap storage.

Parameters
[in]nNonnegative bit index; low five bits select the mask.
Returns
Unsigned nonzero bit mask; no state change.

Definition at line 638 of file tif_dir.h.

◆ FIELD_BITSPERSAMPLE

#define FIELD_BITSPERSAMPLE   6

Index the bits per sample presence bit; not an on-disk tag number.

Definition at line 446 of file tif_dir.h.

◆ FIELD_CODEC

#define FIELD_CODEC   66 /* base of codec-private tags */

Start the range reserved for codec-private presence bits.

Definition at line 602 of file tif_dir.h.

◆ FIELD_COLORMAP

#define FIELD_COLORMAP   26

Index the colormap presence bit; not an on-disk tag number.

Definition at line 524 of file tif_dir.h.

◆ FIELD_COMPRESSION

#define FIELD_COMPRESSION   7

Index the compression presence bit; not an on-disk tag number.

Definition at line 451 of file tif_dir.h.

◆ FIELD_EXTRASAMPLES

#define FIELD_EXTRASAMPLES   31

Index the extra samples presence bit; not an on-disk tag number.

Definition at line 529 of file tif_dir.h.

◆ FIELD_FILLORDER

#define FIELD_FILLORDER   10

Index the fill order presence bit; not an on-disk tag number.

Definition at line 466 of file tif_dir.h.

◆ FIELD_HALFTONEHINTS

#define FIELD_HALFTONEHINTS   37

Index the halftone hints presence bit; not an on-disk tag number.

Definition at line 559 of file tif_dir.h.

◆ FIELD_IGNORE

#define FIELD_IGNORE   0

Mark a processed-but-discarded tag; bit zero is reserved.

Definition at line 412 of file tif_dir.h.

◆ FIELD_IMAGEDEPTH

#define FIELD_IMAGEDEPTH   35

Index the image depth presence bit; not an on-disk tag number.

Definition at line 549 of file tif_dir.h.

◆ FIELD_IMAGEDIMENSIONS

#define FIELD_IMAGEDIMENSIONS   1

Index the image dimensions presence bit; not an on-disk tag number.

Definition at line 419 of file tif_dir.h.

◆ FIELD_INKNAMES

#define FIELD_INKNAMES   46

Index the ink names presence bit; not an on-disk tag number.

Definition at line 585 of file tif_dir.h.

◆ FIELD_LAST

#define FIELD_LAST   (32 * FIELDSET_ITEMS - 1)

Largest valid presence bit index in the bitmap.

Definition at line 626 of file tif_dir.h.

◆ FIELD_MAXSAMPLEVALUE

#define FIELD_MAXSAMPLEVALUE   19

Index the maximum sample value presence bit; not an on-disk tag number.

Definition at line 493 of file tif_dir.h.

◆ FIELD_MINSAMPLEVALUE

#define FIELD_MINSAMPLEVALUE   18

Index the minimum sample value presence bit; not an on-disk tag number.

Definition at line 487 of file tif_dir.h.

◆ FIELD_NUMBEROFINKS

#define FIELD_NUMBEROFINKS   50

Index the number of inks presence bit; not an on-disk tag number.

Definition at line 595 of file tif_dir.h.

◆ FIELD_ORIENTATION

#define FIELD_ORIENTATION   15

Index the orientation presence bit; not an on-disk tag number.

Definition at line 471 of file tif_dir.h.

◆ FIELD_PAGENUMBER

#define FIELD_PAGENUMBER   23

Index the page number presence bit; not an on-disk tag number.

Definition at line 509 of file tif_dir.h.

◆ FIELD_PHOTOMETRIC

#define FIELD_PHOTOMETRIC   8

Index the photometric presence bit; not an on-disk tag number.

Definition at line 456 of file tif_dir.h.

◆ FIELD_PLANARCONFIG

#define FIELD_PLANARCONFIG   20

Index the planar configuration presence bit; not an on-disk tag number.

Definition at line 499 of file tif_dir.h.

◆ FIELD_POSITION

#define FIELD_POSITION   4

Index the position presence bit; not an on-disk tag number.

Definition at line 434 of file tif_dir.h.

◆ FIELD_PSEUDO

#define FIELD_PSEUDO   0

Share bit zero with FIELD_IGNORE for pseudo-tags.

Getters skip the presence test because of the pseudo-tag number range (isPseudoTag()), not because of this value; bit zero may still be set by the generic setter.

Definition at line 620 of file tif_dir.h.

◆ FIELD_REFBLACKWHITE

#define FIELD_REFBLACKWHITE   41

Index the reference black/white presence bit; not an on-disk tag number.

Definition at line 575 of file tif_dir.h.

◆ FIELD_RESOLUTION

#define FIELD_RESOLUTION   3

Index the resolution presence bit; not an on-disk tag number.

Definition at line 429 of file tif_dir.h.

◆ FIELD_RESOLUTIONUNIT

#define FIELD_RESOLUTIONUNIT   22

Index the resolution unit presence bit; not an on-disk tag number.

Definition at line 504 of file tif_dir.h.

◆ FIELD_ROWSPERSTRIP

#define FIELD_ROWSPERSTRIP   17

Index the rows per strip presence bit; not an on-disk tag number.

Definition at line 481 of file tif_dir.h.

◆ FIELD_SAMPLEFORMAT

#define FIELD_SAMPLEFORMAT   32

Index the sample format presence bit; not an on-disk tag number.

Definition at line 534 of file tif_dir.h.

◆ FIELD_SAMPLESPERPIXEL

#define FIELD_SAMPLESPERPIXEL   16

Index the samples per pixel presence bit; not an on-disk tag number.

Definition at line 476 of file tif_dir.h.

◆ FIELD_SMAXSAMPLEVALUE

#define FIELD_SMAXSAMPLEVALUE   34

Index the per-sample maximum presence bit; not an on-disk tag number.

Definition at line 544 of file tif_dir.h.

◆ FIELD_SMINSAMPLEVALUE

#define FIELD_SMINSAMPLEVALUE   33

Index the per-sample minimum presence bit; not an on-disk tag number.

Definition at line 539 of file tif_dir.h.

◆ FIELD_STRIPBYTECOUNTS

#define FIELD_STRIPBYTECOUNTS   24

Index the strile byte counts presence bit; not an on-disk tag number.

Definition at line 514 of file tif_dir.h.

◆ FIELD_STRIPOFFSETS

#define FIELD_STRIPOFFSETS   25

Index the strile offsets presence bit; not an on-disk tag number.

Definition at line 519 of file tif_dir.h.

◆ FIELD_SUBFILETYPE

#define FIELD_SUBFILETYPE   5

Index the subfile type presence bit; not an on-disk tag number.

Definition at line 441 of file tif_dir.h.

◆ FIELD_SUBIFD

#define FIELD_SUBIFD   49

Index the child IFD presence bit; not an on-disk tag number.

Definition at line 590 of file tif_dir.h.

◆ FIELD_THRESHHOLDING

#define FIELD_THRESHHOLDING   9

Index the thresholding presence bit; not an on-disk tag number.

Definition at line 461 of file tif_dir.h.

◆ FIELD_TILEDEPTH

#define FIELD_TILEDEPTH   36

Index the tile depth presence bit; not an on-disk tag number.

Definition at line 554 of file tif_dir.h.

◆ FIELD_TILEDIMENSIONS

#define FIELD_TILEDIMENSIONS   2

Index the tile dimensions presence bit; not an on-disk tag number.

Definition at line 424 of file tif_dir.h.

◆ FIELD_TRANSFERFUNCTION

#define FIELD_TRANSFERFUNCTION   44

Index the transfer function presence bit; not an on-disk tag number.

Definition at line 580 of file tif_dir.h.

◆ FIELD_YCBCRPOSITIONING

#define FIELD_YCBCRPOSITIONING   40

Index the YCbCr positioning presence bit; not an on-disk tag number.

Definition at line 569 of file tif_dir.h.

◆ FIELD_YCBCRSUBSAMPLING

#define FIELD_YCBCRSUBSAMPLING   39

Index the YCbCr subsampling presence bit; not an on-disk tag number.

Definition at line 564 of file tif_dir.h.

◆ FieldSet

#define FieldSet (   fields,
  f 
)    (fields[(f) / 32] & BITn(f))

Test a bit in a supplied presence bitmap.

No allocation, ownership change, diagnostic, or locking occurs. Arguments must identify valid bitmap storage.

Parameters
[in]fieldsReadable subscriptable bitmap expression with sufficient words; evaluated once. Parenthesise expressions that need it before subscripting.
[in]fValid nonnegative bit index; evaluated twice, so avoid side effects.
Returns
Nonzero mask if set, zero otherwise; no bounds check or state change.

Definition at line 705 of file tif_dir.h.

◆ FIELDSET_ITEMS

#define FIELDSET_ITEMS   4

Size of the presence bitmap in uint32_t words.

Definition at line 148 of file tif_dir.h.

◆ NOSTRIP

#define NOSTRIP   ((uint32_t)(-1)) /* undefined state */

Represent the absence of a current strip with UINT32_MAX.

Definition at line 250 of file tif_dir.h.

◆ NOTILE

#define NOTILE   ((uint32_t)(-1)) /* undefined state */

Represent the absence of a current tile with UINT32_MAX.

Definition at line 264 of file tif_dir.h.

◆ ResetFieldBit

#define ResetFieldBit (   fields,
  f 
)    (fields[(f) / 32] &= ~BITn(f))

Clear a bit in a supplied presence bitmap.

No allocation, ownership change, diagnostic, or locking occurs. Arguments must identify valid bitmap storage.

Parameters
[in,out]fieldsWritable bitmap with sufficient words; evaluated once.
[in]fValid nonnegative bit index; evaluated twice, so avoid side effects.
Returns
Updated bitmap word; no validation or resource cleanup.

Definition at line 719 of file tif_dir.h.

◆ TIFFClrFieldBit

#define TIFFClrFieldBit (   tif,
  field 
)    (BITFIELDn(tif, field) &= ~BITn(field))

Clear a directory presence bit.

No allocation, ownership change, diagnostic, or locking occurs. Arguments must identify valid bitmap storage.

Parameters
[in,out]tifNon-NULL handle expression, evaluated once.
[in]fieldValid bit index; evaluated twice, so avoid side effects.
Returns
Updated bitmap word; does not free/reset stored values or set dirty state.

Definition at line 688 of file tif_dir.h.

◆ TIFFFieldSet

#define TIFFFieldSet (   tif,
  field 
)    (BITFIELDn(tif, field) & BITn(field))

Test a directory presence bit.

No allocation, ownership change, diagnostic, or locking occurs. Arguments must identify valid bitmap storage.

Parameters
[in]tifNon-NULL handle expression, evaluated once.
[in]fieldValid bit index; evaluated twice, so avoid side effects.
Returns
Nonzero mask if set, zero otherwise; does not modify state.

Definition at line 662 of file tif_dir.h.

◆ TIFFSetFieldBit

#define TIFFSetFieldBit (   tif,
  field 
)    (BITFIELDn(tif, field) |= BITn(field))

Set a directory presence bit.

No allocation, ownership change, diagnostic, or locking occurs. Arguments must identify valid bitmap storage.

Parameters
[in,out]tifNon-NULL handle expression, evaluated once.
[in]fieldValid bit index; evaluated twice, so avoid side effects.
Returns
Updated bitmap word; no validation/diagnostic and no dirty flag change.

Definition at line 675 of file tif_dir.h.

Enumeration Type Documentation

◆ TIFFFieldArrayType

Identify the namespace described by a field array.

Enumerator
tfiatImage 

Main image-directory schema.

tfiatExif 

EXIF metadata-directory schema.

tfiatGps 

EXIF GPS metadata-directory schema.

tfiatOther 

Other application/compatibility schema.

Definition at line 936 of file tif_dir.h.

◆ TIFFSetGetFieldType

Encode the internal value and variadic count representation.

The suffix selects element storage, not an on-disk TIFFDataType. C0 uses an array with implicit/fixed count, C16 passes a 16-bit count, and C32 passes a 32-bit count. Unprefixed numeric types normally select scalar values. Getters receive output pointers; setters apply C default argument promotions to scalar values. Built-in exceptions still require tag- specific dispatch; see Tag arguments. These encodings alone cannot describe every calling convention.

Enumerator
TIFF_SETGET_UNDEFINED 

Unsupported or unspecified argument representation.

TIFF_SETGET_ASCII 

Null-terminated string representation.

TIFF_SETGET_UINT8 

Unsigned 8-bit scalar storage.

TIFF_SETGET_SINT8 

Signed 8-bit scalar storage.

TIFF_SETGET_UINT16 

Unsigned 16-bit scalar storage.

TIFF_SETGET_SINT16 

Signed 16-bit scalar storage.

TIFF_SETGET_UINT32 

Unsigned 32-bit scalar storage.

TIFF_SETGET_SINT32 

Signed 32-bit scalar storage.

TIFF_SETGET_UINT64 

Unsigned 64-bit scalar storage.

TIFF_SETGET_SINT64 

Signed 64-bit scalar storage.

TIFF_SETGET_FLOAT 

Float scalar storage.

TIFF_SETGET_DOUBLE 

Double scalar storage.

TIFF_SETGET_IFD8 

64-bit directory-offset scalar storage.

TIFF_SETGET_INT 

Promoted int scalar representation.

TIFF_SETGET_UINT16_PAIR 

Two separate promoted uint16_t values / uint16_t output slots.

TIFF_SETGET_C0_ASCII 

Character array with implicit count.

TIFF_SETGET_C0_UINT8 

Unsigned 8-bit array with implicit count.

TIFF_SETGET_C0_SINT8 

Signed 8-bit array with implicit count.

TIFF_SETGET_C0_UINT16 

Unsigned 16-bit array with implicit count.

TIFF_SETGET_C0_SINT16 

Signed 16-bit array with implicit count.

TIFF_SETGET_C0_UINT32 

Unsigned 32-bit array with implicit count.

TIFF_SETGET_C0_SINT32 

Signed 32-bit array with implicit count.

TIFF_SETGET_C0_UINT64 

Unsigned 64-bit array with implicit count.

TIFF_SETGET_C0_SINT64 

Signed 64-bit array with implicit count.

TIFF_SETGET_C0_FLOAT 

Float array with implicit count.

TIFF_SETGET_C0_DOUBLE 

Double array with implicit count.

TIFF_SETGET_C0_IFD8 

64-bit directory-offset array with implicit count.

TIFF_SETGET_C16_ASCII 

Character array with 16-bit explicit count.

TIFF_SETGET_C16_UINT8 

Unsigned 8-bit array with 16-bit explicit count.

TIFF_SETGET_C16_SINT8 

Signed 8-bit array with 16-bit explicit count.

TIFF_SETGET_C16_UINT16 

Unsigned 16-bit array with 16-bit explicit count.

TIFF_SETGET_C16_SINT16 

Signed 16-bit array with 16-bit explicit count.

TIFF_SETGET_C16_UINT32 

Unsigned 32-bit array with 16-bit explicit count.

TIFF_SETGET_C16_SINT32 

Signed 32-bit array with 16-bit explicit count.

TIFF_SETGET_C16_UINT64 

Unsigned 64-bit array with 16-bit explicit count.

TIFF_SETGET_C16_SINT64 

Signed 64-bit array with 16-bit explicit count.

TIFF_SETGET_C16_FLOAT 

Float array with 16-bit explicit count.

TIFF_SETGET_C16_DOUBLE 

Double array with 16-bit explicit count.

TIFF_SETGET_C16_IFD8 

64-bit directory-offset array with 16-bit explicit count.

TIFF_SETGET_C32_ASCII 

Character array with 32-bit explicit count.

TIFF_SETGET_C32_UINT8 

Unsigned 8-bit array with 32-bit explicit count.

TIFF_SETGET_C32_SINT8 

Signed 8-bit array with 32-bit explicit count.

TIFF_SETGET_C32_UINT16 

Unsigned 16-bit array with 32-bit explicit count.

TIFF_SETGET_C32_SINT16 

Signed 16-bit array with 32-bit explicit count.

TIFF_SETGET_C32_UINT32 

Unsigned 32-bit array with 32-bit explicit count.

TIFF_SETGET_C32_SINT32 

Signed 32-bit array with 32-bit explicit count.

TIFF_SETGET_C32_UINT64 

Unsigned 64-bit array with 32-bit explicit count.

TIFF_SETGET_C32_SINT64 

Signed 64-bit array with 32-bit explicit count.

TIFF_SETGET_C32_FLOAT 

Float array with 32-bit explicit count.

TIFF_SETGET_C32_DOUBLE 

Double array with 32-bit explicit count.

TIFF_SETGET_C32_IFD8 

64-bit directory-offset array with 32-bit explicit count.

TIFF_SETGET_OTHER 

Tag-specific calling convention outside the regular encodings.

Definition at line 733 of file tif_dir.h.

Function Documentation

◆ _TIFFCheckFieldIsValidForCodec()

int _TIFFCheckFieldIsValidForCodec ( TIFF *  tif,
ttag_t  tag 
)
extern

Filter recognised codec-specific tags against current compression.

Checks the explicit predictor/JPEG/OJPEG/CCITT/LERC tag list and whether its associated codec is configured. All unlisted tags pass without schema validation. Does not allocate, mutate state, or emit diagnostics.

Parameters
[in]tifNon-NULL live handle with current compression.
[in]tagTag identifier to filter.
Returns
One for an unlisted tag or a compatible configured codec; zero for a recognised incompatible/unconfigured codec tag.

Definition at line 1483 of file tif_dirinfo.c.

References COMPRESSION_ADOBE_DEFLATE, COMPRESSION_CCITTFAX3, COMPRESSION_CCITTFAX4, COMPRESSION_CCITTRLE, COMPRESSION_CCITTRLEW, COMPRESSION_DEFLATE, COMPRESSION_JBIG, COMPRESSION_JPEG, COMPRESSION_LERC, COMPRESSION_LZMA, COMPRESSION_LZW, COMPRESSION_NEXT, COMPRESSION_OJPEG, COMPRESSION_PACKBITS, COMPRESSION_PIXARLOG, COMPRESSION_SGILOG, COMPRESSION_SGILOG24, COMPRESSION_THUNDERSCAN, COMPRESSION_ZSTD, TIFFDirectory::td_compression, tiff::tif_dir, TIFFIsCODECConfigured(), TIFFTAG_BADFAXLINES, TIFFTAG_CLEANFAXDATA, TIFFTAG_CONSECUTIVEBADFAXLINES, TIFFTAG_GROUP3OPTIONS, TIFFTAG_GROUP4OPTIONS, TIFFTAG_JPEGACTABLES, TIFFTAG_JPEGDCTABLES, TIFFTAG_JPEGIFBYTECOUNT, TIFFTAG_JPEGIFOFFSET, TIFFTAG_JPEGPROC, TIFFTAG_JPEGQTABLES, TIFFTAG_JPEGRESTARTINTERVAL, TIFFTAG_JPEGTABLES, TIFFTAG_LERC_PARAMETERS, and TIFFTAG_PREDICTOR.

Referenced by TIFFReadDirectory().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _TIFFCreateAnonField()

TIFFField * _TIFFCreateAnonField ( TIFF *  tif,
uint32_t  tag,
TIFFDataType  field_type 
)
extern

Allocate a counted anonymous field descriptor.

Allocates a descriptor and a 32-byte generated name with the matching Ext allocator. Uses FIELD_CUSTOM, TIFF_VARIABLE2, a C32 representation, and changeable/pass-count flags. It does not register the descriptor. Before registration the caller owns both allocations and must release name then descriptor with _TIFFfreeExt(tif,...); registered anonymous storage is released by field-table/handle cleanup. Name-allocation failure frees the descriptor. Allocation-policy diagnostics may occur; raw exhaustion can be silent.

Parameters
[in,out]tifNon-NULL live TIFF handle; accessed without internal locking.
[in]tagUnknown tag identifier.
[in]field_typeOn-disk data type; unsupported values receive an undefined representation.
Returns
Owned descriptor, or NULL on allocation failure.

Definition at line 1109 of file tif_dirinfo.c.

References _TIFFfreeExt(), _TIFFmallocExt(), _TIFFmemset(), _TIFFField::field_anonymous, _TIFFField::field_bit, FIELD_CUSTOM, _TIFFField::field_name, _TIFFField::field_oktochange, _TIFFField::field_passcount, _TIFFField::field_readcount, _TIFFField::field_subfields, _TIFFField::field_tag, _TIFFField::field_type, _TIFFField::field_writecount, _TIFFField::set_get_field_type, TIFF_ASCII, TIFF_BYTE, TIFF_DOUBLE, TIFF_FLOAT, TIFF_IFD, TIFF_IFD8, TIFF_LONG, TIFF_LONG8, TIFF_NOTYPE, TIFF_RATIONAL, TIFF_SBYTE, TIFF_SETGET_C32_ASCII, TIFF_SETGET_C32_DOUBLE, TIFF_SETGET_C32_FLOAT, TIFF_SETGET_C32_IFD8, TIFF_SETGET_C32_SINT16, TIFF_SETGET_C32_SINT32, TIFF_SETGET_C32_SINT64, TIFF_SETGET_C32_SINT8, TIFF_SETGET_C32_UINT16, TIFF_SETGET_C32_UINT32, TIFF_SETGET_C32_UINT64, TIFF_SETGET_C32_UINT8, TIFF_SETGET_UNDEFINED, TIFF_SHORT, TIFF_SLONG, TIFF_SLONG8, TIFF_SRATIONAL, TIFF_SSHORT, TIFF_UNDEFINED, TIFF_VARIABLE2, and TRUE.

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _TIFFFindFieldByName()

static const TIFFField * _TIFFFindFieldByName ( TIFF *  tif,
const char *  field_name,
TIFFDataType  dt 
)
static

Find a registered descriptor by name and file type.

The result is borrowed; do not free or modify it. Directory field-table replacement or handle cleanup can invalidate it, particularly for anonymous and legacy descriptors. Lookup updates the handle's field cache but does not register a missing tag. Uses a linear name search because the table is sorted by tag. No diagnostic is emitted.

Parameters
[in,out]tifNon-NULL live TIFF handle; accessed without internal locking.
[in]field_nameNon-NULL case-sensitive terminated name.
[in]dtRequired type, or TIFF_ANY.
Returns
Borrowed matching descriptor or NULL.

Definition at line 1019 of file tif_dirinfo.c.

References _TIFFField::field_name, _TIFFField::field_type, streq, tagNameCompare(), td_lfind(), tiff::tif_fields, tiff::tif_foundfield, tiff::tif_nfields, TIFF_ANY, TIFF_NOTYPE, and TIFF_SETGET_UNDEFINED.

Referenced by TIFFFieldWithName().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _TIFFFindOrRegisterField()

const TIFFField * _TIFFFindOrRegisterField ( TIFF *  tif,
uint32_t  tag,
TIFFDataType  dt 
)
extern

Find a typed field or register an anonymous replacement.

Existing matches remain borrowed. If absent, allocates an anonymous descriptor/name and merges it into the handle table, which owns it on success. Merge failure follows _TIFFMergeFields() state changes and does not free the newly allocated descriptor/name in this implementation. No new ownership is returned on failure; this path can leak. Diagnostics follow the allocation/merge helpers. Existing tag numbers prevent a different type from actually being added, so use only for genuinely unknown tags or matching registered types (see

Returns
).
Parameters
[in,out]tifNon-NULL live TIFF handle; accessed without internal locking.
[in]tagTag number to find/register.
[in]dtRequired on-disk type.
Returns
Borrowed descriptor on success, or NULL on allocation/merge failure; valid until relevant table/handle cleanup. If the tag is already registered with a different type, the returned descriptor is a new anonymous descriptor that was not added to the table; it is not released by field-table or handle cleanup (it leaks), and later lookups return the existing descriptor.

Definition at line 1092 of file tif_dirinfo.c.

References _TIFFCreateAnonField(), _TIFFMergeFields(), and TIFFFindField().

Here is the call graph for this function:

◆ _TIFFGetExifFields()

const TIFFFieldArray * _TIFFGetExifFields ( void  )
extern

Return the built-in EXIF field schema.

Returns static borrowed storage for the library lifetime; do not modify/free the array or its descriptors. No allocation, diagnostics, or state changes occur.

Returns
Non-NULL pointer to the static schema.

Definition at line 634 of file tif_dirinfo.c.

References exifFieldArray.

Referenced by TIFFCreateEXIFDirectory(), and TIFFReadEXIFDirectory().

Here is the caller graph for this function:

◆ _TIFFGetFields()

const TIFFFieldArray * _TIFFGetFields ( void  )
extern

Return the built-in image field schema.

Returns static borrowed storage for the library lifetime; do not modify/free the array or its descriptors. No allocation, diagnostics, or state changes occur.

Returns
Non-NULL pointer to the static schema.

Definition at line 632 of file tif_dirinfo.c.

References tiffFieldArray.

Referenced by TIFFDefaultDirectory(), and TIFFReadCustomDirectory().

Here is the caller graph for this function:

◆ _TIFFGetGpsFields()

const TIFFFieldArray * _TIFFGetGpsFields ( void  )
extern

Return the built-in GPS field schema.

Returns static borrowed storage for the library lifetime; do not modify/free the array or its descriptors. No allocation, diagnostics, or state changes occur.

Returns
Non-NULL pointer to the static schema.

Definition at line 636 of file tif_dirinfo.c.

References gpsFieldArray.

Referenced by TIFFCreateGPSDirectory(), and TIFFReadGPSDirectory().

Here is the caller graph for this function:

◆ _TIFFMergeFields()

int _TIFFMergeFields ( TIFF *  tif,
const TIFFField  info[],
uint32_t  n 
)
extern

Merge borrowed field definitions into the lookup table.

Clears the lookup cache and grows/sorts the owned pointer table. Stores descriptor pointers, not copies; names and records must remain live and stable while registered. Existing tag numbers win regardless of type. Allocation failure is diagnosed and leaves the existing table and tif_nfields unchanged, so no fields are added. No directory values are created.

Parameters
[in,out]tifNon-NULL live TIFF handle; accessed without internal locking.
[in]infoReadable array of n long-lived descriptors.
[in]nPositive descriptor count; allocation product and int result must be representable.
Returns
Requested n cast to int on success, not the number actually added; zero on allocation failure (also the ambiguous zero-count result).

Definition at line 726 of file tif_dirinfo.c.

References _TIFFCheckMalloc(), _TIFFCheckRealloc(), tagCompare(), tiff::tif_fields, tiff::tif_foundfield, tiff::tif_nfields, TIFF_ANY, TIFFErrorExtR(), and TIFFFindField().

Referenced by _TIFFFindOrRegisterField(), _TIFFSetupFields(), TIFFInitJPEG(), TIFFInitLERC(), TIFFInitLZMA(), TIFFInitOJPEG(), TIFFInitPixarLog(), TIFFInitSGILog(), TIFFInitWebP(), TIFFInitZIP(), TIFFInitZSTD(), TIFFMergeFieldInfo(), TIFFPredictorInit(), TIFFReadCustomDirectory(), and TIFFReadDirectory().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _TIFFPrintFieldInfo()

void _TIFFPrintFieldInfo ( TIFF *  tif,
FILE *  fd 
)
extern

Print the registered field metadata to a stream.

Writes diagnostic text without modifying the field table or taking ownership of the stream. Does not check/report stdio failures and returns no status.

Parameters
[in]tifNon-NULL live handle with valid field names.
[in,out]fdNon-NULL writable borrowed stdio stream.

Definition at line 774 of file tif_dirinfo.c.

References _TIFFField::field_bit, _TIFFField::field_name, _TIFFField::field_oktochange, _TIFFField::field_passcount, _TIFFField::field_readcount, _TIFFField::field_tag, _TIFFField::field_type, _TIFFField::field_writecount, tiff::tif_fields, tiff::tif_name, and tiff::tif_nfields.

◆ _TIFFSetGetType()

static TIFFSetGetFieldType _TIFFSetGetType ( TIFFDataType  type,
short  count,
unsigned char  passcount 
)
static

Translate legacy type/count metadata into a set/get representation.

Maps scalar, fixed/implicit arrays, C16, and C32 patterns without allocation or state changes. Legacy rationals use float storage; IFD types use IFD8 argument representation. This is a metadata mapping, not validation of all runtime tag exceptions.

Parameters
[in]typeOn-disk data type.
[in]countFixed count or TIFF_VARIABLE/TIFF_VARIABLE2/TIFF_SPP sentinel.
[in]passcountOne to pass a count; zero for an implicit count.
Returns
Mapped representation, or TIFF_SETGET_UNDEFINED for unsupported combinations/types; no diagnostic.

Definition at line 1219 of file tif_dirinfo.c.

References TIFF_ASCII, TIFF_BYTE, TIFF_DOUBLE, TIFF_FLOAT, TIFF_IFD, TIFF_IFD8, TIFF_LONG, TIFF_LONG8, TIFF_NOTYPE, TIFF_RATIONAL, TIFF_SBYTE, TIFF_SETGET_ASCII, TIFF_SETGET_C0_ASCII, TIFF_SETGET_C0_DOUBLE, TIFF_SETGET_C0_FLOAT, TIFF_SETGET_C0_IFD8, TIFF_SETGET_C0_SINT16, TIFF_SETGET_C0_SINT32, TIFF_SETGET_C0_SINT64, TIFF_SETGET_C0_SINT8, TIFF_SETGET_C0_UINT16, TIFF_SETGET_C0_UINT32, TIFF_SETGET_C0_UINT64, TIFF_SETGET_C0_UINT8, TIFF_SETGET_C16_ASCII, TIFF_SETGET_C16_DOUBLE, TIFF_SETGET_C16_FLOAT, TIFF_SETGET_C16_IFD8, TIFF_SETGET_C16_SINT16, TIFF_SETGET_C16_SINT32, TIFF_SETGET_C16_SINT64, TIFF_SETGET_C16_SINT8, TIFF_SETGET_C16_UINT16, TIFF_SETGET_C16_UINT32, TIFF_SETGET_C16_UINT64, TIFF_SETGET_C16_UINT8, TIFF_SETGET_C32_ASCII, TIFF_SETGET_C32_DOUBLE, TIFF_SETGET_C32_FLOAT, TIFF_SETGET_C32_IFD8, TIFF_SETGET_C32_SINT16, TIFF_SETGET_C32_SINT32, TIFF_SETGET_C32_SINT64, TIFF_SETGET_C32_SINT8, TIFF_SETGET_C32_UINT16, TIFF_SETGET_C32_UINT32, TIFF_SETGET_C32_UINT64, TIFF_SETGET_C32_UINT8, TIFF_SETGET_DOUBLE, TIFF_SETGET_FLOAT, TIFF_SETGET_IFD8, TIFF_SETGET_SINT16, TIFF_SETGET_SINT32, TIFF_SETGET_SINT64, TIFF_SETGET_SINT8, TIFF_SETGET_UINT16, TIFF_SETGET_UINT32, TIFF_SETGET_UINT64, TIFF_SETGET_UINT8, TIFF_SETGET_UNDEFINED, TIFF_SHORT, TIFF_SLONG, TIFF_SLONG8, TIFF_SRATIONAL, TIFF_SSHORT, TIFF_UNDEFINED, TIFF_VARIABLE, and TIFF_VARIABLE2.

Referenced by TIFFMergeFieldInfo().

Here is the caller graph for this function:

◆ _TIFFSetupFields()

void _TIFFSetupFields ( TIFF *  tif,
const TIFFFieldArray *  fieldarray 
)
extern

Replace the registered field-pointer table with a schema.

Disposes old anonymous descriptors/names and the old pointer array when the table is non-empty, then merges the supplied borrowed descriptors. Ordinary field descriptors and names remain externally owned. Allocation failure is diagnosed without restoring the old table; this void interface cannot report status. Caller must dispose any directory values that still refer to removed descriptors before replacement.

Parameters
[in,out]tifNon-NULL live TIFF handle; accessed without internal locking.
[in]fieldarrayNon-NULL schema whose descriptors and names remain live while registered.

Definition at line 638 of file tif_dirinfo.c.

References _TIFFfreeExt(), _TIFFMergeFields(), _TIFFFieldArray::count, _TIFFField::field_bit, FIELD_CUSTOM, _TIFFField::field_name, _TIFFFieldArray::fields, tiff::tif_fields, tiff::tif_nfields, TIFFErrorExtR(), and TIFFFieldIsAnonymous().

Referenced by TIFFCreateCustomDirectory(), TIFFDefaultDirectory(), and TIFFReadCustomDirectory().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tagCompare()

static int tagCompare ( const void *  a,
const void *  b 
)
static

Compare field pointers by tag number and reverse type order.

TIFF_ANY in the left operand matches any type after the primary key matches. Borrows inputs without allocation or mutation; used for lookup and sorting.

Parameters
[in]aPointer to a readable TIFFField pointer; left/key operand.
[in]bPointer to a readable TIFFField pointer; right/element operand.
Returns
Negative, zero, or positive according to the ordering; zero means a match.

Definition at line 685 of file tif_dirinfo.c.

References _TIFFField::field_tag, _TIFFField::field_type, and TIFF_ANY.

Referenced by _TIFFMergeFields(), and TIFFFindField().

Here is the caller graph for this function:

◆ tagNameCompare()

static int tagNameCompare ( const void *  a,
const void *  b 
)
static

Compare field pointers by case-sensitive name and reverse type order.

TIFF_ANY in the left operand matches any type after the primary key matches. Borrows inputs without allocation or mutation; used for lookup. Names must be non-NULL terminated strings.

Parameters
[in]aPointer to a readable TIFFField pointer; left/key operand.
[in]bPointer to a readable TIFFField pointer; right/element operand.
Returns
Negative, zero, or positive according to the ordering; zero means a match.

Definition at line 712 of file tif_dirinfo.c.

References _TIFFField::field_name, _TIFFField::field_type, and TIFF_ANY.

Referenced by _TIFFFindFieldByName().

Here is the caller graph for this function:

◆ td_lfind()

static void * td_lfind ( const void *  key,
const void *  base,
size_t *  nmemb,
size_t  size,
int(*)(const void *, const void *)  compar 
)
static

Find the first equal fixed-width element by linear search.

Borrows the array and comparator; does not allocate or modify array storage/count. The comparator must return zero on equality and must not mutate/destroy the search storage. Caller ensures the extent product is representable.

Parameters
[in]keyBorrowed comparator key.
[in]baseReadable contiguous storage for *nmemb elements.
[in]nmembNon-NULL element-count pointer; not changed.
[in]sizePositive element width in bytes.
[in]comparNon-NULL comparator invoked synchronously with key and each element.
Returns
Borrowed pointer into base, or NULL if absent; lifetime follows base.

Definition at line 619 of file tif_dirinfo.c.

Referenced by _TIFFFindFieldByName().

Here is the caller graph for this function:

Variable Documentation

◆ _TIFFextender

TIFFExtendProc _TIFFextender = (TIFFExtendProc)NULL
static

Store the process-wide borrowed directory-extension callback.

Replaced by TIFFSetTagExtender(); initialisation invokes it synchronously without locking. NULL disables extension.

Definition at line 2230 of file tif_dir.c.

Referenced by TIFFDefaultDirectory(), and TIFFSetTagExtender().

◆ exifFieldArray

static const TIFFFieldArray exifFieldArray
static
Initial value:
= {
static const TIFFField exifFields[]
Describe the built-in EXIF fields and their argument representations.
@ tfiatExif
EXIF metadata-directory schema.
Definition tif_dir.h:941
#define TIFFArrayCount(a)
Compute the element count of an actual array.
Definition tiffiop.h:1239
Describe a field's file type and internal argument contract.
Definition tif_dir.h:993

Wrap the static EXIF field schema.

Borrowed immutable schema with zero allocated_size; do not release through dynamic field-array cleanup.

Definition at line 79 of file tif_dirinfo.c.

Referenced by _TIFFGetExifFields(), and TIFFCreateEXIFDirectory().

◆ exifFields

const TIFFField exifFields[]
static

Describe the built-in EXIF fields and their argument representations.

Static borrowed descriptors/names; registration stores pointers into this array. Entries encode file type, count rules, field bits, and set/get representation. Special built-in dispatch can override the generic argument shape.

Definition at line 403 of file tif_dirinfo.c.

◆ gpsFieldArray

static const TIFFFieldArray gpsFieldArray
static
Initial value:
= {
static const TIFFField gpsFields[]
Describe the built-in GPS fields and their argument representations.
@ tfiatGps
EXIF GPS metadata-directory schema.
Definition tif_dir.h:943

Wrap the static GPS field schema.

Borrowed immutable schema with zero allocated_size; do not release through dynamic field-array cleanup.

Definition at line 80 of file tif_dirinfo.c.

Referenced by _TIFFGetGpsFields(), and TIFFCreateGPSDirectory().

◆ gpsFields

const TIFFField gpsFields[]
static

Describe the built-in GPS fields and their argument representations.

Static borrowed descriptors/names; registration stores pointers into this array. Entries encode file type, count rules, field bits, and set/get representation. Special built-in dispatch can override the generic argument shape.

Definition at line 504 of file tif_dirinfo.c.

◆ tiffFieldArray

static const TIFFFieldArray tiffFieldArray
static
Initial value:
= {
static const TIFFField tiffFields[]
Describe the built-in image fields and their argument representations.
@ tfiatImage
Main image-directory schema.
Definition tif_dir.h:939

Wrap the static image field schema.

Borrowed immutable schema with zero allocated_size; do not release through dynamic field-array cleanup.

Definition at line 78 of file tif_dirinfo.c.

Referenced by _TIFFGetFields(), and TIFFDefaultDirectory().

◆ tiffFields

const TIFFField tiffFields[]
static

Describe the built-in image fields and their argument representations.

Static borrowed descriptors/names; registration stores pointers into this array. Entries encode file type, count rules, field bits, and set/get representation. Special built-in dispatch can override the generic argument shape.

Definition at line 111 of file tif_dirinfo.c.