Visualization Library 2.0.0-b5
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
#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 | TRUE 1 |
#define | FALSE 0 |
#define | TIFF_FILLORDER 0x0003 /* natural bit fill order for machine */ |
#define | TIFF_DIRTYHEADER 0x0004 /* header must be written on close */ |
#define | TIFF_DIRTYDIRECT 0x0008 /* current directory must be written */ |
#define | TIFF_BUFFERSETUP 0x0010 /* data buffers setup */ |
#define | TIFF_CODERSETUP 0x0020 /* encoder/decoder setup done */ |
#define | TIFF_BEENWRITING 0x0040 /* written 1+ scanlines to file */ |
#define | TIFF_SWAB 0x0080 /* byte swap file information */ |
#define | TIFF_NOBITREV 0x0100 /* inhibit bit reversal logic */ |
#define | TIFF_MYBUFFER 0x0200 /* my raw data buffer; free on close */ |
#define | TIFF_ISTILED 0x0400 /* file is tile, not strip- based */ |
#define | TIFF_MAPPED 0x0800 /* file is mapped into memory */ |
#define | TIFF_POSTENCODE 0x1000 /* need call to postencode routine */ |
#define | TIFF_INSUBIFD 0x2000 /* currently writing a subifd */ |
#define | TIFF_UPSAMPLED 0x4000 /* library is doing data up-sampling */ |
#define | TIFF_STRIPCHOP 0x8000 /* enable strip chopping support */ |
#define | TIFF_HEADERONLY 0x10000 /* read header only, do not process */ |
#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,(toff_t)(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, (tdata_t) buf, (tsize_t)(size)) == (tsize_t)(size)) |
#define | SeekOK(tif, off) (TIFFSeekFile(tif, (toff_t) off, SEEK_SET) == (toff_t) off) |
#define | WriteOK(tif, buf, size) (TIFFWriteFile(tif, (tdata_t) buf, (tsize_t) size) == (tsize_t) size) |
#define | TIFFhowmany(x, y) ((((uint32)(x))+(((uint32)(y))-1))/((uint32)(y))) |
#define | TIFFhowmany8(x) (((x)&0x07)?((uint32)(x)>>3)+1:(uint32)(x)>>3) |
#define | TIFFroundup(x, y) (TIFFhowmany(x,y)*(y)) |
#define | TIFFmax(A, B) ((A)>(B)?(A):(B)) |
#define | TIFFmin(A, B) ((A)<(B)?(A):(B)) |
#define | TIFFArrayCount(a) (sizeof (a) / sizeof ((a)[0])) |
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 *, tsample_t) |
typedef int(* | TIFFCodeMethod) (TIFF *, tidata_t, tsize_t, tsample_t) |
typedef int(* | TIFFSeekMethod) (TIFF *, uint32) |
typedef void(* | TIFFPostMethod) (TIFF *, tidata_t, tsize_t) |
typedef uint32(* | TIFFStripMethod) (TIFF *, uint32) |
typedef void(* | TIFFTileMethod) (TIFF *, uint32 *, uint32 *) |
Variables | |
TIFFErrorHandler | _TIFFwarningHandler |
TIFFErrorHandler | _TIFFerrorHandler |
TIFFErrorHandlerExt | _TIFFwarningHandlerExt |
TIFFErrorHandlerExt | _TIFFerrorHandlerExt |
TIFFCodec | _TIFFBuiltinCODECS [] |
#define isFillOrder | ( | tif, | |
o | |||
) | (((tif)->tif_flags & (o)) != 0) |
Definition at line 191 of file tiffiop.h.
Referenced by TIFFFillStrip(), TIFFFillTile(), TIFFFlushData1(), TIFFIsMSB2LSB(), and TIFFWriteEncodedTile().
#define isMapped | ( | tif | ) | (((tif)->tif_flags & TIFF_MAPPED) != 0) |
Definition at line 190 of file tiffiop.h.
Referenced by TIFFCleanup(), TIFFFillStrip(), TIFFFillTile(), TIFFReadCustomDirectory(), and TIFFReadDirectory().
Definition at line 187 of file tiffiop.h.
Referenced by TIFFVGetField().
#define isTiled | ( | tif | ) | (((tif)->tif_flags & TIFF_ISTILED) != 0) |
Definition at line 189 of file tiffiop.h.
Referenced by TIFFIsTiled(), TIFFSetupStrips(), TIFFWriteBufferSetup(), and TIFFWriteCheck().
#define isUpSampled | ( | tif | ) | (((tif)->tif_flags & TIFF_UPSAMPLED) != 0) |
Definition at line 192 of file tiffiop.h.
Referenced by TIFFIsUpSampled(), TIFFScanlineSize(), TIFFVStripSize(), and TIFFVTileSize().
#define SeekOK | ( | tif, | |
off | |||
) | (TIFFSeekFile(tif, (toff_t) off, SEEK_SET) == (toff_t) off) |
Definition at line 216 of file tiffiop.h.
Referenced by TIFFReadCustomDirectory(), TIFFReadDirectory(), and TIFFRewriteDirectory().
#define STRIP_SIZE_DEFAULT 8192 |
Definition at line 64 of file tiffiop.h.
Referenced by _TIFFDefaultStripSize().
#define TIFF_BEENWRITING 0x0040 /* written 1+ scanlines to file */ |
Definition at line 105 of file tiffiop.h.
Referenced by TIFFFlushData(), TIFFReadDirectory(), and TIFFWriteCheck().
#define TIFF_BUFFERSETUP 0x0010 /* data buffers setup */ |
Definition at line 103 of file tiffiop.h.
Referenced by TIFFWriteBufferSetup().
#define TIFF_CODERSETUP 0x0020 /* encoder/decoder setup done */ |
Definition at line 104 of file tiffiop.h.
Referenced by TIFFWriteEncodedTile().
#define TIFF_DIRTYDIRECT 0x0008 /* current directory must be written */ |
Definition at line 102 of file tiffiop.h.
Referenced by TIFFFlush().
#define TIFF_DIRTYHEADER 0x0004 /* header must be written on close */ |
#define TIFF_FILLORDER 0x0003 /* natural bit fill order for machine */ |
#define TIFF_HEADERONLY 0x10000 /* read header only, do not process */ |
#define TIFF_INSUBIFD 0x2000 /* currently writing a subifd */ |
#define TIFF_ISTILED 0x0400 /* file is tile, not strip- based */ |
#define TIFF_MAPPED 0x0800 /* file is mapped into memory */ |
#define TIFF_MYBUFFER 0x0200 /* my raw data buffer; free on close */ |
Definition at line 108 of file tiffiop.h.
Referenced by TIFFCleanup(), TIFFFillStrip(), TIFFFillTile(), TIFFReadBufferSetup(), and TIFFWriteBufferSetup().
#define TIFF_NOBITREV 0x0100 /* inhibit bit reversal logic */ |
Definition at line 107 of file tiffiop.h.
Referenced by TIFFFillStrip(), TIFFFillTile(), TIFFFlushData1(), and TIFFWriteEncodedTile().
#define TIFF_POSTENCODE 0x1000 /* need call to postencode routine */ |
Definition at line 111 of file tiffiop.h.
Referenced by TIFFFlushData(), and TIFFWriteEncodedTile().
#define TIFF_STRIPCHOP 0x8000 /* enable strip chopping support */ |
#define TIFF_SWAB 0x0080 /* byte swap file information */ |
Definition at line 106 of file tiffiop.h.
Referenced by TIFFIsByteSwapped(), TIFFReadCustomDirectory(), TIFFReadDirectory(), and TIFFRewriteDirectory().
#define TIFF_UPSAMPLED 0x4000 /* library is doing data up-sampling */ |
Definition at line 232 of file tiffiop.h.
Referenced by _TIFFGetExifFieldInfo(), _TIFFGetFieldInfo(), and TIFFInitZIP().
#define TIFFCloseFile | ( | tif | ) | ((*(tif)->tif_closeproc)((tif)->tif_clientdata)) |
#define TIFFGetFileSize | ( | tif | ) | ((*(tif)->tif_sizeproc)((tif)->tif_clientdata)) |
Definition at line 225 of file tiffiop.h.
Referenced by TIFFComputeTile(), TIFFNumberOfStrips(), TIFFWriteEncodedTile(), and TIFFWriteRawStrip().
Definition at line 226 of file tiffiop.h.
Referenced by _TIFFSampleToTagType(), TIFFScanlineSize(), TIFFVStripSize(), and TIFFVTileSize().
#define TIFFMapFileContents | ( | tif, | |
paddr, | |||
psize | |||
) | ((*(tif)->tif_mapproc)((tif)->tif_clientdata,paddr,psize)) |
#define TIFFmax | ( | A, | |
B | |||
) | ((A)>(B)?(A):(B)) |
Definition at line 229 of file tiffiop.h.
Referenced by TIFFXYZToRGB().
#define TIFFmin | ( | A, | |
B | |||
) | ((A)<(B)?(A):(B)) |
Definition at line 230 of file tiffiop.h.
Referenced by TIFFXYZToRGB().
Definition at line 227 of file tiffiop.h.
Referenced by _TIFFDefaultTileSize(), TIFFFillStrip(), TIFFFillTile(), TIFFReadBufferSetup(), TIFFScanlineSize(), TIFFVStripSize(), TIFFVTileSize(), and TIFFYCbCrToRGBInit().
#define TIFFSeekFile | ( | tif, | |
off, | |||
whence | |||
) | ((*(tif)->tif_seekproc)((tif)->tif_clientdata,(toff_t)(off),whence)) |
Definition at line 197 of file tiffiop.h.
Referenced by TIFFRewriteDirectory().
#define TIFFUnmapFileContents | ( | tif, | |
addr, | |||
size | |||
) | ((*(tif)->tif_unmapproc)((tif)->tif_clientdata,addr,size)) |
Definition at line 205 of file tiffiop.h.
Referenced by TIFFCleanup().
#define WriteOK | ( | tif, | |
buf, | |||
size | |||
) | (TIFFWriteFile(tif, (tdata_t) buf, (tsize_t) size) == (tsize_t) size) |
Definition at line 220 of file tiffiop.h.
Referenced by TIFFRewriteDirectory().
typedef tidataval_t* tidata_t |
typedef unsigned char tidataval_t |
typedef struct client_info TIFFClientInfoLink |
Definition at line 37 of file tif_aux.c.
References _TIFFmalloc(), NULL, tiff::tif_clientdata, tiff::tif_name, and TIFFErrorExt().
Referenced by TIFFReadCustomDirectory(), and TIFFReadDirectory().
int _TIFFDataSize | ( | TIFFDataType | ) |
Definition at line 655 of file tif_dirinfo.c.
References TIFF_ASCII, TIFF_BYTE, TIFF_DOUBLE, TIFF_FLOAT, TIFF_IFD, TIFF_LONG, TIFF_RATIONAL, TIFF_SBYTE, TIFF_SHORT, TIFF_SLONG, TIFF_SRATIONAL, TIFF_SSHORT, and TIFF_UNDEFINED.
Definition at line 204 of file tif_strip.c.
References STRIP_SIZE_DEFAULT, and TIFFScanlineSize().
Definition at line 259 of file tif_tile.c.
References TIFFroundup, and void().
Definition at line 117 of file tif_open.c.
References TIFFErrorExt().
Referenced by TIFFClientOpen(), TIFFOpen(), and TIFFOpenW().
Definition at line 613 of file tif_read.c.
References void().
Definition at line 117 of file tif_compress.c.
References void().
Definition at line 87 of file tif_compress.c.
References void().
Definition at line 51 of file tif_compress.c.
References void().
Definition at line 108 of file tif_compress.c.
References tiff::tif_clientdata, tiff::tif_name, TIFFErrorExt(), and void().
Definition at line 94 of file tif_compress.c.
References void().
Definition at line 58 of file tif_compress.c.
References void().
Definition at line 101 of file tif_compress.c.
References void().
Definition at line 65 of file tif_compress.c.
References void().
Definition at line 612 of file tif_print.c.
Referenced by _TIFFprintAsciiTag().
Definition at line 632 of file tif_print.c.
References _TIFFprintAscii().
Definition at line 127 of file tif_compress.c.
References tiff::tif_decodestatus, tiff::tif_setupdecode, and TRUE.
Referenced by TIFFSetCompressionScheme().
Definition at line 619 of file tif_read.c.
References TIFFSwabArrayOfShort(), and void().
Definition at line 627 of file tif_read.c.
References TIFFSwabArrayOfTriples(), and void().
Definition at line 635 of file tif_read.c.
References TIFFSwabArrayOfLong(), and void().
Definition at line 643 of file tif_read.c.
References TIFFSwabArrayOfDouble(), and void().
Definition at line 1029 of file tif_dir.c.
References tiff::tif_dir.
Referenced by TIFFCreateDirectory(), and TIFFReadDirectory().
Definition at line 696 of file tif_write.c.
References isFillOrder, TIFFDirectory::td_fillorder, tiff::tif_dir, tiff::tif_flags, tiff::tif_rawcc, tiff::tif_rawdata, TIFF_NOBITREV, and TIFFReverseBits().
Referenced by TIFFFlushData().
Definition at line 1456 of file tif_fax3.c.
References void().
Definition at line 1549 of file tif_fax3.c.
References void().
Definition at line 106 of file tif_dumpmode.c.
References tiff::tif_decoderow, and void().
Definition at line 1849 of file tif_jpeg.c.
References _TIFFmalloc(), _TIFFmemset(), _TIFFMergeFieldInfo(), COMPRESSION_JPEG, JState, N, NULL, tiff::tif_clientdata, tiff::tif_data, tiff::tif_tagmethods, TIFFErrorExt(), and TIFFTagMethods::vgetfield.
Definition at line 1022 of file tif_lzw.c.
References _TIFFmalloc(), COMPRESSION_LZW, DecoderState, EncoderState, LZWState, NULL, tiff::tif_data, tiff::tif_mode, and tiff::tif_setupdecode.
Definition at line 134 of file tif_next.c.
References tiff::tif_decoderow, and void().
Definition at line 278 of file tif_packbits.c.
References tiff::tif_decoderow, and void().
Definition at line 1279 of file tif_pixarlog.c.
References _TIFFmalloc(), _TIFFmemset(), COMPRESSION_PIXARLOG, NULL, PIXARLOGDATAFMT_UNKNOWN, tiff::tif_data, tiff::tif_setupdecode, and Z_BINARY.
Definition at line 1556 of file tif_luv.c.
References _TIFFmalloc(), _TIFFmemset(), COMPRESSION_SGILOG, COMPRESSION_SGILOG24, NULL, SGILOGDATAFMT_UNKNOWN, SGILOGENCODE_NODITHER, SGILOGENCODE_RANDITHER, and tiff::tif_data.
Definition at line 149 of file tif_thunder.c.
References tiff::tif_decoderow, and void().
Definition at line 318 of file tif_zip.c.
References _TIFFmalloc(), _TIFFMergeFieldInfo(), COMPRESSION_ADOBE_DEFLATE, COMPRESSION_DEFLATE, NULL, tiff::tif_data, tiff::tif_tagmethods, TIFFArrayCount, TIFFTagMethods::vgetfield, Z_BINARY, and ZState.
Definition at line 151 of file tif_compress.c.
References _TIFFSetDefaultCompressionState(), info, TIFFCodec::init, and TIFFFindCODEC().
TIFFCodec _TIFFBuiltinCODECS[] |
Definition at line 79 of file tif_codec.c.
Referenced by TIFFFindCODEC(), and TIFFGetConfiguredCODECs().
TIFFErrorHandler _TIFFerrorHandler |
Definition at line 519 of file tif_acorn.c.
Referenced by TIFFError(), TIFFErrorExt(), and TIFFSetErrorHandler().
TIFFErrorHandlerExt _TIFFerrorHandlerExt |
Definition at line 32 of file tif_error.c.
Referenced by TIFFError(), TIFFErrorExt(), and TIFFSetErrorHandlerExt().
TIFFErrorHandler _TIFFwarningHandler |
Definition at line 507 of file tif_acorn.c.
Referenced by TIFFSetWarningHandler(), TIFFWarning(), and TIFFWarningExt().
TIFFErrorHandlerExt _TIFFwarningHandlerExt |
Definition at line 32 of file tif_warning.c.
Referenced by TIFFSetWarningHandlerExt(), TIFFWarning(), and TIFFWarningExt().
Visualization Library 2.0.0-b5 Reference Documentation
Updated on Mon Feb 10 2020 02:44:58.
© Copyright Michele Bosi. All rights reserved.