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

Hold allocation limits and diagnostics used when opening a TIFF handle. More...

#include <tiffiop.h>

Collaboration diagram for TIFFOpenOptions:
[legend]

Data Fields

TIFFErrorHandlerExtR errorhandler
 Optional per-handle error callback, or NULL.
 
void * errorhandler_user_data
 Borrowed error-callback context, or NULL.
 
TIFFErrorHandlerExtR warnhandler
 Optional per-handle warning callback, or NULL.
 
void * warnhandler_user_data
 Borrowed warning-callback context, or NULL.
 
tmsize_t max_single_mem_alloc
 Maximum individual allocation in bytes; zero means unlimited.
 
tmsize_t max_cumulated_mem_alloc
 Maximum tracked allocation total in bytes; zero means unlimited.
 
int warn_about_unknown_tags
 Nonzero to warn about unknown tags.
 

Detailed Description

Hold allocation limits and diagnostics used when opening a TIFF handle.

The open-options API allocates and frees this object. Opening copies its settings into the handle; callback contexts are copied as pointers, not cloned or retained. They must remain valid while the resulting handle can invoke the callbacks, even after the options object has been freed.

Definition at line 790 of file tiffiop.h.

Field Documentation

◆ errorhandler

TIFFErrorHandlerExtR TIFFOpenOptions::errorhandler

Optional per-handle error callback, or NULL.

Definition at line 793 of file tiffiop.h.

Referenced by _TIFFErrorEarly(), TIFFClientOpenExt(), and TIFFOpenOptionsSetErrorHandlerExtR().

◆ errorhandler_user_data

void* TIFFOpenOptions::errorhandler_user_data

Borrowed error-callback context, or NULL.

Definition at line 795 of file tiffiop.h.

Referenced by _TIFFErrorEarly(), TIFFClientOpenExt(), and TIFFOpenOptionsSetErrorHandlerExtR().

◆ max_cumulated_mem_alloc

tmsize_t TIFFOpenOptions::max_cumulated_mem_alloc

Maximum tracked allocation total in bytes; zero means unlimited.

Definition at line 805 of file tiffiop.h.

Referenced by TIFFClientOpenExt(), and TIFFOpenOptionsSetMaxCumulatedMemAlloc().

◆ max_single_mem_alloc

tmsize_t TIFFOpenOptions::max_single_mem_alloc

Maximum individual allocation in bytes; zero means unlimited.

Definition at line 801 of file tiffiop.h.

Referenced by TIFFClientOpenExt(), and TIFFOpenOptionsSetMaxSingleMemAlloc().

◆ warn_about_unknown_tags

int TIFFOpenOptions::warn_about_unknown_tags

Nonzero to warn about unknown tags.

Definition at line 807 of file tiffiop.h.

Referenced by TIFFClientOpenExt(), and TIFFOpenOptionsSetWarnAboutUnknownTags().

◆ warnhandler

TIFFErrorHandlerExtR TIFFOpenOptions::warnhandler

Optional per-handle warning callback, or NULL.

Definition at line 797 of file tiffiop.h.

Referenced by TIFFClientOpenExt(), and TIFFOpenOptionsSetWarningHandlerExtR().

◆ warnhandler_user_data

void* TIFFOpenOptions::warnhandler_user_data

Borrowed warning-callback context, or NULL.

Definition at line 799 of file tiffiop.h.

Referenced by TIFFClientOpenExt(), and TIFFOpenOptionsSetWarningHandlerExtR().


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