Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Classes | Macros | Functions
tif_dir.h File Reference

Go to the source code of this file.

Classes

struct  TIFFDirectory
 

Macros

#define FIELD_SETLONGS   4
 
#define FIELD_IGNORE   0
 
#define FIELD_IMAGEDIMENSIONS   1
 
#define FIELD_TILEDIMENSIONS   2
 
#define FIELD_RESOLUTION   3
 
#define FIELD_POSITION   4
 
#define FIELD_SUBFILETYPE   5
 
#define FIELD_BITSPERSAMPLE   6
 
#define FIELD_COMPRESSION   7
 
#define FIELD_PHOTOMETRIC   8
 
#define FIELD_THRESHHOLDING   9
 
#define FIELD_FILLORDER   10
 
#define FIELD_ORIENTATION   15
 
#define FIELD_SAMPLESPERPIXEL   16
 
#define FIELD_ROWSPERSTRIP   17
 
#define FIELD_MINSAMPLEVALUE   18
 
#define FIELD_MAXSAMPLEVALUE   19
 
#define FIELD_PLANARCONFIG   20
 
#define FIELD_RESOLUTIONUNIT   22
 
#define FIELD_PAGENUMBER   23
 
#define FIELD_STRIPBYTECOUNTS   24
 
#define FIELD_STRIPOFFSETS   25
 
#define FIELD_COLORMAP   26
 
#define FIELD_EXTRASAMPLES   31
 
#define FIELD_SAMPLEFORMAT   32
 
#define FIELD_SMINSAMPLEVALUE   33
 
#define FIELD_SMAXSAMPLEVALUE   34
 
#define FIELD_IMAGEDEPTH   35
 
#define FIELD_TILEDEPTH   36
 
#define FIELD_HALFTONEHINTS   37
 
#define FIELD_YCBCRSUBSAMPLING   39
 
#define FIELD_YCBCRPOSITIONING   40
 
#define FIELD_TRANSFERFUNCTION   44
 
#define FIELD_INKNAMES   46
 
#define FIELD_SUBIFD   49
 
#define FIELD_CODEC   66 /* base of codec-private tags */
 
#define FIELD_PSEUDO   0
 
#define FIELD_LAST   (32*FIELD_SETLONGS-1)
 
#define TIFFExtractData(tif, type, v)
 
#define TIFFInsertData(tif, type, v)
 
#define BITn(n)   (((unsigned long)1L)<<((n)&0x1f))
 
#define BITFIELDn(tif, n)   ((tif)->tif_dir.td_fieldsset[(n)/32])
 
#define TIFFFieldSet(tif, field)   (BITFIELDn(tif, field) & BITn(field))
 
#define TIFFSetFieldBit(tif, field)   (BITFIELDn(tif, field) |= BITn(field))
 
#define TIFFClrFieldBit(tif, field)   (BITFIELDn(tif, field) &= ~BITn(field))
 
#define FieldSet(fields, f)   (fields[(f)/32] & BITn(f))
 
#define ResetFieldBit(fields, f)   (fields[(f)/32] &= ~BITn(f))
 
#define _TIFFMergeFieldInfo   TIFFMergeFieldInfo
 
#define _TIFFFindFieldInfo   TIFFFindFieldInfo
 
#define _TIFFFindFieldInfoByName   TIFFFindFieldInfoByName
 
#define _TIFFFieldWithTag   TIFFFieldWithTag
 
#define _TIFFFieldWithName   TIFFFieldWithName
 

Functions

const TIFFFieldInfo_TIFFGetFieldInfo (size_t *)
 
const TIFFFieldInfo_TIFFGetExifFieldInfo (size_t *)
 
void _TIFFSetupFieldInfo (TIFF *, const TIFFFieldInfo[], size_t)
 
void _TIFFPrintFieldInfo (TIFF *, FILE *)
 
TIFFDataType _TIFFSampleToTagType (TIFF *)
 
const TIFFFieldInfo_TIFFFindOrRegisterFieldInfo (TIFF *tif, ttag_t tag, TIFFDataType dt)
 
TIFFFieldInfo_TIFFCreateAnonFieldInfo (TIFF *tif, ttag_t tag, TIFFDataType dt)
 

Macro Definition Documentation

◆ _TIFFFieldWithName

#define _TIFFFieldWithName   TIFFFieldWithName

Definition at line 192 of file tif_dir.h.

◆ _TIFFFieldWithTag

#define _TIFFFieldWithTag   TIFFFieldWithTag

Definition at line 191 of file tif_dir.h.

◆ _TIFFFindFieldInfo

#define _TIFFFindFieldInfo   TIFFFindFieldInfo

Definition at line 189 of file tif_dir.h.

◆ _TIFFFindFieldInfoByName

#define _TIFFFindFieldInfoByName   TIFFFindFieldInfoByName

Definition at line 190 of file tif_dir.h.

◆ _TIFFMergeFieldInfo

#define _TIFFMergeFieldInfo   TIFFMergeFieldInfo

Definition at line 188 of file tif_dir.h.

◆ BITFIELDn

#define BITFIELDn (   tif,
  n 
)    ((tif)->tif_dir.td_fieldsset[(n)/32])

Definition at line 166 of file tif_dir.h.

◆ BITn

#define BITn (   n)    (((unsigned long)1L)<<((n)&0x1f))

Definition at line 165 of file tif_dir.h.

◆ FIELD_BITSPERSAMPLE

#define FIELD_BITSPERSAMPLE   6

Definition at line 108 of file tif_dir.h.

Referenced by TIFFPrintDirectory().

◆ FIELD_CODEC

#define FIELD_CODEC   66 /* base of codec-private tags */

Definition at line 138 of file tif_dir.h.

◆ FIELD_COLORMAP

#define FIELD_COLORMAP   26

Definition at line 123 of file tif_dir.h.

◆ FIELD_COMPRESSION

#define FIELD_COMPRESSION   7

Definition at line 109 of file tif_dir.h.

Referenced by TIFFPrintDirectory().

◆ FIELD_EXTRASAMPLES

#define FIELD_EXTRASAMPLES   31

Definition at line 124 of file tif_dir.h.

◆ FIELD_FILLORDER

#define FIELD_FILLORDER   10

Definition at line 112 of file tif_dir.h.

◆ FIELD_HALFTONEHINTS

#define FIELD_HALFTONEHINTS   37

Definition at line 130 of file tif_dir.h.

◆ FIELD_IGNORE

#define FIELD_IGNORE   0

Definition at line 98 of file tif_dir.h.

Referenced by TIFFReadCustomDirectory().

◆ FIELD_IMAGEDEPTH

#define FIELD_IMAGEDEPTH   35

Definition at line 128 of file tif_dir.h.

Referenced by TIFFPrintDirectory().

◆ FIELD_IMAGEDIMENSIONS

#define FIELD_IMAGEDIMENSIONS   1

Definition at line 101 of file tif_dir.h.

Referenced by TIFFPrintDirectory(), and TIFFWriteCheck().

◆ FIELD_INKNAMES

#define FIELD_INKNAMES   46

Definition at line 134 of file tif_dir.h.

◆ FIELD_LAST

#define FIELD_LAST   (32*FIELD_SETLONGS-1)

Definition at line 153 of file tif_dir.h.

Referenced by TIFFReassignTagToIgnore().

◆ FIELD_MAXSAMPLEVALUE

#define FIELD_MAXSAMPLEVALUE   19

Definition at line 117 of file tif_dir.h.

◆ FIELD_MINSAMPLEVALUE

#define FIELD_MINSAMPLEVALUE   18

Definition at line 116 of file tif_dir.h.

◆ FIELD_ORIENTATION

#define FIELD_ORIENTATION   15

Definition at line 113 of file tif_dir.h.

◆ FIELD_PAGENUMBER

#define FIELD_PAGENUMBER   23

Definition at line 120 of file tif_dir.h.

◆ FIELD_PHOTOMETRIC

#define FIELD_PHOTOMETRIC   8

Definition at line 110 of file tif_dir.h.

Referenced by TIFFPrintDirectory().

◆ FIELD_PLANARCONFIG

#define FIELD_PLANARCONFIG   20

Definition at line 118 of file tif_dir.h.

Referenced by TIFFWriteCheck().

◆ FIELD_POSITION

#define FIELD_POSITION   4

Definition at line 104 of file tif_dir.h.

Referenced by TIFFPrintDirectory().

◆ FIELD_PSEUDO

#define FIELD_PSEUDO   0

Definition at line 151 of file tif_dir.h.

◆ FIELD_RESOLUTION

#define FIELD_RESOLUTION   3

Definition at line 103 of file tif_dir.h.

Referenced by TIFFPrintDirectory().

◆ FIELD_RESOLUTIONUNIT

#define FIELD_RESOLUTIONUNIT   22

Definition at line 119 of file tif_dir.h.

Referenced by TIFFPrintDirectory().

◆ FIELD_ROWSPERSTRIP

#define FIELD_ROWSPERSTRIP   17

Definition at line 115 of file tif_dir.h.

Referenced by TIFFSetupStrips().

◆ FIELD_SAMPLEFORMAT

#define FIELD_SAMPLEFORMAT   32

Definition at line 125 of file tif_dir.h.

Referenced by TIFFPrintDirectory().

◆ FIELD_SAMPLESPERPIXEL

#define FIELD_SAMPLESPERPIXEL   16

Definition at line 114 of file tif_dir.h.

◆ FIELD_SETLONGS

#define FIELD_SETLONGS   4

Definition at line 37 of file tif_dir.h.

Referenced by TIFFFreeDirectory().

◆ FIELD_SMAXSAMPLEVALUE

#define FIELD_SMAXSAMPLEVALUE   34

Definition at line 127 of file tif_dir.h.

◆ FIELD_SMINSAMPLEVALUE

#define FIELD_SMINSAMPLEVALUE   33

Definition at line 126 of file tif_dir.h.

◆ FIELD_STRIPBYTECOUNTS

#define FIELD_STRIPBYTECOUNTS   24

Definition at line 121 of file tif_dir.h.

Referenced by TIFFSetupStrips().

◆ FIELD_STRIPOFFSETS

#define FIELD_STRIPOFFSETS   25

Definition at line 122 of file tif_dir.h.

Referenced by TIFFSetupStrips().

◆ FIELD_SUBFILETYPE

#define FIELD_SUBFILETYPE   5

Definition at line 107 of file tif_dir.h.

Referenced by TIFFPrintDirectory().

◆ FIELD_SUBIFD

#define FIELD_SUBIFD   49

Definition at line 135 of file tif_dir.h.

◆ FIELD_THRESHHOLDING

#define FIELD_THRESHHOLDING   9

Definition at line 111 of file tif_dir.h.

◆ FIELD_TILEDEPTH

#define FIELD_TILEDEPTH   36

Definition at line 129 of file tif_dir.h.

Referenced by TIFFPrintDirectory().

◆ FIELD_TILEDIMENSIONS

#define FIELD_TILEDIMENSIONS   2

Definition at line 102 of file tif_dir.h.

Referenced by TIFFPrintDirectory(), and TIFFSetupStrips().

◆ FIELD_TRANSFERFUNCTION

#define FIELD_TRANSFERFUNCTION   44

Definition at line 133 of file tif_dir.h.

◆ FIELD_YCBCRPOSITIONING

#define FIELD_YCBCRPOSITIONING   40

Definition at line 132 of file tif_dir.h.

Referenced by TIFFFreeDirectory().

◆ FIELD_YCBCRSUBSAMPLING

#define FIELD_YCBCRSUBSAMPLING   39

Definition at line 131 of file tif_dir.h.

Referenced by TIFFFreeDirectory().

◆ FieldSet

#define FieldSet (   fields,
  f 
)    (fields[(f)/32] & BITn(f))

Definition at line 171 of file tif_dir.h.

◆ ResetFieldBit

#define ResetFieldBit (   fields,
  f 
)    (fields[(f)/32] &= ~BITn(f))

Definition at line 172 of file tif_dir.h.

◆ TIFFClrFieldBit

#define TIFFClrFieldBit (   tif,
  field 
)    (BITFIELDn(tif, field) &= ~BITn(field))

Definition at line 169 of file tif_dir.h.

Referenced by TIFFFreeDirectory().

◆ TIFFExtractData

#define TIFFExtractData (   tif,
  type,
  v 
)
Value:
((uint32) ((tif)->tif_header.tiff_magic == TIFF_BIGENDIAN ? \
((v) >> (tif)->tif_typeshift[type]) & (tif)->tif_typemask[type] : \
(v) & (tif)->tif_typemask[type]))
const GLdouble * v
#define TIFF_BIGENDIAN
Definition: tiff.h:51
unsigned long uint32
Definition: md5.h:41
GLenum type

Definition at line 155 of file tif_dir.h.

◆ TIFFFieldSet

#define TIFFFieldSet (   tif,
  field 
)    (BITFIELDn(tif, field) & BITn(field))

Definition at line 167 of file tif_dir.h.

Referenced by TIFFPrintDirectory(), TIFFVGetField(), and TIFFWriteCheck().

◆ TIFFInsertData

#define TIFFInsertData (   tif,
  type,
  v 
)
Value:
((uint32) ((tif)->tif_header.tiff_magic == TIFF_BIGENDIAN ? \
((v) & (tif)->tif_typemask[type]) << (tif)->tif_typeshift[type] : \
(v) & (tif)->tif_typemask[type]))
const GLdouble * v
#define TIFF_BIGENDIAN
Definition: tiff.h:51
unsigned long uint32
Definition: md5.h:41
GLenum type

Definition at line 159 of file tif_dir.h.

◆ TIFFSetFieldBit

#define TIFFSetFieldBit (   tif,
  field 
)    (BITFIELDn(tif, field) |= BITn(field))

Definition at line 168 of file tif_dir.h.

Referenced by TIFFSetupStrips().

Function Documentation

◆ _TIFFCreateAnonFieldInfo()

TIFFFieldInfo* _TIFFCreateAnonFieldInfo ( TIFF tif,
ttag_t  tag,
TIFFDataType  dt 
)

◆ _TIFFFindOrRegisterFieldInfo()

const TIFFFieldInfo* _TIFFFindOrRegisterFieldInfo ( TIFF tif,
ttag_t  tag,
TIFFDataType  dt 
)

◆ _TIFFGetExifFieldInfo()

const TIFFFieldInfo* _TIFFGetExifFieldInfo ( size_t *  )

Definition at line 520 of file tif_dirinfo.c.

References TIFFArrayCount.

◆ _TIFFGetFieldInfo()

const TIFFFieldInfo* _TIFFGetFieldInfo ( size_t *  )

Definition at line 513 of file tif_dirinfo.c.

References TIFFArrayCount.

◆ _TIFFPrintFieldInfo()

void _TIFFPrintFieldInfo ( TIFF ,
FILE *   
)

◆ _TIFFSampleToTagType()

TIFFDataType _TIFFSampleToTagType ( TIFF )

◆ _TIFFSetupFieldInfo()

void _TIFFSetupFieldInfo ( TIFF ,
const TIFFFieldInfo  [],
size_t   
)