40#define TIFFInitLZW NotConfigured
42#ifndef PACKBITS_SUPPORT
43#define TIFFInitPackBits NotConfigured
45#ifndef THUNDER_SUPPORT
46#define TIFFInitThunderScan NotConfigured
49#define TIFFInitNeXT NotConfigured
52#define TIFFInitJPEG NotConfigured
55#define TIFFInitOJPEG NotConfigured
58#define TIFFInitCCITTRLE NotConfigured
59#define TIFFInitCCITTRLEW NotConfigured
60#define TIFFInitCCITTFax3 NotConfigured
61#define TIFFInitCCITTFax4 NotConfigured
64#define TIFFInitJBIG NotConfigured
67#define TIFFInitZIP NotConfigured
69#ifndef PIXARLOG_SUPPORT
70#define TIFFInitPixarLog NotConfigured
73#define TIFFInitSGILog NotConfigured
76#define TIFFInitLERC NotConfigured
79#define TIFFInitLZMA NotConfigured
82#define TIFFInitZSTD NotConfigured
85#define TIFFInitWebP NotConfigured
129 char compression_code[20];
131 snprintf(compression_code,
sizeof(compression_code),
"%" PRIu16,
134 "%s compression support is not configured",
135 c ? c->
name : compression_code);
179 if (codec->
init == NULL)
int TIFFInitThunderScan(TIFF *tif, int scheme)
Install ThunderScan transfer callbacks.
int TIFFInitPackBits(TIFF *tif, int scheme)
Install PackBits transfer callbacks.
int TIFFInitNeXT(TIFF *tif, int scheme)
Install NeXT transfer callbacks.
int TIFFInitDumpMode(TIFF *tif, int scheme)
Install uncompressed transfer callbacks.
static int NotConfigured(TIFF *, int)
Install unavailable-codec setup methods while accepting metadata access.
static int _notConfigured(TIFF *tif)
Report that the current compression support was not built.
const TIFFCodec _TIFFBuiltinCODECS[]
Describe built-in compression names and initialisers.
int TIFFInitZIP(TIFF *tif, int scheme)
Install predictor-aware Deflate codec and allocator hooks.
int TIFFInitCCITTRLE(TIFF *tif, int scheme)
Install CCITTRLE fax callbacks and default mode.
int TIFFInitCCITTRLEW(TIFF *tif, int scheme)
Install CCITTRLEW fax callbacks and default mode.
int TIFFInitCCITTFax4(TIFF *tif, int scheme)
Install CCITTFax4 fax callbacks and default mode.
int TIFFInitCCITTFax3(TIFF *tif, int scheme)
Install CCITTFax3 fax callbacks and default mode.
int TIFFInitJBIG(TIFF *tif, int scheme)
Install single-strip JBIG callbacks and mutable raw-input policy.
int TIFFInitJPEG(TIFF *tif, int scheme)
Allocate JPEG-in-TIFF codec state and install method chains.
int TIFFInitLERC(TIFF *tif, int scheme)
Allocate LERC staging state and install frame callbacks and pseudo-tags.
int TIFFInitLZMA(TIFF *tif, int scheme)
Allocate predictor-aware LZMA2 codec state and install callbacks.
int TIFFInitLZW(TIFF *tif, int scheme)
Allocate LZW codec state and install predictor-aware methods.
int TIFFInitOJPEG(TIFF *tif, int scheme)
Install the decode-only old-style JPEG codec.
int TIFFInitPixarLog(TIFF *tif, int scheme)
Install PixarLog codec state methods and companding tables.
int TIFFInitSGILog(TIFF *tif, int scheme)
Allocate SGILog codec state and install row dispatch and tag hooks.
#define FALSE
Represent the legacy internal false value.
int TIFFInitWebP(TIFF *tif, int scheme)
Allocate WebP codec state and install buffered frame callbacks.
int TIFFInitZSTD(TIFF *tif, int scheme)
Allocate ZSTD state and install predictor-aware streaming methods.
const TIFFCodec * TIFFFindCODEC(uint16_t scheme)
Find the highest-priority descriptor for a compression scheme.
int TIFFIsCODECConfigured(uint16_t scheme)
Check whether the selected descriptor has a configured initialiser.
void TIFFErrorExtR(TIFF *tif, const char *module, const char *fmt,...)
Dispatch a error diagnostic to the configured handlers.
Describe a named compression scheme and its initialiser.
const char * name
Codec name; storage lifetime follows the API supplying this descriptor.
TIFFInitMethod init
Callback that installs the codec on a TIFF handle.
uint16_t td_compression
COMPRESSION_* codec identifier.
Hold private state for one open TIFF library instance.
TIFFBoolMethod tif_fixuptags
Codec callback for directory-dependent tag corrections.
char * tif_name
Current filename pointer; may refer to inline or client-supplied storage.
TIFFBoolMethod tif_setupencode
Codec setup callback run before preencode.
TIFFDirectory tif_dir
Inline representation of the current image directory.
int tif_decodestatus
Nonzero unless the selected scheme is a known but unconfigured codec; not a setup result.
int tif_encodestatus
Nonzero unless the selected scheme is a known but unconfigured codec; never read.
TIFFBoolMethod tif_setupdecode
Codec setup callback run before predecode.
Declare private library state, callbacks, and implementation helpers.