|
LibTIFF 4.7.2
TIFF library public API and implementation reference
|
Declare private library state, callbacks, and implementation helpers. More...
#include "tif_config.h"#include <fcntl.h>#include <sys/types.h>#include <math.h>#include <stdbool.h>#include <string.h>#include <assert.h>#include "tif_hash_set.h"#include "tiffio.h"#include "tif_dir.h"#include "tiff_bounds_safety.h"#include <limits.h>Go to the source code of this file.
Data Structures | |
| struct | client_info |
| Link a named client-data association to a TIFF handle. More... | |
| struct | TIFFOffsetAndDirNumber |
| Pair a directory file offset with its main-IFD index. More... | |
| union | TIFFHeaderUnion |
| Store either TIFF header layout in the library's in-memory state. More... | |
| struct | tiff |
| Hold private state for one open TIFF library instance. More... | |
| struct | TIFFOpenOptions |
| Hold allocation limits and diagnostics used when opening a TIFF handle. More... | |
Macros | |
| #define | TIFF_NON_EXISTENT_DIR_NUMBER UINT_MAX |
| Mark an unknown or nonexistent directory index. | |
| #define | streq(a, b) (strcmp(a, b) == 0) |
| Compare two null-terminated strings for equality. | |
| #define | strneq(a, b, n) (strncmp(a, b, n) == 0) |
| Compare up to n bytes of two strings for equality. | |
| #define | TRUE 1 |
| Represent the legacy internal true value. | |
| #define | FALSE 0 |
| Represent the legacy internal false value. | |
| #define | TIFF_FILLORDER 0x00003U |
| Mask the selected data bit-fill-order bits in tif_flags. | |
| #define | TIFF_DIRTYHEADER 0x00004U |
| Mark a file header that needs writing. | |
| #define | TIFF_DIRTYDIRECT 0x00008U |
| Mark a current directory that needs writing. | |
| #define | TIFF_BUFFERSETUP 0x00010U |
| Mark completed data-buffer setup. | |
| #define | TIFF_CODERSETUP 0x00020U |
| Mark completed codec setup. | |
| #define | TIFF_BEENWRITING 0x00040U |
| Record that scanline or image-data writing has begun. | |
| #define | TIFF_SWAB 0x00080U |
| Request swapping multibyte file values to or from host order. | |
| #define | TIFF_NOBITREV 0x00100U |
| Suppress automatic bit reversal. | |
| #define | TIFF_MYBUFFER 0x00200U |
| Mark a raw buffer owned and released by the handle. | |
| #define | TIFF_ISTILED 0x00400U |
| Mark tile-based rather than strip-based image storage. | |
| #define | TIFF_MAPPED 0x00800U |
| Request or record memory-mapped file access. | |
| #define | TIFF_POSTENCODE 0x01000U |
| Request a pending codec postencode call. | |
| #define | TIFF_INSUBIFD 0x02000U |
| Mark writing within a SubIFD sequence. | |
| #define | TIFF_UPSAMPLED 0x04000U |
| Mark codec output that has already been upsampled. | |
| #define | TIFF_STRIPCHOP 0x08000U |
| Enable internal chopping of a large uncompressed strip. | |
| #define | TIFF_HEADERONLY 0x10000U |
| Request header-only opening without reading the first IFD. | |
| #define | TIFF_NOREADRAW 0x20000U |
| Suppress the normal raw-data read path. | |
| #define | TIFF_INCUSTOMIFD 0x40000U |
| Mark writing of a custom IFD. | |
| #define | TIFF_BIGTIFF 0x80000U |
| Mark the BigTIFF file format. | |
| #define | TIFF_BUF4WRITE 0x100000U |
| Interpret the raw buffer and its byte count as pending output. | |
| #define | TIFF_DIRTYSTRIP 0x200000U |
| Mark strip/tile offset or byte-count arrays that need writing. | |
| #define | TIFF_PERSAMPLE 0x400000U |
| Select per-sample arrays for supported sample-valued fields. | |
| #define | TIFF_BUFFERMMAP 0x800000U |
| Mark raw data that borrows mapped-file storage. | |
| #define | TIFF_DEFERSTRILELOAD 0x1000000U |
| Defer loading strip/tile offset and byte-count arrays. | |
| #define | TIFF_LAZYSTRILELOAD_DONE 0x2000000U |
| Record a switch from on-demand to full strip/tile-array loading. | |
| #define | TIFF_CHOPPEDUPARRAYS 0x4000000U |
| Mark strip arrays replaced by the strip-chopping operation. | |
| #define | TIFF_LAZYSTRILELOAD_ASKED 0x8000000U |
| Record a lazy strip/tile loading request from the O open flag. | |
| #define | isPseudoTag(t) (t > 0xffff) /* is tag value normal or pseudo */ |
| Test whether a tag identifier is outside the on-disk 16-bit range. | |
| #define | isTiled(tif) (((tif)->tif_flags & TIFF_ISTILED) != 0) |
| Test whether a handle uses tiled storage. | |
| #define | isMapped(tif) (((tif)->tif_flags & TIFF_MAPPED) != 0) |
| Test whether TIFF_MAPPED is set on a handle. | |
| #define | isFillOrder(tif, o) (((tif)->tif_flags & (o)) != 0) |
| Test whether selected bit-fill-order bits are present in a handle. | |
| #define | isUpSampled(tif) (((tif)->tif_flags & TIFF_UPSAMPLED) != 0) |
| Test whether the codec reports upsampled output. | |
| #define | TIFFReadFile(tif, buf, size) ((*(tif)->tif_readproc)((tif)->tif_clientdata, (buf), (size))) |
| Invoke the handle's client read callback. | |
| #define | TIFFWriteFile(tif, buf, size) ((*(tif)->tif_writeproc)((tif)->tif_clientdata, (buf), (size))) |
| Invoke the handle's client write callback. | |
| #define | TIFFSeekFile(tif, off, whence) ((*(tif)->tif_seekproc)((tif)->tif_clientdata, (off), (whence))) |
| Invoke the handle's client seek callback. | |
| #define | TIFFCloseFile(tif) ((*(tif)->tif_closeproc)((tif)->tif_clientdata)) |
| Invoke the handle's client close callback. | |
| #define | TIFFGetFileSize(tif) ((*(tif)->tif_sizeproc)((tif)->tif_clientdata)) |
| Invoke the handle's client size callback. | |
| #define | TIFFMapFileContents(tif, paddr, psize) ((*(tif)->tif_mapproc)((tif)->tif_clientdata, (paddr), (psize))) |
| Invoke the handle's client mapping callback. | |
| #define | TIFFUnmapFileContents(tif, addr, size) ((*(tif)->tif_unmapproc)((tif)->tif_clientdata, (addr), (size))) |
| Invoke the handle's client unmapping callback. | |
| #define | ReadOK(tif, buf, size) (TIFFReadFile((tif), (buf), (size)) == (tmsize_t)(size)) |
| Test whether one client read transfers the entire requested byte count. | |
| #define | SeekOK(tif, off) _TIFFSeekOK(tif, off) |
| Test whether an absolute seek reaches the requested file position. | |
| #define | WriteOK(tif, buf, size) (TIFFWriteFile((tif), (buf), (size)) == (tmsize_t)(size)) |
| Test whether one client write transfers the entire requested byte count. | |
| #define | TIFFhowmany_32(x, y) |
| Compute a guarded 32-bit ceiling quotient. | |
| #define | TIFFhowmany_32_maxuint_compat(x, y) |
| Compute a 32-bit ceiling quotient without adding x and y first. | |
| #define | TIFFhowmany8_32(x) (((x) & 0x07) ? ((uint32_t)(x) >> 3) + 1 : (uint32_t)(x) >> 3) |
| Compute the byte count needed to hold a 32-bit bit count. | |
| #define | TIFFroundup_32(x, y) ((uint32_t)(TIFFhowmany_32(x, y) * (uint32_t)(y))) |
| Round a 32-bit value up to a multiple using the guarded quotient. | |
| #define | TIFFhowmany_64(x, y) ((((uint64_t)(x)) + (((uint64_t)(y)) - 1)) / ((uint64_t)(y))) |
| Compute a 64-bit ceiling quotient using an unchecked addition. | |
| #define | TIFFhowmany8_64(x) (((x) & 0x07) ? ((uint64_t)(x) >> 3) + 1 : (uint64_t)(x) >> 3) |
| Compute the byte count needed to hold a 64-bit bit count. | |
| #define | TIFFroundup_64(x, y) ((uint64_t)(TIFFhowmany_64(x, y) * (uint64_t)(y))) |
| Round a 64-bit value up to a multiple without overflow checks. | |
| #define | TIFFSafeMultiply(t, v, m) |
| Multiply in a caller-selected unsigned type with a reverse-division check. | |
| #define | TIFFSafeModMul32(tif, module, index, count, dimension, result) |
| Compute (index modulo count) times dimension with a checked product. | |
| #define | TIFFmax(A, B) ((A) > (B) ? (A) : (B)) |
| Select the first operand if it is greater, otherwise the second. | |
| #define | TIFFmin(A, B) ((A) < (B) ? (A) : (B)) |
| Select the first operand if it is smaller, otherwise the second. | |
| #define | TIFFArrayCount(a) (sizeof(a) / sizeof((a)[0])) |
| Compute the element count of an actual array. | |
| #define | TIFF_FLOAT_EQ(x, y) (!(fabsf((x) - (y)) > 0.0f)) |
| Test whether a float difference is not greater than zero in magnitude. | |
| #define | TIFF_DOUBLE_EQ(x, y) (!(fabs((x) - (y)) > 0.0)) |
| Test whether a double difference is not greater than zero in magnitude. | |
| #define | _TIFF_lseek_f(fildes, offset, whence) lseek(fildes, offset, whence) |
| Seek a file descriptor through the platform large-file interface. | |
| #define | _TIFF_fseek_f(stream, offset, whence) fseek(stream, offset, whence) |
| Seek a stream through the platform large-file interface. | |
| #define | _TIFF_fstat_f(fildes, stat_buff) fstat(fildes, stat_buff) |
| Query file status through the platform large-file interface. | |
| #define | _TIFF_stat_s struct stat |
| Select the platform file-status structure type. | |
| #define | _TIFF_off_t off_t |
| Select the platform large-file offset type. | |
| #define | TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW |
| Suppress unsigned-overflow instrumentation on supported Clang functions. | |
Typedefs | |
| typedef struct client_info | TIFFClientInfoLink |
| Link a named client-data association to a TIFF handle. | |
| typedef unsigned char | tidataval_t |
| Name a legacy internal image byte. | |
| typedef tidataval_t * | tidata_t |
| Name a legacy pointer to internal image bytes. | |
| typedef void(* | TIFFVoidMethod) (TIFF *tif) |
| Run a codec close or cleanup operation. | |
| typedef int(* | TIFFBoolMethod) (TIFF *tif) |
| Run a codec setup or completion operation. | |
| typedef int(* | TIFFPreMethod) (TIFF *tif, uint16_t sample) |
| Prepare a codec for one sample plane. | |
| typedef int(* | TIFFCodeMethod) (TIFF *tif, uint8_t *buf, tmsize_t size, uint16_t sample) |
| Encode or decode a requested image-data extent. | |
| typedef int(* | TIFFSeekMethod) (TIFF *tif, uint32_t nrows) |
| Advance codec decoding or encoding by a row count. | |
| typedef void(* | TIFFPostMethod) (TIFF *tif, uint8_t *buf, tmsize_t size) |
| Transform image bytes in place after decoding or before encoding. | |
| typedef uint32_t(* | TIFFStripMethod) (TIFF *tif, uint32_t request) |
| Recommend rows per strip for the current geometry and codec. | |
| typedef void(* | TIFFTileMethod) (TIFF *tif, uint32_t *tw, uint32_t *th) |
| Adjust tile width and height for the current codec. | |
| typedef uint64_t(* | TIFFGetMaxCompressionRatioMethod) (TIFF *tif) |
| Return the codec allocation-sanity compression-ratio heuristic. | |
| typedef struct TIFFOffsetAndDirNumber | TIFFOffsetAndDirNumber |
| Name the TIFFOffsetAndDirNumber record type. | |
| typedef size_t | TIFFIOSize_t |
| Represent a native POSIX I/O byte count. | |
Enumerations | |
| enum | TIFFReadDirEntryErr { TIFFReadDirEntryErrOk = 0 , TIFFReadDirEntryErrCount = 1 , TIFFReadDirEntryErrType = 2 , TIFFReadDirEntryErrIo = 3 , TIFFReadDirEntryErrRange = 4 , TIFFReadDirEntryErrPsdif = 5 , TIFFReadDirEntryErrSizesan = 6 , TIFFReadDirEntryErrAlloc = 7 } |
| Classify directory-entry decoding failures. More... | |
Functions | |
| int | _tiffDummyMapProc (thandle_t fd, void **pbase, toff_t *psize) |
| Decline mapping when the client supplies no mapping implementation. | |
| void | _tiffDummyUnmapProc (thandle_t fd, void *base, toff_t size) |
| Provide a no-op unmapper when the client omits one. | |
| int | _TIFFgetMode (TIFFOpenOptions *opts, thandle_t clientdata, const char *mode, const char *module) |
| Translate the leading open-mode characters into OS access flags. | |
| int | _TIFFNoRowEncode (TIFF *tif, uint8_t *pp, tmsize_t cc, uint16_t s) |
| Report unsupported codec encoding. | |
| int | _TIFFNoStripEncode (TIFF *tif, uint8_t *pp, tmsize_t cc, uint16_t s) |
| Report unsupported codec encoding. | |
| int | _TIFFNoTileEncode (TIFF *tif, uint8_t *pp, tmsize_t cc, uint16_t s) |
| Report unsupported codec encoding. | |
| int | _TIFFNoRowDecode (TIFF *tif, uint8_t *pp, tmsize_t cc, uint16_t s) |
| Report unsupported codec decoding. | |
| int | _TIFFNoStripDecode (TIFF *tif, uint8_t *pp, tmsize_t cc, uint16_t s) |
| Report unsupported codec decoding. | |
| int | _TIFFNoTileDecode (TIFF *tif, uint8_t *pp, tmsize_t cc, uint16_t s) |
| Report unsupported codec decoding. | |
| void | _TIFFNoPostDecode (TIFF *tif, uint8_t *buf, tmsize_t cc) |
| Leave decoded bytes unchanged. | |
| int | _TIFFNoPreCode (TIFF *tif, uint16_t s) |
| Accept a no-op codec preparation. | |
| int | _TIFFNoSeek (TIFF *tif, uint32_t off) |
| Report unsupported codec seeking. | |
| void | _TIFFSwab16BitData (TIFF *tif, uint8_t *buf, tmsize_t cc) |
| Swap each 2-byte sample in place. | |
| void | _TIFFSwab24BitData (TIFF *tif, uint8_t *buf, tmsize_t cc) |
| Swap each 3-byte sample in place. | |
| void | _TIFFSwab32BitData (TIFF *tif, uint8_t *buf, tmsize_t cc) |
| Swap each 4-byte sample in place. | |
| void | _TIFFSwab64BitData (TIFF *tif, uint8_t *buf, tmsize_t cc) |
| Swap each 8-byte sample in place. | |
| int | _TIFFCheckPostDecodeLength (TIFF *tif, TIFFPostMethod tif_postdecode, tmsize_t cc, const char *modulename) |
| Check the byte count for a byte-swapping postdecode method. | |
| int | TIFFFlushData1 (TIFF *tif) |
| Append buffered encoded bytes without invoking postencode recursively. | |
| int | TIFFDefaultDirectory (TIFF *tif) |
| Install the image schema, default values, and core tag methods. | |
| void | _TIFFSetDefaultCompressionState (TIFF *tif) |
| Install fallback codec callbacks and reset raw-access flags. | |
| int | _TIFFRewriteField (TIFF *tif, uint16_t tag, TIFFDataType in_datatype, tmsize_t count, void *data) |
| Patch an existing field in the current on-file IFD. | |
| int | TIFFSetCompressionScheme (TIFF *tif, int scheme) |
| Reset methods and install the selected compression implementation. | |
| int | TIFFSetDefaultCompressionState (TIFF *tif) |
| Retain an obsolete declaration with no library implementation. | |
| uint32_t | _TIFFDefaultStripSize (TIFF *tif, uint32_t s) |
| Choose a default strip height near STRIP_SIZE_DEFAULT bytes. | |
| void | _TIFFDefaultTileSize (TIFF *tif, uint32_t *tw, uint32_t *th) |
| Supply default tile dimensions and round them to multiples of sixteen. | |
| void | _TIFFsetByteArray (void **vpp, const void *vp, uint32_t n) |
| Replace an owned byte array with a copied array. | |
| void | _TIFFsetByteArrayExt (TIFF *tif, void **vpp, const void *vp, uint32_t n) |
| Replace an owned byte array with a copied array. | |
| void | _TIFFsetShortArray (uint16_t **wpp, const uint16_t *wp, uint32_t n) |
| Replace an owned short array with a copied array. | |
| void | _TIFFsetShortArrayExt (TIFF *tif, uint16_t **wpp, const uint16_t *wp, uint32_t n) |
| Replace an owned short array with a copied array. | |
| void | _TIFFsetLongArray (uint32_t **lpp, const uint32_t *lp, uint32_t n) |
| Replace an owned long array with a copied array. | |
| void | _TIFFsetLongArrayExt (TIFF *tif, uint32_t **lpp, const uint32_t *lp, uint32_t n) |
| Replace an owned long array with a copied array. | |
| void | _TIFFsetFloatArray (float **fpp, const float *fp, uint32_t n) |
| Replace an owned float array with a copied array. | |
| void | _TIFFsetFloatArrayExt (TIFF *tif, float **fpp, const float *fp, uint32_t n) |
| Replace an owned float array with a copied array. | |
| void | _TIFFsetDoubleArray (double **dpp, const double *dp, uint32_t n) |
| Replace an owned double array with a copied array. | |
| void | _TIFFsetDoubleArrayExt (TIFF *tif, double **dpp, const double *dp, uint32_t n) |
| Replace an owned double array with a copied array. | |
| void | _TIFFprintAscii (FILE *fd, const char *cp) |
| Print a terminated string using the private ASCII escape convention. | |
| void | _TIFFprintAsciiTag (FILE *fd, const char *name, const char *value) |
| Print a labelled quoted value using the private ASCII formatter. | |
| void | _TIFFErrorEarly (TIFFOpenOptions *opts, thandle_t clientdata, const char *module, const char *fmt,...) |
| Report an opening error before a complete TIFF handle is available. | |
| uint32_t | _TIFFMultiply32 (TIFF *tif, uint32_t first, uint32_t second, const char *where) |
| Multiply two unsigned values with an overflow check. | |
| uint32_t | _TIFFParseUInt32 (const char *str, uint32_t default_value, uint32_t max_value) |
| Parse a decimal unsigned integer with a fallback value. | |
| uint64_t | _TIFFMultiply64 (TIFF *tif, uint64_t first, uint64_t second, const char *where) |
| Multiply two unsigned values with an overflow check. | |
| uint64_t | _TIFFAdd64 (TIFF *tif, uint64_t first, uint64_t second, const char *where) |
| Check and add two unsigned operands. | |
| tmsize_t | _TIFFMultiplySSize (TIFF *tif, tmsize_t first, tmsize_t second, const char *where) |
| Check and multiply two signed-size operands. | |
| tmsize_t | _TIFFAddSSize (TIFF *tif, tmsize_t first, tmsize_t second, const char *where) |
| Check and add two signed-size operands. | |
| tmsize_t | _TIFFCastUInt64ToSSize (TIFF *tif, uint64_t val, const char *module) |
| Convert an unsigned 64-bit value after checking the destination range. | |
| uint32_t | _TIFFCastUInt64ToUInt32 (TIFF *tif, uint64_t val, const char *module) |
| Convert an unsigned 64-bit value after checking the destination range. | |
| uint32_t | _TIFFMultiply32Ext (TIFF *tif, uint32_t first, uint32_t second, const char *where, bool *pOverflowed) |
| Multiply two unsigned values with an overflow check, and record an overflow in a caller-provided flag. | |
| uint64_t | _TIFFAdd64Ext (TIFF *tif, uint64_t first, uint64_t second, const char *where, bool *pOverflowed) |
| Check and add two unsigned operands, and record an overflow in a caller-provided flag. | |
| uint32_t | _TIFFCastUInt64ToUInt32Ext (TIFF *tif, uint64_t val, const char *module, bool *pOverflowed) |
| Convert an unsigned 64-bit value after checking the destination range, and record a rejection in a caller-provided flag. | |
| uint32_t | _TIFFComputeTileExt (TIFF *tif, uint32_t x, uint32_t y, uint32_t z, uint16_t s, bool *pOverflowed) |
| Compute a tile index as TIFFComputeTile() does, and record an index overflow in a caller-provided flag. | |
| uint64_t | _TIFFComputeRowSize64 (TIFF *tif, uint32_t width, uint16_t spp, uint16_t bps, const char *where) |
| Compute a byte-rounded row size from width and sample geometry. | |
| tmsize_t | _TIFFComputeRowOffset (TIFF *tif, tmsize_t rowstride, uint32_t row, const char *where) |
| Compute a checked byte offset for a row in a memory raster. | |
| uint64_t | _TIFFComputeBitOffset (TIFF *tif, uint32_t col, uint16_t spp, uint16_t bps, const char *where) |
| Compute a checked packed-sample column offset in bits. | |
| void | _TIFFfreeExt (TIFF *tif, void *p) |
| Release a handle-aware allocation and its payload charge. | |
| void * | _TIFFmallocExt (TIFF *tif, tmsize_t s) |
| Allocate uninitialised bytes under a handle's allocation policy. | |
| void * | _TIFFcallocExt (TIFF *tif, tmsize_t nmemb, tmsize_t siz) |
| Allocate a zero-filled array under a handle's allocation policy. | |
| void * | _TIFFreallocExt (TIFF *tif, void *p, tmsize_t s) |
| Resize a handle-aware block or release it for a nonpositive size. | |
| void * | _TIFFCheckMalloc (TIFF *tif, tmsize_t nmemb, tmsize_t elem_size, const char *what) |
| Allocate a checked array with an allocation-failure diagnostic. | |
| void * | _TIFFCheckRealloc (TIFF *tif, void *buffer, tmsize_t nmemb, tmsize_t elem_size, const char *what) |
| Resize a checked array with an allocation-failure diagnostic. | |
| float | _TIFFClampDoubleToFloat (double val) |
| Clamp a double to the finite float range before conversion. | |
| uint32_t | _TIFFClampDoubleToUInt32 (double val) |
| Clamp and truncate a double to an unsigned 32-bit value. | |
| void | _TIFFCleanupIFDOffsetAndNumberMaps (TIFF *tif) |
| Release a handle's directory-offset/index lookup maps. | |
| uint64_t | _TIFFStrileSize64 (TIFF *tif, uint32_t nrows, int isStrip) |
| Compute row-aligned decoded storage for a strip or tile-height request. | |
| tmsize_t | _TIFFReadEncodedStripAndAllocBuffer (TIFF *tif, uint32_t strip, void **buf, tmsize_t bufsizetoalloc, tmsize_t size_to_read) |
| Decode after deferred allocation of caller-owned output storage. | |
| tmsize_t | _TIFFReadEncodedTileAndAllocBuffer (TIFF *tif, uint32_t tile, void **buf, tmsize_t bufsizetoalloc, tmsize_t size_to_read) |
| Decode after deferred allocation of caller-owned output storage. | |
| tmsize_t | _TIFFReadTileAndAllocBuffer (TIFF *tif, void **buf, tmsize_t bufsizetoalloc, uint32_t x, uint32_t y, uint32_t z, uint16_t s) |
| Decode after deferred allocation of caller-owned output storage. | |
| int | _TIFFSeekOK (TIFF *tif, toff_t off) |
| Test whether an allowed absolute client seek reaches its target. | |
| int | TIFFInitDumpMode (TIFF *tif, int scheme) |
| Install uncompressed transfer callbacks. | |
| int | TIFFInitPackBits (TIFF *tif, int scheme) |
| Install PackBits transfer callbacks. | |
| 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 | TIFFInitCCITTFax3 (TIFF *tif, int scheme) |
| Install CCITTFax3 fax callbacks and default mode. | |
| int | TIFFInitCCITTFax4 (TIFF *tif, int scheme) |
| Install CCITTFax4 fax callbacks and default mode. | |
| int | TIFFInitThunderScan (TIFF *tif, int scheme) |
| Install ThunderScan transfer callbacks. | |
| int | TIFFInitNeXT (TIFF *tif, int scheme) |
| Install NeXT transfer 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 | TIFFInitJPEG (TIFF *tif, int scheme) |
| Allocate JPEG-in-TIFF codec state and install method chains. | |
| int | TIFFJPEGIsFullStripRequired (TIFF *tif) |
| Probe whether cached JPEG input needs whole-strile decoding. | |
| int | TIFFInitJBIG (TIFF *tif, int scheme) |
| Install single-strip JBIG callbacks and mutable raw-input policy. | |
| int | TIFFInitZIP (TIFF *tif, int scheme) |
| Install predictor-aware Deflate codec and allocator hooks. | |
| 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. | |
| 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 | TIFFInitZSTD (TIFF *tif, int scheme) |
| Allocate ZSTD state and install predictor-aware streaming methods. | |
| int | TIFFInitWebP (TIFF *tif, int scheme) |
| Allocate WebP codec state and install buffered frame callbacks. | |
| void | TIFFCIELab16ToXYZ (TIFFCIELabToRGB *cielab, uint32_t l, int32_t a, int32_t b, float *X, float *Y, float *Z) |
| Convert 16-bit TIFF CIE L*a*b* samples to XYZ. | |
| enum TIFFReadDirEntryErr | _TIFFReadDirEntryCheckedRational (TIFF *tif, TIFFDirEntry *direntry, double *value) |
| Read a prevalidated rational value. | |
Variables | |
| TIFFErrorHandler | _TIFFwarningHandler |
| Store the global warning callback. | |
| TIFFErrorHandler | _TIFFerrorHandler |
| Store the global error callback. | |
| TIFFErrorHandlerExt | _TIFFwarningHandlerExt |
| Store the global extended warning callback. | |
| TIFFErrorHandlerExt | _TIFFerrorHandlerExt |
| Store the global extended error callback. | |
| const TIFFCodec | _TIFFBuiltinCODECS [] |
| Describe built-in compression names and initialisers. | |
Declare private library state, callbacks, and implementation helpers.
Definition in file tiffiop.h.