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

panda/src/pnmimagetypes/pnmFileTypeSGIReader.cxx File Reference

#include "pnmFileTypeSGI.h"
#include "config_pnmimagetypes.h"
#include "sgi.h"
#include "pnmImage.h"
#include "pnmReader.h"
#include "notify.h"

Go to the source code of this file.

Defines

#define MALLOC(n, type)   (type *)xmalloc((n) * sizeof(type))
#define WORSTCOMPR(x)   (2*(x) + 2)
#define MAXVAL_BYTE   255
#define MAXVAL_WORD   65535

Typedefs

typedef PNMFileTypeSGI::Reader::TabEntry TabEntry
typedef short ScanElem
typedef ScanElemScanLine

Functions

unsigned char get_byte (istream *f)
long get_big_long (istream *f)
short get_big_short (istream *f)
short get_byte_as_short (istream *f)
int readerr (istream *f)
void * xmalloc (int bytes)
char * compression_name (char compr)
void read_bytes (istream *ifp, int n, char *buf)
bool read_header (istream *ifp, Header *head, const string &magic_number)
TabEntryread_table (istream *ifp, int tablen)
void read_channel (istream *ifp, int xsize, int ysize, int zsize, int bpc, TabEntry *table, ScanElem *channel_data, long table_start, int channel, int row)
void rle_decompress (ScanElem *src, long srclen, ScanElem *dest, long destlen)

Variables

bool eof_err = false


Detailed Description

Definition in file pnmFileTypeSGIReader.cxx.


Define Documentation

#define MALLOC n,
type   )     (type *)xmalloc((n) * sizeof(type))
 

Definition at line 64 of file pnmFileTypeSGIReader.cxx.

#define MAXVAL_BYTE   255
 

Definition at line 77 of file pnmFileTypeSGIReader.cxx.

Referenced by PNMFileTypeSGI::Writer::supports_write_row().

#define MAXVAL_WORD   65535
 

Definition at line 78 of file pnmFileTypeSGIReader.cxx.

Referenced by PNMFileTypeSGI::Writer::supports_write_row().

#define WORSTCOMPR x   )     (2*(x) + 2)
 

Definition at line 75 of file pnmFileTypeSGIReader.cxx.

Referenced by read_table().


Typedef Documentation

typedef short ScanElem
 

Definition at line 54 of file pnmFileTypeSGIReader.cxx.

Referenced by read_table(), and PNMFileTypeSGI::Writer::Table().

typedef ScanElem* ScanLine
 

Definition at line 55 of file pnmFileTypeSGIReader.cxx.

typedef PNMFileTypeSGI::Reader::TabEntry TabEntry
 

Definition at line 52 of file pnmFileTypeSGIReader.cxx.


Function Documentation

char * compression_name char  compr  )  [static]
 

Definition at line 532 of file pnmFileTypeSGIReader.cxx.

long get_big_long istream *  f  )  [static]
 

Definition at line 459 of file pnmFileTypeSGIReader.cxx.

References eof_err.

short get_big_short istream *  f  )  [static]
 

Definition at line 449 of file pnmFileTypeSGIReader.cxx.

Referenced by read_table().

unsigned char get_byte istream *  f  )  [static]
 

Definition at line 469 of file pnmFileTypeSGIReader.cxx.

short get_byte_as_short istream *  f  )  [static]
 

Definition at line 513 of file pnmFileTypeSGIReader.cxx.

References STORAGE_RLE.

Referenced by read_table().

void read_bytes istream *  ifp,
int  n,
char *  buf
[static]
 

Definition at line 498 of file pnmFileTypeSGIReader.cxx.

References NULL.

void read_channel istream *  ifp,
int  xsize,
int  ysize,
int  zsize,
int  bpc,
TabEntry table,
ScanElem channel_data,
long  table_start,
int  channel,
int  row
[static]
 

Definition at line 366 of file pnmFileTypeSGIReader.cxx.

References length.

bool read_header istream *  ifp,
Header head,
const string &  magic_number
[static]
 

Definition at line 255 of file pnmFileTypeSGIReader.cxx.

TabEntry * read_table istream *  ifp,
int  tablen
[static]
 

Definition at line 347 of file pnmFileTypeSGIReader.cxx.

References get_big_short(), get_byte_as_short(), length, ScanElem, PNMFileTypeSGI::Reader::TabEntry::start, and WORSTCOMPR.

int readerr istream *  f  )  [static]
 

Definition at line 481 of file pnmFileTypeSGIReader.cxx.

void rle_decompress ScanElem src,
long  srclen,
ScanElem dest,
long  destlen
[static]
 

Definition at line 409 of file pnmFileTypeSGIReader.cxx.

void * xmalloc int  bytes  )  [static]
 

Definition at line 519 of file pnmFileTypeSGIReader.cxx.


Variable Documentation

bool eof_err = false [static]
 

Definition at line 83 of file pnmFileTypeSGIReader.cxx.

Referenced by get_big_long().


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