Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

ImageTIFF.cpp File Reference

Implements CImageTIFF class, a rudimentary TIFF image file loader. More...

#include "../Include/FlyLegacy.h"
#include "../Include/Utility.h"
#include "../Include/Globals.h"
#include "../Include/Endian.h"

Go to the source code of this file.

Classes

struct  TIFF_IFH
struct  TIFF_IFD_ENTRY

Defines

#define TIFF_TYPE_BYTE   (1)
#define TIFF_TYPE_ASCII   (2)
#define TIFF_TYPE_SHORT   (3)
#define TIFF_TYPE_LONG   (4)
#define TIFF_TYPE_RATIONAL   (5)
#define TIFF_LITTLE_ENDIAN   (0x4949)
#define TIFF_BIG_ENDIAN   (0x4D4D)
#define TIFF_SIGNATURE   (42)
#define TIFF_TAG_IMAGEWIDTH   (0x0100)
#define TIFF_TAG_IMAGELENGTH   (0x0101)
#define TIFF_TAG_BITSPERSAMPLE   (0x0102)
#define TIFF_TAG_COMPRESSION   (0x0103)
#define TIFF_TAG_INTERPRETATION   (0x0106)
#define TIFF_TAG_STRIPOFFSETS   (0x0111)
#define TIFF_TAG_SAMPLESPERPIXEL   (0x0115)
#define TIFF_TAG_ROWSPERSTRIP   (0x0116)
#define TIFF_TAG_STRIPBYTECOUNTS   (0x0117)
#define TIFF_TAG_PLANARCONFIGURATION   (0x011C)
#define TIFF_TAG_COLORMAP   (0x0140)

Enumerations

enum  ETiffImageType { TIFF_UNKNOWN, TIFF_RGB, TIFF_CMAP }

Functions

static short tifRead16 (PODFILE *p, bool bigEndian)
static long tifRead32 (PODFILE *p, bool bigEndian)


Detailed Description

Implements the CImageTIFF class. This implementation is intended only to support the TIFF options used in Fly! 2 TIF textures for default aircraft. It is definitely not a standards compliant TIFF loader.

Definition in file ImageTIFF.cpp.


Define Documentation

#define TIFF_BIG_ENDIAN   (0x4D4D)
 

Definition at line 243 of file ImageTIFF.cpp.

Referenced by CImageTIFF::CImageTIFF().

#define TIFF_LITTLE_ENDIAN   (0x4949)
 

Definition at line 242 of file ImageTIFF.cpp.

Referenced by CImageTIFF::CImageTIFF().

#define TIFF_SIGNATURE   (42)
 

Definition at line 244 of file ImageTIFF.cpp.

Referenced by CImageTIFF::CImageTIFF().

#define TIFF_TAG_BITSPERSAMPLE   (0x0102)
 

Definition at line 248 of file ImageTIFF.cpp.

Referenced by CImageTIFF::CImageTIFF().

#define TIFF_TAG_COLORMAP   (0x0140)
 

Definition at line 256 of file ImageTIFF.cpp.

Referenced by CImageTIFF::CImageTIFF().

#define TIFF_TAG_COMPRESSION   (0x0103)
 

Definition at line 249 of file ImageTIFF.cpp.

Referenced by CImageTIFF::CImageTIFF().

#define TIFF_TAG_IMAGELENGTH   (0x0101)
 

Definition at line 247 of file ImageTIFF.cpp.

Referenced by CImageTIFF::CImageTIFF().

#define TIFF_TAG_IMAGEWIDTH   (0x0100)
 

Definition at line 246 of file ImageTIFF.cpp.

Referenced by CImageTIFF::CImageTIFF().

#define TIFF_TAG_INTERPRETATION   (0x0106)
 

Definition at line 250 of file ImageTIFF.cpp.

Referenced by CImageTIFF::CImageTIFF().

#define TIFF_TAG_PLANARCONFIGURATION   (0x011C)
 

Definition at line 255 of file ImageTIFF.cpp.

Referenced by CImageTIFF::CImageTIFF().

#define TIFF_TAG_ROWSPERSTRIP   (0x0116)
 

Definition at line 253 of file ImageTIFF.cpp.

Referenced by CImageTIFF::CImageTIFF().

#define TIFF_TAG_SAMPLESPERPIXEL   (0x0115)
 

Definition at line 252 of file ImageTIFF.cpp.

Referenced by CImageTIFF::CImageTIFF().

#define TIFF_TAG_STRIPBYTECOUNTS   (0x0117)
 

Definition at line 254 of file ImageTIFF.cpp.

Referenced by CImageTIFF::CImageTIFF().

#define TIFF_TAG_STRIPOFFSETS   (0x0111)
 

Definition at line 251 of file ImageTIFF.cpp.

Referenced by CImageTIFF::CImageTIFF().

#define TIFF_TYPE_ASCII   (2)
 

Definition at line 237 of file ImageTIFF.cpp.

#define TIFF_TYPE_BYTE   (1)
 

Definition at line 236 of file ImageTIFF.cpp.

#define TIFF_TYPE_LONG   (4)
 

Definition at line 239 of file ImageTIFF.cpp.

Referenced by CImageTIFF::CImageTIFF().

#define TIFF_TYPE_RATIONAL   (5)
 

Definition at line 240 of file ImageTIFF.cpp.

#define TIFF_TYPE_SHORT   (3)
 

Definition at line 238 of file ImageTIFF.cpp.

Referenced by CImageTIFF::CImageTIFF().


Enumeration Type Documentation

enum ETiffImageType
 

Enumerator:
TIFF_UNKNOWN 
TIFF_RGB 
TIFF_CMAP 

Definition at line 259 of file ImageTIFF.cpp.


Function Documentation

static short tifRead16 PODFILE p,
bool  bigEndian
[static]
 

Definition at line 198 of file ImageTIFF.cpp.

References BigEndian(), LittleEndian(), and pread().

Referenced by CImageTIFF::CImageTIFF().

static long tifRead32 PODFILE p,
bool  bigEndian
[static]
 

Definition at line 210 of file ImageTIFF.cpp.

References BigEndian(), LittleEndian(), and pread().

Referenced by CImageTIFF::CImageTIFF().

SourceForge.net Logo Documentation generated by doxygen