115 "tif_cur_cumulated_mem_alloc = %" PRIu64
" whereas it "
153 (void)(*closeproc)(fd);
void TIFFHashSetDestroy(TIFFHashSet *set)
Release a hash set and dispose its live elements if configured.
void _TIFFCleanupIFDOffsetAndNumberMaps(TIFF *tif)
Release a handle's directory-offset/index lookup maps.
void _TIFFfreeExt(TIFF *tif, void *p)
Release a handle-aware allocation and its payload charge.
#define TIFF_MYBUFFER
Mark a raw buffer owned and released by the handle.
#define TIFFUnmapFileContents(tif, addr, size)
Invoke the handle's client unmapping callback.
#define isMapped(tif)
Test whether TIFF_MAPPED is set on a handle.
#define FIELD_CUSTOM
Identify a field stored through the custom-metadata mechanism.
void TIFFErrorExtR(TIFF *tif, const char *module, const char *fmt,...)
Dispatch a error diagnostic to the configured handlers.
void TIFFFreeDirectory(TIFF *tif)
Release the current directory's owned values and codec state.
int TIFFFieldIsAnonymous(const TIFFField *fip)
Test whether a field was registered as an unknown tag.
int(* TIFFCloseProc)(thandle_t fd)
Release a client I/O resource or its adapter context.
void TIFFClose(TIFF *tif)
Release a TIFF handle and invoke its client close callback.
int TIFFFlush(TIFF *tif)
Flush pending image data and dirty directory information.
void TIFFCleanup(TIFF *tif)
Release library state without invoking the client close callback.
uint64_t toff_t
Represent an unsigned file byte offset independently of off_t.
void * thandle_t
Carry an opaque client I/O context through library callbacks.
uint32_t allocated_size
Descriptor capacity when owned; zero identifies a static schema.
TIFFField * fields
Descriptor array; static/borrowed or owned according to allocated_size and creator.
Describe a field's file type and internal argument contract.
const char * field_name
Borrowed or anonymous-owned null-terminated name; must remain live while used.
unsigned short field_bit
FIELD_* presence index; FIELD_CUSTOM shares storage through the custom list.
Link a named client-data association to a TIFF handle.
struct client_info * next
Next handle-owned association node, or NULL.
char * name
Owned copy of the null-terminated association name.
Hold private state for one open TIFF library instance.
TIFFHashSet * tif_map_dir_number_to_offset
Handle-managed directory-index-to-offset lookup map.
size_t tif_nfields
Number of entries in tif_fields.
TIFFCloseProc tif_closeproc
Client I/O close callback.
TIFFClientInfoLink * tif_clientinfo
Head of the owned named-association list; payloads remain borrowed.
TIFFField ** tif_fields
Owned sorted array of field pointers; descriptors have mixed ownership.
TIFFHashSet * tif_map_dir_offset_to_number
Handle-managed directory-offset-to-index lookup map.
thandle_t tif_clientdata
Client I/O context passed unchanged to the I/O callbacks.
tmsize_t tif_size
Mapped-file region length in bytes.
tmsize_t tif_cur_cumulated_mem_alloc
Current tracked allocation total in bytes.
uint8_t * tif_rawdata
Raw buffer; ownership/mapping follow TIFF_MYBUFFER and TIFF_BUFFERMMAP.
tmsize_t tif_rawdatasize
Raw-buffer capacity in bytes; kept in step with tif_rawdata, including zero whenever tif_rawdata is N...
uint32_t tif_flags
Bitmask combining the TIFF_* handle-state flags declared below.
size_t tif_nfieldscompat
Number of entries in tif_fieldscompat.
int tif_mode
Current access mode using the O_* constants.
TIFFFieldArray * tif_fieldscompat
Owned array of legacy field-registration batches.
uint8_t * tif_base
Mapped-file base provided by tif_mapproc; released through tif_unmapproc by TIFFCleanup() only while ...
Declare private library state, callbacks, and implementation helpers.