w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

tiffiop.h File Reference
#include "tiffconf.h"
#include "tiffcomp.h"
#include "tiffio.h"
#include "tif_dir.h"
Include dependency graph for tiffiop.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tiff
 

Macros

#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 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 TIFFroundup(x, y)   (TIFFhowmany(x,y)*((uint32)(y)))
 

Typedefs

typedef unsigned char tidataval_t
 
typedef tidataval_ttidata_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 int(* TIFFVSetMethod) (TIFF *, ttag_t, va_list)
 
typedef int(* TIFFVGetMethod) (TIFF *, ttag_t, va_list)
 
typedef void(* TIFFPrintMethod) (TIFF *, FILE *, long)
 
typedef uint32(* TIFFStripMethod) (TIFF *, uint32)
 
typedef void(* TIFFTileMethod) (TIFF *, uint32 *, uint32 *)
 

Functions

int _TIFFgetMode (const char *, const char *)
 
int _TIFFNoRowEncode (TIFF *, tidata_t, tsize_t, tsample_t)
 
int _TIFFNoStripEncode (TIFF *, tidata_t, tsize_t, tsample_t)
 
int _TIFFNoTileEncode (TIFF *, tidata_t, tsize_t, tsample_t)
 
int _TIFFNoRowDecode (TIFF *, tidata_t, tsize_t, tsample_t)
 
int _TIFFNoStripDecode (TIFF *, tidata_t, tsize_t, tsample_t)
 
int _TIFFNoTileDecode (TIFF *, tidata_t, tsize_t, tsample_t)
 
void _TIFFNoPostDecode (TIFF *, tidata_t, tsize_t)
 
int _TIFFNoPreCode (TIFF *, tsample_t)
 
int _TIFFNoSeek (TIFF *, uint32)
 
void _TIFFSwab16BitData (TIFF *, tidata_t, tsize_t)
 
void _TIFFSwab32BitData (TIFF *, tidata_t, tsize_t)
 
void _TIFFSwab64BitData (TIFF *, tidata_t, tsize_t)
 
int TIFFFlushData1 (TIFF *)
 
void TIFFFreeDirectory (TIFF *)
 
int TIFFDefaultDirectory (TIFF *)
 
int TIFFSetCompressionScheme (TIFF *, int)
 
int TIFFSetDefaultCompressionState (TIFF *)
 
uint32 _TIFFDefaultStripSize (TIFF *, uint32)
 
void _TIFFDefaultTileSize (TIFF *, uint32 *, uint32 *)
 
void _TIFFsetByteArray (void **, void *, long)
 
void _TIFFsetString (char **, char *)
 
void _TIFFsetShortArray (uint16 **, uint16 *, long)
 
void _TIFFsetLongArray (uint32 **, uint32 *, long)
 
void _TIFFsetFloatArray (float **, float *, long)
 
void _TIFFsetDoubleArray (double **, double *, long)
 
void _TIFFprintAscii (FILE *, const char *)
 
void _TIFFprintAsciiTag (FILE *, const char *, const char *)
 
int TIFFInitDumpMode (TIFF *, int)
 
int TIFFInitPackBits (TIFF *, int)
 
int TIFFInitCCITTRLE (TIFF *, int)
 
int TIFFInitCCITTRLEW (TIFF *, int)
 
int TIFFInitCCITTFax3 (TIFF *, int)
 
int TIFFInitCCITTFax4 (TIFF *, int)
 
int TIFFInitThunderScan (TIFF *, int)
 
int TIFFInitNeXT (TIFF *, int)
 
int TIFFInitLZW (TIFF *, int)
 
int TIFFInitSGILog (TIFF *, int)
 

Variables

TIFFErrorHandler _TIFFwarningHandler
 
TIFFErrorHandler _TIFFerrorHandler
 
TIFFCodec _TIFFBuiltinCODECS []
 

Macro Definition Documentation

◆ isFillOrder

#define isFillOrder (   tif,
 
)    (((tif)->tif_flags & (o)) != 0)

Definition at line 161 of file tiffiop.h.

◆ isMapped

#define isMapped (   tif)    (((tif)->tif_flags & TIFF_MAPPED) != 0)

Definition at line 160 of file tiffiop.h.

◆ isPseudoTag

#define isPseudoTag (   t)    (t > 0xffff) /* is tag value normal or pseudo */

Definition at line 157 of file tiffiop.h.

◆ isTiled

#define isTiled (   tif)    (((tif)->tif_flags & TIFF_ISTILED) != 0)

Definition at line 159 of file tiffiop.h.

◆ isUpSampled

#define isUpSampled (   tif)    (((tif)->tif_flags & TIFF_UPSAMPLED) != 0)

Definition at line 162 of file tiffiop.h.

◆ ReadOK

#define ReadOK (   tif,
  buf,
  size 
)     (TIFFReadFile(tif, (tdata_t) buf, (tsize_t) size) == (tsize_t) size)

Definition at line 182 of file tiffiop.h.

◆ SeekOK

#define SeekOK (   tif,
  off 
)     (TIFFSeekFile(tif, (toff_t) off, SEEK_SET) == (toff_t) off)

Definition at line 186 of file tiffiop.h.

◆ TIFF_BEENWRITING

#define TIFF_BEENWRITING   0x0040 /* written 1+ scanlines to file */

Definition at line 80 of file tiffiop.h.

◆ TIFF_BUFFERSETUP

#define TIFF_BUFFERSETUP   0x0010 /* data buffers setup */

Definition at line 78 of file tiffiop.h.

◆ TIFF_CODERSETUP

#define TIFF_CODERSETUP   0x0020 /* encoder/decoder setup done */

Definition at line 79 of file tiffiop.h.

◆ TIFF_DIRTYDIRECT

#define TIFF_DIRTYDIRECT   0x0008 /* current directory must be written */

Definition at line 77 of file tiffiop.h.

◆ TIFF_DIRTYHEADER

#define TIFF_DIRTYHEADER   0x0004 /* header must be written on close */

Definition at line 76 of file tiffiop.h.

◆ TIFF_FILLORDER

#define TIFF_FILLORDER   0x0003 /* natural bit fill order for machine */

Definition at line 75 of file tiffiop.h.

◆ TIFF_INSUBIFD

#define TIFF_INSUBIFD   0x2000 /* currently writing a subifd */

Definition at line 87 of file tiffiop.h.

◆ TIFF_ISTILED

#define TIFF_ISTILED   0x0400 /* file is tile, not strip- based */

Definition at line 84 of file tiffiop.h.

◆ TIFF_MAPPED

#define TIFF_MAPPED   0x0800 /* file is mapped into memory */

Definition at line 85 of file tiffiop.h.

◆ TIFF_MYBUFFER

#define TIFF_MYBUFFER   0x0200 /* my raw data buffer; free on close */

Definition at line 83 of file tiffiop.h.

◆ TIFF_NOBITREV

#define TIFF_NOBITREV   0x0100 /* inhibit bit reversal logic */

Definition at line 82 of file tiffiop.h.

◆ TIFF_POSTENCODE

#define TIFF_POSTENCODE   0x1000 /* need call to postencode routine */

Definition at line 86 of file tiffiop.h.

◆ TIFF_STRIPCHOP

#define TIFF_STRIPCHOP   0x8000 /* enable strip chopping support */

Definition at line 89 of file tiffiop.h.

◆ TIFF_SWAB

#define TIFF_SWAB   0x0080 /* byte swap file information */

Definition at line 81 of file tiffiop.h.

◆ TIFF_UPSAMPLED

#define TIFF_UPSAMPLED   0x4000 /* library is doing data up-sampling */

Definition at line 88 of file tiffiop.h.

◆ TIFFCloseFile

#define TIFFCloseFile (   tif)     ((*(tif)->tif_closeproc)((tif)->tif_clientdata))

Definition at line 169 of file tiffiop.h.

◆ TIFFGetFileSize

#define TIFFGetFileSize (   tif)     ((*(tif)->tif_sizeproc)((tif)->tif_clientdata))

Definition at line 171 of file tiffiop.h.

◆ TIFFhowmany

#define TIFFhowmany (   x,
  y 
)    ((((uint32)(x))+(((uint32)(y))-1))/((uint32)(y)))

Definition at line 195 of file tiffiop.h.

◆ TIFFMapFileContents

#define TIFFMapFileContents (   tif,
  paddr,
  psize 
)     ((*(tif)->tif_mapproc)((tif)->tif_clientdata,paddr,psize))

Definition at line 173 of file tiffiop.h.

◆ TIFFReadFile

#define TIFFReadFile (   tif,
  buf,
  size 
)     ((*(tif)->tif_readproc)((tif)->tif_clientdata,buf,size))

Definition at line 163 of file tiffiop.h.

◆ TIFFroundup

#define TIFFroundup (   x,
  y 
)    (TIFFhowmany(x,y)*((uint32)(y)))

Definition at line 196 of file tiffiop.h.

◆ TIFFSeekFile

#define TIFFSeekFile (   tif,
  off,
  whence 
)     ((*(tif)->tif_seekproc)((tif)->tif_clientdata,(toff_t)(off),whence))

Definition at line 167 of file tiffiop.h.

◆ TIFFUnmapFileContents

#define TIFFUnmapFileContents (   tif,
  addr,
  size 
)     ((*(tif)->tif_unmapproc)((tif)->tif_clientdata,addr,size))

Definition at line 175 of file tiffiop.h.

◆ TIFFWriteFile

#define TIFFWriteFile (   tif,
  buf,
  size 
)     ((*(tif)->tif_writeproc)((tif)->tif_clientdata,buf,size))

Definition at line 165 of file tiffiop.h.

◆ WriteOK

#define WriteOK (   tif,
  buf,
  size 
)     (TIFFWriteFile(tif, (tdata_t) buf, (tsize_t) size) == (tsize_t) size)

Definition at line 190 of file tiffiop.h.

Typedef Documentation

◆ tidata_t

Definition at line 56 of file tiffiop.h.

◆ tidataval_t

typedef unsigned char tidataval_t

Definition at line 55 of file tiffiop.h.

◆ TIFFBoolMethod

typedef int(* TIFFBoolMethod) (TIFF *)

Definition at line 59 of file tiffiop.h.

◆ TIFFCodeMethod

typedef int(* TIFFCodeMethod) (TIFF *, tidata_t, tsize_t, tsample_t)

Definition at line 61 of file tiffiop.h.

◆ TIFFPostMethod

typedef void(* TIFFPostMethod) (TIFF *, tidata_t, tsize_t)

Definition at line 63 of file tiffiop.h.

◆ TIFFPreMethod

typedef int(* TIFFPreMethod) (TIFF *, tsample_t)

Definition at line 60 of file tiffiop.h.

◆ TIFFPrintMethod

typedef void(* TIFFPrintMethod) (TIFF *, FILE *, long)

Definition at line 66 of file tiffiop.h.

◆ TIFFSeekMethod

typedef int(* TIFFSeekMethod) (TIFF *, uint32)

Definition at line 62 of file tiffiop.h.

◆ TIFFStripMethod

typedef uint32(* TIFFStripMethod) (TIFF *, uint32)

Definition at line 67 of file tiffiop.h.

◆ TIFFTileMethod

typedef void(* TIFFTileMethod) (TIFF *, uint32 *, uint32 *)

Definition at line 68 of file tiffiop.h.

◆ TIFFVGetMethod

typedef int(* TIFFVGetMethod) (TIFF *, ttag_t, va_list)

Definition at line 65 of file tiffiop.h.

◆ TIFFVoidMethod

typedef void(* TIFFVoidMethod) (TIFF *)

Definition at line 58 of file tiffiop.h.

◆ TIFFVSetMethod

typedef int(* TIFFVSetMethod) (TIFF *, ttag_t, va_list)

Definition at line 64 of file tiffiop.h.

Function Documentation

◆ _TIFFDefaultStripSize()

uint32 _TIFFDefaultStripSize ( TIFF tif,
uint32  s 
)

Definition at line 140 of file tif_strip.c.

◆ _TIFFDefaultTileSize()

void _TIFFDefaultTileSize ( TIFF tif,
uint32 tw,
uint32 th 
)

Definition at line 207 of file tif_tile.c.

◆ _TIFFgetMode()

int _TIFFgetMode ( const char *  mode,
const char *  module 
)

Definition at line 101 of file tif_open.c.

◆ _TIFFNoPostDecode()

void _TIFFNoPostDecode ( TIFF tif,
tidata_t  buf,
tsize_t  cc 
)

Definition at line 599 of file tif_read.c.

◆ _TIFFNoPreCode()

int _TIFFNoPreCode ( TIFF tif,
tsample_t  s 
)

Definition at line 124 of file tif_compress.c.

◆ _TIFFNoRowDecode()

int _TIFFNoRowDecode ( TIFF tif,
tidata_t  pp,
tsize_t  cc,
tsample_t  s 
)

Definition at line 94 of file tif_compress.c.

◆ _TIFFNoRowEncode()

int _TIFFNoRowEncode ( TIFF tif,
tidata_t  pp,
tsize_t  cc,
tsample_t  s 
)

Definition at line 58 of file tif_compress.c.

◆ _TIFFNoSeek()

int _TIFFNoSeek ( TIFF tif,
uint32  off 
)

Definition at line 115 of file tif_compress.c.

◆ _TIFFNoStripDecode()

int _TIFFNoStripDecode ( TIFF tif,
tidata_t  pp,
tsize_t  cc,
tsample_t  s 
)

Definition at line 101 of file tif_compress.c.

◆ _TIFFNoStripEncode()

int _TIFFNoStripEncode ( TIFF tif,
tidata_t  pp,
tsize_t  cc,
tsample_t  s 
)

Definition at line 65 of file tif_compress.c.

◆ _TIFFNoTileDecode()

int _TIFFNoTileDecode ( TIFF tif,
tidata_t  pp,
tsize_t  cc,
tsample_t  s 
)

Definition at line 108 of file tif_compress.c.

◆ _TIFFNoTileEncode()

int _TIFFNoTileEncode ( TIFF tif,
tidata_t  pp,
tsize_t  cc,
tsample_t  s 
)

Definition at line 72 of file tif_compress.c.

◆ _TIFFprintAscii()

void _TIFFprintAscii ( FILE fd,
const char *  cp 
)

Definition at line 494 of file tif_print.c.

◆ _TIFFprintAsciiTag()

void _TIFFprintAsciiTag ( FILE fd,
const char *  name,
const char *  value 
)

Definition at line 514 of file tif_print.c.

◆ _TIFFsetByteArray()

void _TIFFsetByteArray ( void **  vpp,
void vp,
long  n 
)

Definition at line 44 of file tif_dir.c.

◆ _TIFFsetDoubleArray()

void _TIFFsetDoubleArray ( double **  dpp,
double *  dp,
long  n 
)

Definition at line 61 of file tif_dir.c.

◆ _TIFFsetFloatArray()

void _TIFFsetFloatArray ( float **  fpp,
float *  fp,
long  n 
)

Definition at line 59 of file tif_dir.c.

◆ _TIFFsetLongArray()

void _TIFFsetLongArray ( uint32 **  lpp,
uint32 lp,
long  n 
)

Definition at line 57 of file tif_dir.c.

◆ _TIFFsetShortArray()

void _TIFFsetShortArray ( uint16 **  wpp,
uint16 wp,
long  n 
)

Definition at line 55 of file tif_dir.c.

◆ _TIFFsetString()

void _TIFFsetString ( char **  cpp,
char *  cp 
)

Definition at line 51 of file tif_dir.c.

◆ _TIFFSwab16BitData()

void _TIFFSwab16BitData ( TIFF tif,
tidata_t  buf,
tsize_t  cc 
)

Definition at line 605 of file tif_read.c.

◆ _TIFFSwab32BitData()

void _TIFFSwab32BitData ( TIFF tif,
tidata_t  buf,
tsize_t  cc 
)

Definition at line 613 of file tif_read.c.

◆ _TIFFSwab64BitData()

void _TIFFSwab64BitData ( TIFF tif,
tidata_t  buf,
tsize_t  cc 
)

Definition at line 621 of file tif_read.c.

◆ TIFFDefaultDirectory()

int TIFFDefaultDirectory ( TIFF tif)

Definition at line 977 of file tif_dir.c.

◆ TIFFFlushData1()

int TIFFFlushData1 ( TIFF tif)

Definition at line 631 of file tif_write.c.

◆ TIFFFreeDirectory()

void TIFFFreeDirectory ( TIFF tif)

Definition at line 905 of file tif_dir.c.

◆ TIFFInitCCITTFax3()

int TIFFInitCCITTFax3 ( TIFF ,
int   
)

◆ TIFFInitCCITTFax4()

int TIFFInitCCITTFax4 ( TIFF tif,
int  scheme 
)

Definition at line 1435 of file tif_fax3.c.

◆ TIFFInitCCITTRLE()

int TIFFInitCCITTRLE ( TIFF ,
int   
)

◆ TIFFInitCCITTRLEW()

int TIFFInitCCITTRLEW ( TIFF tif,
int  scheme 
)

Definition at line 1526 of file tif_fax3.c.

◆ TIFFInitDumpMode()

int TIFFInitDumpMode ( TIFF tif,
int  scheme 
)

Definition at line 103 of file tif_dumpmode.c.

◆ TIFFInitLZW()

int TIFFInitLZW ( TIFF tif,
int  scheme 
)

Definition at line 662 of file tif_lzw.c.

◆ TIFFInitNeXT()

int TIFFInitNeXT ( TIFF tif,
int  scheme 
)

Definition at line 134 of file tif_next.c.

◆ TIFFInitPackBits()

int TIFFInitPackBits ( TIFF tif,
int  scheme 
)

Definition at line 249 of file tif_packbits.c.

◆ TIFFInitSGILog()

int TIFFInitSGILog ( TIFF tif,
int  scheme 
)

Definition at line 1381 of file tif_luv.c.

◆ TIFFInitThunderScan()

int TIFFInitThunderScan ( TIFF tif,
int  scheme 
)

Definition at line 147 of file tif_thunder.c.

◆ TIFFSetCompressionScheme()

int TIFFSetCompressionScheme ( TIFF tif,
int  scheme 
)

Definition at line 156 of file tif_compress.c.

◆ TIFFSetDefaultCompressionState()

int TIFFSetDefaultCompressionState ( TIFF )

Variable Documentation

◆ _TIFFBuiltinCODECS

TIFFCodec _TIFFBuiltinCODECS[]
extern

Definition at line 79 of file tif_codec.c.

◆ _TIFFerrorHandler

TIFFErrorHandler _TIFFerrorHandler
extern

Definition at line 519 of file tif_acorn.c.

◆ _TIFFwarningHandler

TIFFErrorHandler _TIFFwarningHandler
extern

Definition at line 507 of file tif_acorn.c.