ReactOS 0.4.16-dev-297-gc569aee
|
#include "tif_config.h"
#include <fcntl.h>
#include <sys/types.h>
#include <string.h>
#include <assert.h>
#include <search.h>
#include "tiffio.h"
#include "tif_dir.h"
Go to the source code of this file.
Classes | |
struct | client_info |
struct | tiff |
Macros | |
#define | STRIP_SIZE_DEFAULT 8192 |
#define | streq(a, b) (strcmp(a,b) == 0) |
#define | strneq(a, b, n) (strncmp(a,b,n) == 0) |
#define | TRUE 1 |
#define | FALSE 0 |
#define | TIFF_SIZE_T_MAX ((size_t) ~ ((size_t)0)) |
#define | TIFF_TMSIZE_T_MAX (tmsize_t)(TIFF_SIZE_T_MAX >> 1) |
#define | TIFF_UINT32_MAX 0xFFFFFFFFU |
#define | TIFF_UINT64_MAX (((uint64)(TIFF_UINT32_MAX)) << 32 | TIFF_UINT32_MAX) |
#define | TIFF_FILLORDER 0x00003U /* natural bit fill order for machine */ |
#define | TIFF_DIRTYHEADER 0x00004U /* header must be written on close */ |
#define | TIFF_DIRTYDIRECT 0x00008U /* current directory must be written */ |
#define | TIFF_BUFFERSETUP 0x00010U /* data buffers setup */ |
#define | TIFF_CODERSETUP 0x00020U /* encoder/decoder setup done */ |
#define | TIFF_BEENWRITING 0x00040U /* written 1+ scanlines to file */ |
#define | TIFF_SWAB 0x00080U /* byte swap file information */ |
#define | TIFF_NOBITREV 0x00100U /* inhibit bit reversal logic */ |
#define | TIFF_MYBUFFER 0x00200U /* my raw data buffer; free on close */ |
#define | TIFF_ISTILED 0x00400U /* file is tile, not strip- based */ |
#define | TIFF_MAPPED 0x00800U /* file is mapped into memory */ |
#define | TIFF_POSTENCODE 0x01000U /* need call to postencode routine */ |
#define | TIFF_INSUBIFD 0x02000U /* currently writing a subifd */ |
#define | TIFF_UPSAMPLED 0x04000U /* library is doing data up-sampling */ |
#define | TIFF_STRIPCHOP 0x08000U /* enable strip chopping support */ |
#define | TIFF_HEADERONLY 0x10000U /* read header only, do not process the first directory */ |
#define | TIFF_NOREADRAW 0x20000U /* skip reading of raw uncompressed image data */ |
#define | TIFF_INCUSTOMIFD 0x40000U /* currently writing a custom IFD */ |
#define | TIFF_BIGTIFF 0x80000U /* read/write bigtiff */ |
#define | TIFF_BUF4WRITE 0x100000U /* rawcc bytes are for writing */ |
#define | TIFF_DIRTYSTRIP 0x200000U /* stripoffsets/stripbytecount dirty*/ |
#define | TIFF_PERSAMPLE 0x400000U /* get/set per sample tags as arrays */ |
#define | TIFF_BUFFERMMAP 0x800000U /* read buffer (tif_rawdata) points into mmap() memory */ |
#define | TIFF_DEFERSTRILELOAD 0x1000000U /* defer strip/tile offset/bytecount array loading. */ |
#define | TIFF_LAZYSTRILELOAD 0x2000000U /* lazy/ondemand loading of strip/tile offset/bytecount values. Only used if TIFF_DEFERSTRILELOAD is set and in read-only mode */ |
#define | TIFF_CHOPPEDUPARRAYS 0x4000000U /* set when allocChoppedUpStripArrays() has modified strip array */ |
#define | isPseudoTag(t) (t > 0xffff) /* is tag value normal or pseudo */ |
#define | isTiled(tif) (((tif)->tif_flags & TIFF_ISTILED) != 0) |
#define | isMapped(tif) (((tif)->tif_flags & TIFF_MAPPED) != 0) |
#define | isFillOrder(tif, o) (((tif)->tif_flags & (o)) != 0) |
#define | isUpSampled(tif) (((tif)->tif_flags & TIFF_UPSAMPLED) != 0) |
#define | TIFFReadFile(tif, buf, size) ((*(tif)->tif_readproc)((tif)->tif_clientdata,(buf),(size))) |
#define | TIFFWriteFile(tif, buf, size) ((*(tif)->tif_writeproc)((tif)->tif_clientdata,(buf),(size))) |
#define | TIFFSeekFile(tif, off, whence) ((*(tif)->tif_seekproc)((tif)->tif_clientdata,(off),(whence))) |
#define | TIFFCloseFile(tif) ((*(tif)->tif_closeproc)((tif)->tif_clientdata)) |
#define | TIFFGetFileSize(tif) ((*(tif)->tif_sizeproc)((tif)->tif_clientdata)) |
#define | TIFFMapFileContents(tif, paddr, psize) ((*(tif)->tif_mapproc)((tif)->tif_clientdata,(paddr),(psize))) |
#define | TIFFUnmapFileContents(tif, addr, size) ((*(tif)->tif_unmapproc)((tif)->tif_clientdata,(addr),(size))) |
#define | ReadOK(tif, buf, size) (TIFFReadFile((tif),(buf),(size))==(size)) |
#define | SeekOK(tif, off) _TIFFSeekOK(tif, off) |
#define | WriteOK(tif, buf, size) (TIFFWriteFile((tif),(buf),(size))==(size)) |
#define | TIFFhowmany_32(x, y) |
#define | TIFFhowmany_32_maxuint_compat(x, y) (((uint32)(x) / (uint32)(y)) + ((((uint32)(x) % (uint32)(y)) != 0) ? 1 : 0)) |
#define | TIFFhowmany8_32(x) (((x)&0x07)?((uint32)(x)>>3)+1:(uint32)(x)>>3) |
#define | TIFFroundup_32(x, y) (TIFFhowmany_32(x,y)*(y)) |
#define | TIFFhowmany_64(x, y) ((((uint64)(x))+(((uint64)(y))-1))/((uint64)(y))) |
#define | TIFFhowmany8_64(x) (((x)&0x07)?((uint64)(x)>>3)+1:(uint64)(x)>>3) |
#define | TIFFroundup_64(x, y) (TIFFhowmany_64(x,y)*(y)) |
#define | TIFFSafeMultiply(t, v, m) ((((t)(m) != (t)0) && (((t)(((v)*(m))/(m))) == (t)(v))) ? (t)((v)*(m)) : (t)0) |
#define | TIFFmax(A, B) ((A)>(B)?(A):(B)) |
#define | TIFFmin(A, B) ((A)<(B)?(A):(B)) |
#define | TIFFArrayCount(a) (sizeof (a) / sizeof ((a)[0])) |
#define | _TIFF_lseek_f(fildes, offset, whence) lseek(fildes,offset,whence) |
#define | _TIFF_fseek_f(stream, offset, whence) fseek(stream,offset,whence) |
#define | _TIFF_fstat_f(fildes, stat_buff) fstat(fildes,stat_buff) |
#define | _TIFF_stat_s struct stat |
#define | _TIFF_off_t off_t |
#define | TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW |
Typedefs | |
typedef struct client_info | TIFFClientInfoLink |
typedef unsigned char | tidataval_t |
typedef tidataval_t * | tidata_t |
typedef void(* | TIFFVoidMethod) (TIFF *) |
typedef int(* | TIFFBoolMethod) (TIFF *) |
typedef int(* | TIFFPreMethod) (TIFF *, uint16) |
typedef int(* | TIFFCodeMethod) (TIFF *tif, uint8 *buf, tmsize_t size, uint16 sample) |
typedef int(* | TIFFSeekMethod) (TIFF *, uint32) |
typedef void(* | TIFFPostMethod) (TIFF *tif, uint8 *buf, tmsize_t size) |
typedef uint32(* | TIFFStripMethod) (TIFF *, uint32) |
typedef void(* | TIFFTileMethod) (TIFF *, uint32 *, uint32 *) |
typedef size_t | TIFFIOSize_t |
Variables | |
TIFFErrorHandler | _TIFFwarningHandler |
TIFFErrorHandler | _TIFFerrorHandler |
TIFFErrorHandlerExt | _TIFFwarningHandlerExt |
TIFFErrorHandlerExt | _TIFFerrorHandlerExt |
TIFFCodec | _TIFFBuiltinCODECS [] |
#define isFillOrder | ( | tif, | |
o | |||
) | (((tif)->tif_flags & (o)) != 0) |
#define isMapped | ( | tif | ) | (((tif)->tif_flags & TIFF_MAPPED) != 0) |
#define isTiled | ( | tif | ) | (((tif)->tif_flags & TIFF_ISTILED) != 0) |
#define isUpSampled | ( | tif | ) | (((tif)->tif_flags & TIFF_UPSAMPLED) != 0) |
#define SeekOK | ( | tif, | |
off | |||
) | _TIFFSeekOK(tif, off) |
#define TIFF_CHOPPEDUPARRAYS 0x4000000U /* set when allocChoppedUpStripArrays() has modified strip array */ |
#define TIFF_NOBITREV 0x00100U /* inhibit bit reversal logic */ |
#define TIFF_NOREADRAW 0x20000U /* skip reading of raw uncompressed image data */ |
#define TIFF_SWAB 0x00080U /* byte swap file information */ |
#define TIFF_TMSIZE_T_MAX (tmsize_t)(TIFF_SIZE_T_MAX >> 1) |
#define TIFF_UINT64_MAX (((uint64)(TIFF_UINT32_MAX)) << 32 | TIFF_UINT32_MAX) |
#define TIFFCloseFile | ( | tif | ) | ((*(tif)->tif_closeproc)((tif)->tif_clientdata)) |
#define TIFFGetFileSize | ( | tif | ) | ((*(tif)->tif_sizeproc)((tif)->tif_clientdata)) |
#define TIFFSeekFile | ( | tif, | |
off, | |||
whence | |||
) | ((*(tif)->tif_seekproc)((tif)->tif_clientdata,(off),(whence))) |
typedef tidataval_t* tidata_t |
typedef unsigned char tidataval_t |
typedef struct client_info TIFFClientInfoLink |
typedef size_t TIFFIOSize_t |
Definition at line 83 of file tif_aux.c.
Referenced by TIFFRasterScanlineSize(), TIFFReadRawStrip(), TIFFReadRawTile(), TIFFScanlineSize(), TIFFStripSize(), TIFFTileRowSize(), TIFFTileSize(), TIFFVStripSize(), and TIFFVTileSize().
Definition at line 121 of file tif_aux.c.
Referenced by _TIFFMergeFields(), _TIFFRewriteField(), _TIFFVSetField(), allocChoppedUpStripArrays(), EstimateStripByteCounts(), TIFFFetchDirectory(), TIFFFetchStripThing(), TIFFMergeFieldInfo(), TIFFReadDirEntryArrayWithLimit(), and TIFFSetupStrips().
void * _TIFFCheckRealloc | ( | TIFF * | tif, |
void * | buffer, | ||
tmsize_t | nmemb, | ||
tmsize_t | elem_size, | ||
const char * | what | ||
) |
Definition at line 97 of file tif_aux.c.
Referenced by _TIFFCheckMalloc(), _TIFFMergeFields(), TIFFCheckDirOffset(), and TIFFMergeFieldInfo().
Definition at line 397 of file tif_aux.c.
Referenced by _TIFFVSetField(), and TIFFWriteDirectoryTagSampleformatArray().
int _TIFFDataSize | ( | TIFFDataType | type | ) |
Definition at line 476 of file tif_dirinfo.c.
Referenced by _TIFFVSetField(), and TIFFPrintDirectory().
Definition at line 223 of file tif_strip.c.
Referenced by _TIFFSetDefaultCompressionState().
Definition at line 278 of file tif_tile.c.
Referenced by _TIFFSetDefaultCompressionState().
Definition at line 47 of file tif_open.c.
Referenced by TIFFClientOpen(), TIFFOpen(), and TIFFOpenW().
Definition at line 37 of file tif_aux.c.
Referenced by TIFFNumberOfStrips(), and TIFFNumberOfTiles().
Definition at line 48 of file tif_aux.c.
Referenced by TIFFRasterScanlineSize64(), TIFFScanlineSize64(), TIFFTileRowSize64(), TIFFVStripSize64(), and TIFFVTileSize64().
Definition at line 59 of file tif_aux.c.
Referenced by _TIFFCheckRealloc(), gtStripSeparate(), gtTileSeparate(), and setByteArray().
Definition at line 1603 of file tif_read.c.
Referenced by _TIFFVSetField(), PredictorSetupDecode(), PredictorSetupEncode(), and TIFFDefaultDirectory().
Definition at line 125 of file tif_compress.c.
Referenced by _TIFFSetDefaultCompressionState().
Definition at line 95 of file tif_compress.c.
Referenced by _TIFFSetDefaultCompressionState().
Definition at line 51 of file tif_compress.c.
Referenced by _TIFFSetDefaultCompressionState().
Definition at line 116 of file tif_compress.c.
Referenced by _TIFFSetDefaultCompressionState().
Definition at line 102 of file tif_compress.c.
Referenced by _TIFFSetDefaultCompressionState().
Definition at line 58 of file tif_compress.c.
Referenced by _TIFFSetDefaultCompressionState().
Definition at line 109 of file tif_compress.c.
Referenced by _TIFFSetDefaultCompressionState().
Definition at line 65 of file tif_compress.c.
Referenced by _TIFFSetDefaultCompressionState().
Definition at line 678 of file tif_print.c.
Referenced by _TIFFprintAsciiTag().
Definition at line 704 of file tif_print.c.
tmsize_t _TIFFReadEncodedStripAndAllocBuffer | ( | TIFF * | tif, |
uint32 | strip, | ||
void ** | buf, | ||
tmsize_t | bufsizetoalloc, | ||
tmsize_t | size_to_read | ||
) |
Definition at line 572 of file tif_read.c.
Referenced by gtStripContig(), and gtStripSeparate().
tmsize_t _TIFFReadEncodedTileAndAllocBuffer | ( | TIFF * | tif, |
uint32 | tile, | ||
void ** | buf, | ||
tmsize_t | bufsizetoalloc, | ||
tmsize_t | size_to_read | ||
) |
Definition at line 1048 of file tif_read.c.
Referenced by _TIFFReadTileAndAllocBuffer().
tmsize_t _TIFFReadTileAndAllocBuffer | ( | TIFF * | tif, |
void ** | buf, | ||
tmsize_t | bufsizetoalloc, | ||
uint32 | x, | ||
uint32 | y, | ||
uint32 | z, | ||
uint16 | s | ||
) |
Definition at line 1029 of file tif_read.c.
Referenced by gtTileContig(), and gtTileSeparate().
int _TIFFRewriteField | ( | TIFF * | tif, |
uint16 | tag, | ||
TIFFDataType | in_datatype, | ||
tmsize_t | count, | ||
void * | data | ||
) |
Definition at line 2824 of file tif_dirwrite.c.
Referenced by TIFFForceStrileArrayWriting().
Definition at line 57 of file tif_dir.c.
Definition at line 135 of file tif_compress.c.
Referenced by TIFFClientOpen(), and TIFFSetCompressionScheme().
Definition at line 63 of file tif_dir.c.
Referenced by _TIFFVSetField(), setExtraSamples(), and TIFFReadDirectory().
Definition at line 1609 of file tif_read.c.
Referenced by _TIFFVSetField().
Definition at line 1617 of file tif_read.c.
Referenced by _TIFFVSetField().
Definition at line 1625 of file tif_read.c.
Referenced by _TIFFVSetField().
Definition at line 1633 of file tif_read.c.
Referenced by _TIFFVSetField().
Definition at line 382 of file tif_aux.c.
Referenced by TIFFReadDirEntryDouble(), and TIFFReadDirEntryDoubleArray().
Definition at line 366 of file tif_aux.c.
Referenced by TIFFReadDirEntryFloat(), and TIFFReadDirEntryFloatArray().
Definition at line 1372 of file tif_dir.c.
Referenced by TIFFClientOpen(), TIFFCreateCustomDirectory(), TIFFCreateDirectory(), TIFFReadDirectory(), and TIFFUnlinkDirectory().
Definition at line 803 of file tif_write.c.
Referenced by DumpModeEncode(), TIFFFlushData(), and TIFFWriteDirectorySec().
Definition at line 123 of file tif_dumpmode.c.
Definition at line 160 of file tif_compress.c.
Referenced by _TIFFVSetField().
|
extern |
Definition at line 87 of file tif_codec.c.
Referenced by TIFFFindCODEC(), and TIFFGetConfiguredCODECs().
|
extern |
Definition at line 374 of file tif_unix.c.
Referenced by TIFFError(), TIFFErrorExt(), and TIFFSetErrorHandler().
|
extern |
Definition at line 30 of file tif_error.c.
Referenced by TIFFError(), TIFFErrorExt(), and TIFFSetErrorHandlerExt().
|
extern |
Definition at line 364 of file tif_unix.c.
Referenced by TIFFSetWarningHandler(), TIFFWarning(), and TIFFWarningExt().
|
extern |
Definition at line 30 of file tif_warning.c.
Referenced by TIFFSetWarningHandlerExt(), TIFFWarning(), and TIFFWarningExt().