Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/pnmimagetypes/pnmFileTypeTIFF.cxx File Reference

#include "pnmFileTypeTIFF.h"
#include "config_pnmimagetypes.h"
#include "pnmFileTypeRegistry.h"
#include "bamReader.h"
#include "ppmcmap.h"
#include <tiff.h>
#include <tiffio.h>

Go to the source code of this file.

Defines

#define int8   tiff_int8
#define uint8   tiff_uint8
#define int32   tiff_int32
#define uint32   tiff_uint32
#define PHOTOMETRIC_DEPTH   32768
#define NEXTSAMPLE

Functions

tsize_t istream_read (thandle_t fd, tdata_t buf, tsize_t size)
tsize_t ostream_write (thandle_t fd, tdata_t buf, tsize_t size)
tsize_t ostream_dont_read (thandle_t, tdata_t, tsize_t)
tsize_t istream_dont_write (thandle_t, tdata_t, tsize_t)
toff_t istream_seek (thandle_t fd, off_t off, int whence)
toff_t ostream_seek (thandle_t fd, off_t off, int whence)
int iostream_dont_close (thandle_t)
toff_t istream_size (thandle_t fd)
toff_t ostream_size (thandle_t fd)
int iostream_map (thandle_t, tdata_t *, toff_t *)
void iostream_unmap (thandle_t, tdata_t, toff_t)

Variables

const char *const extensions_tiff []
const int num_extensions_tiff = sizeof(extensions_tiff) / sizeof(const char *)
unsigned short tiff_compression = COMPRESSION_NONE
long tiff_g3options = 0
unsigned short tiff_fillorder = FILLORDER_MSB2LSB
short tiff_predictor = 0
long tiff_rowsperstrip = 0


Detailed Description

Definition in file pnmFileTypeTIFF.cxx.


Define Documentation

#define int32   tiff_int32
 

Definition at line 32 of file pnmFileTypeTIFF.cxx.

#define int8   tiff_int8
 

Definition at line 30 of file pnmFileTypeTIFF.cxx.

#define NEXTSAMPLE
 

Value:

{ \
    if ( bitsleft == 0 ) \
    { \
      ++inP; \
      bitsleft = 8; \
    } \
    bitsleft -= bps; \
    sample = ( *inP >> bitsleft ) & _maxval; \
  }

Definition at line 569 of file pnmFileTypeTIFF.cxx.

Referenced by PNMFileTypeTIFF::Reader::read_row().

#define PHOTOMETRIC_DEPTH   32768
 

Definition at line 90 of file pnmFileTypeTIFF.cxx.

#define uint32   tiff_uint32
 

Definition at line 33 of file pnmFileTypeTIFF.cxx.

#define uint8   tiff_uint8
 

Definition at line 31 of file pnmFileTypeTIFF.cxx.


Function Documentation

int iostream_dont_close thandle_t   )  [static]
 

Definition at line 176 of file pnmFileTypeTIFF.cxx.

int iostream_map thandle_t  ,
tdata_t *  ,
toff_t * 
[static]
 

Definition at line 196 of file pnmFileTypeTIFF.cxx.

void iostream_unmap thandle_t  ,
tdata_t  ,
toff_t 
[static]
 

Definition at line 201 of file pnmFileTypeTIFF.cxx.

References PNMFileTypeTIFF::_installed_error_handlers, and PNMFileTypeTIFF::_type_handle.

tsize_t istream_dont_write thandle_t  ,
tdata_t  ,
tsize_t 
[static]
 

Definition at line 117 of file pnmFileTypeTIFF.cxx.

tsize_t istream_read thandle_t  fd,
tdata_t  buf,
tsize_t  size
[static]
 

Definition at line 96 of file pnmFileTypeTIFF.cxx.

toff_t istream_seek thandle_t  fd,
off_t  off,
int  whence
[static]
 

Definition at line 124 of file pnmFileTypeTIFF.cxx.

References ios_seekdir.

toff_t istream_size thandle_t  fd  )  [static]
 

Definition at line 182 of file pnmFileTypeTIFF.cxx.

tsize_t ostream_dont_read thandle_t  ,
tdata_t  ,
tsize_t 
[static]
 

Definition at line 110 of file pnmFileTypeTIFF.cxx.

toff_t ostream_seek thandle_t  fd,
off_t  off,
int  whence
[static]
 

Definition at line 150 of file pnmFileTypeTIFF.cxx.

References ios_seekdir.

toff_t ostream_size thandle_t  fd  )  [static]
 

Definition at line 189 of file pnmFileTypeTIFF.cxx.

tsize_t ostream_write thandle_t  fd,
tdata_t  buf,
tsize_t  size
[static]
 

Definition at line 103 of file pnmFileTypeTIFF.cxx.


Variable Documentation

const char* const extensions_tiff[] [static]
 

Initial value:

 {
  "tiff", "tif"
}

Definition at line 40 of file pnmFileTypeTIFF.cxx.

Referenced by PNMFileTypeTIFF::get_num_extensions().

const int num_extensions_tiff = sizeof(extensions_tiff) / sizeof(const char *) [static]
 

Definition at line 43 of file pnmFileTypeTIFF.cxx.

Referenced by PNMFileTypeTIFF::get_name(), and PNMFileTypeTIFF::get_num_extensions().

unsigned short tiff_compression = COMPRESSION_NONE
 

Definition at line 53 of file pnmFileTypeTIFF.cxx.

unsigned short tiff_fillorder = FILLORDER_MSB2LSB
 

Definition at line 76 of file pnmFileTypeTIFF.cxx.

long tiff_g3options = 0
 

Definition at line 68 of file pnmFileTypeTIFF.cxx.

short tiff_predictor = 0
 

Definition at line 82 of file pnmFileTypeTIFF.cxx.

long tiff_rowsperstrip = 0
 

Definition at line 86 of file pnmFileTypeTIFF.cxx.


Generated on Fri May 2 00:46:08 2003 for Panda by doxygen1.3