LibTIFF 4.7.2
TIFF library public API and implementation reference
Loading...
Searching...
No Matches
Functions | Variables
tif_dirinfo.c File Reference

Define directory schemas and implement field registration and queries. More...

#include "tiffiop.h"
#include <stdlib.h>
Include dependency graph for tif_dirinfo.c:

Go to the source code of this file.

Functions

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.
 
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.
 
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.
 
int _TIFFMergeFields (TIFF *tif, const TIFFField info[], uint32_t n)
 Merge borrowed field definitions into the lookup table.
 
void _TIFFPrintFieldInfo (TIFF *tif, FILE *fd)
 Print the registered field metadata to a stream.
 
int TIFFDataWidth (TIFFDataType type)
 Report the on-disk byte width of a TIFF data type.
 
int TIFFFieldSetGetSize (const TIFFField *fip)
 Report the internal element storage width of a field.
 
int TIFFFieldSetGetCountSize (const TIFFField *fip)
 Report the count width encoded by a field's set/get representation.
 
const TIFFField * TIFFFindField (TIFF *tif, uint32_t tag, TIFFDataType dt)
 Find a registered field by tag number and file data type.
 
static const TIFFField * _TIFFFindFieldByName (TIFF *tif, const char *field_name, TIFFDataType dt)
 Find a registered descriptor by name and file type.
 
const TIFFField * TIFFFieldWithTag (TIFF *tif, uint32_t tag)
 Find a registered field by tag number.
 
const TIFFField * TIFFFieldWithName (TIFF *tif, const char *field_name)
 Find a registered field by name.
 
uint32_t TIFFFieldTag (const TIFFField *fip)
 Read a field descriptor's tag number.
 
const char * TIFFFieldName (const TIFFField *fip)
 Read a field descriptor's name.
 
TIFFDataType TIFFFieldDataType (const TIFFField *fip)
 Read a field descriptor's on-disk data type.
 
int TIFFFieldPassCount (const TIFFField *fip)
 Test whether a field passes an explicit count argument.
 
int TIFFFieldReadCount (const TIFFField *fip)
 Read a field descriptor's getter count rule.
 
int TIFFFieldWriteCount (const TIFFField *fip)
 Read a field descriptor's setter count rule.
 
int TIFFFieldIsAnonymous (const TIFFField *fip)
 Test whether a field was registered as an unknown tag.
 
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.
 
static TIFFSetGetFieldType _TIFFSetGetType (TIFFDataType type, short count, unsigned char passcount)
 Translate legacy type/count metadata into a set/get representation.
 
int TIFFMergeFieldInfo (TIFF *tif, const TIFFFieldInfo info[], uint32_t n)
 Register legacy application field definitions on a handle.
 
int _TIFFCheckFieldIsValidForCodec (TIFF *tif, ttag_t tag)
 Filter recognised codec-specific tags against current compression.
 

Variables

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.
 
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.
 

Detailed Description

Define directory schemas and implement field registration and queries.

Definition in file tif_dirinfo.c.