|
LibTIFF 4.7.2
TIFF library public API and implementation reference
|
Initialise handles and open options, with shared allocation helpers. More...
Go to the source code of this file.
Macros | |
| #define | LEADING_AREA_TO_STORE_ALLOC_SIZE (2 * SIZEOF_SIZE_T) |
| Reserve two size_t widths before a cumulatively tracked payload. | |
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. | |
| TIFFOpenOptions * | TIFFOpenOptionsAlloc (void) |
| Allocate default options for opening a TIFF handle. | |
| void | TIFFOpenOptionsFree (TIFFOpenOptions *opts) |
| Release an open-options object. | |
| void | TIFFOpenOptionsSetMaxSingleMemAlloc (TIFFOpenOptions *opts, tmsize_t max_single_mem_alloc) |
| Set the single checked allocation limit for subsequent opens. | |
| void | TIFFOpenOptionsSetMaxCumulatedMemAlloc (TIFFOpenOptions *opts, tmsize_t max_cumulated_mem_alloc) |
| Set the cumulative checked allocation limit for subsequent opens. | |
| void | TIFFOpenOptionsSetWarnAboutUnknownTags (TIFFOpenOptions *opts, int warn_about_unknown_tags) |
| Select whether subsequent opens warn about unknown tags. | |
| void | TIFFOpenOptionsSetErrorHandlerExtR (TIFFOpenOptions *opts, TIFFErrorHandlerExtR handler, void *errorhandler_user_data) |
| Set the per-handle error callback for subsequent opens. | |
| void | TIFFOpenOptionsSetWarningHandlerExtR (TIFFOpenOptions *opts, TIFFErrorHandlerExtR handler, void *warnhandler_user_data) |
| Set the per-handle warning callback for subsequent opens. | |
| static void | _TIFFEmitErrorAboveMaxSingleMemAlloc (TIFF *tif, const char *pszFunction, tmsize_t s) |
| Report a rejected single allocation-policy check. | |
| static void | _TIFFEmitErrorAboveMaxCumulatedMemAlloc (TIFF *tif, const char *pszFunction, tmsize_t s) |
| Report a rejected cumulative allocation-policy check. | |
| 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 | _TIFFfreeExt (TIFF *tif, void *p) |
| Release a handle-aware allocation and its payload charge. | |
| TIFF * | TIFFClientOpen (const char *name, const char *mode, thandle_t clientdata, TIFFReadWriteProc readproc, TIFFReadWriteProc writeproc, TIFFSeekProc seekproc, TIFFCloseProc closeproc, TIFFSizeProc sizeproc, TIFFMapFileProc mapproc, TIFFUnmapFileProc unmapproc) |
| Initialise a TIFF handle using client-supplied I/O callbacks. | |
| TIFF * | TIFFClientOpenExt (const char *name, const char *mode, thandle_t clientdata, TIFFReadWriteProc readproc, TIFFReadWriteProc writeproc, TIFFSeekProc seekproc, TIFFCloseProc closeproc, TIFFSizeProc sizeproc, TIFFMapFileProc mapproc, TIFFUnmapFileProc unmapproc, TIFFOpenOptions *opts) |
| Initialise a TIFF handle using client-supplied I/O callbacks. | |
| const char * | TIFFFileName (TIFF *tif) |
| Return the handle's diagnostic filename. | |
| const char * | TIFFSetFileName (TIFF *tif, const char *name) |
| Replace the diagnostic filename pointer without copying it. | |
| int | TIFFFileno (TIFF *tif) |
| Return the handle's file-descriptor metadata. | |
| int | TIFFSetFileno (TIFF *tif, int fd) |
| Replace descriptor metadata without changing client I/O routing. | |
| thandle_t | TIFFClientdata (TIFF *tif) |
| Return the context passed to client I/O callbacks. | |
| thandle_t | TIFFSetClientdata (TIFF *tif, thandle_t newvalue) |
| Replace the context passed to all client I/O callbacks. | |
| int | TIFFGetMode (TIFF *tif) |
| Return the stored library access mode. | |
| int | TIFFSetMode (TIFF *tif, int mode) |
| Replace the stored library access mode without reopening the resource. | |
| int | TIFFIsTiled (TIFF *tif) |
| Test whether the current image uses tiles. | |
| uint32_t | TIFFCurrentRow (TIFF *tif) |
| Read the cached current scanline index. | |
| tdir_t | TIFFCurrentDirectory (TIFF *tif) |
| Read the cached index of the current directory. | |
| uint32_t | TIFFCurrentStrip (TIFF *tif) |
| Read the cached current strip index. | |
| uint32_t | TIFFCurrentTile (TIFF *tif) |
| Read the cached current tile index. | |
| int | TIFFIsByteSwapped (TIFF *tif) |
| Test whether file values require byte swapping for this host. | |
| int | TIFFIsUpSampled (TIFF *tif) |
| Test whether the active codec supplies upsampled data. | |
| int | TIFFIsMSB2LSB (TIFF *tif) |
| Test the selected data bit-fill-order flag. | |
| int | TIFFIsBigEndian (TIFF *tif) |
| Test whether the stored file signature is TIFF_BIGENDIAN. | |
| int | TIFFIsBigTIFF (TIFF *tif) |
| Test whether the handle uses the BigTIFF format. | |
| TIFFReadWriteProc | TIFFGetReadProc (TIFF *tif) |
| Return the installed client read callback. | |
| TIFFReadWriteProc | TIFFGetWriteProc (TIFF *tif) |
| Return the installed client write callback. | |
| TIFFSeekProc | TIFFGetSeekProc (TIFF *tif) |
| Return the installed client seek callback. | |
| TIFFCloseProc | TIFFGetCloseProc (TIFF *tif) |
| Return the installed client close callback. | |
| TIFFSizeProc | TIFFGetSizeProc (TIFF *tif) |
| Return the installed client file-size callback. | |
| TIFFMapFileProc | TIFFGetMapFileProc (TIFF *tif) |
| Return the installed client mapping callback. | |
| TIFFUnmapFileProc | TIFFGetUnmapFileProc (TIFF *tif) |
| Return the installed client unmapping callback. | |
Initialise handles and open options, with shared allocation helpers.
Definition in file tif_open.c.