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

panda/src/pnmimagetypes/pnmFileTypeBMPReader.cxx File Reference

#include "pnmFileTypeBMP.h"
#include "config_pnmimagetypes.h"
#include "bmp.h"
#include "pnmbitio.h"

Go to the source code of this file.

Functions

int GetByte (istream *fp)
short GetShort (istream *fp)
long GetLong (istream *fp)
void readto (istream *fp, unsigned long *ppos, unsigned long dst)
void BMPreadfileheader (istream *fp, unsigned long *ppos, unsigned long *poffBits)
void BMPreadinfoheader (istream *fp, unsigned long *ppos, unsigned long *pcx, unsigned long *pcy, unsigned short *pcBitCount, int *pclassv)
int BMPreadrgbtable (istream *fp, unsigned long *ppos, unsigned short cBitCount, int classv, pixval *R, pixval *G, pixval *B)
int BMPreadrow (istream *fp, unsigned long *ppos, pixel *row, unsigned long cx, unsigned short cBitCount, int indexed, pixval *R, pixval *G, pixval *B)
void BMPreadbits (xel *array, istream *fp, unsigned long *ppos, unsigned long offBits, unsigned long cx, unsigned long cy, unsigned short cBitCount, int, int indexed, pixval *R, pixval *G, pixval *B)

Variables

const char * ifname = "BMP"
char er_read [] = "%s: read error"


Detailed Description

Definition in file pnmFileTypeBMPReader.cxx.


Function Documentation

void BMPreadbits xel array,
istream *  fp,
unsigned long *  ppos,
unsigned long  offBits,
unsigned long  cx,
unsigned long  cy,
unsigned short  cBitCount,
int  ,
int  indexed,
pixval R,
pixval G,
pixval B
[static]
 

Definition at line 376 of file pnmFileTypeBMPReader.cxx.

References BMPreadrow(), ifname, pm_error(), readto(), and y.

void BMPreadfileheader istream *  fp,
unsigned long *  ppos,
unsigned long *  poffBits
[static]
 

Definition at line 141 of file pnmFileTypeBMPReader.cxx.

References GetLong(), and GetShort().

void BMPreadinfoheader istream *  fp,
unsigned long *  ppos,
unsigned long *  pcx,
unsigned long *  pcy,
unsigned short *  pcBitCount,
int *  pclassv
[static]
 

Definition at line 176 of file pnmFileTypeBMPReader.cxx.

References C_OS2, C_WIN, GetLong(), GetShort(), ifname, pm_error(), and pm_message().

int BMPreadrgbtable istream *  fp,
unsigned long *  ppos,
unsigned short  cBitCount,
int  classv,
pixval R,
pixval G,
pixval B
[static]
 

Definition at line 274 of file pnmFileTypeBMPReader.cxx.

References C_WIN, and GetByte().

int BMPreadrow istream *  fp,
unsigned long *  ppos,
pixel row,
unsigned long  cx,
unsigned short  cBitCount,
int  indexed,
pixval R,
pixval G,
pixval B
[static]
 

Definition at line 310 of file pnmFileTypeBMPReader.cxx.

References GetByte(), pm_bitfini(), pm_bitinit(), pm_bitread(), PPM_ASSIGN, and x.

Referenced by BMPreadbits().

int GetByte istream *  fp  )  [static]
 

Definition at line 66 of file pnmFileTypeBMPReader.cxx.

References er_read, ifname, and pm_error().

Referenced by BMPreadrgbtable(), and BMPreadrow().

long GetLong istream *  fp  )  [static]
 

Definition at line 92 of file pnmFileTypeBMPReader.cxx.

References er_read, ifname, and pm_error().

Referenced by BMPreadfileheader(), and BMPreadinfoheader().

short GetShort istream *  fp  )  [static]
 

Definition at line 79 of file pnmFileTypeBMPReader.cxx.

References er_read, ifname, and pm_error().

Referenced by BMPreadfileheader(), and BMPreadinfoheader().

void readto istream *  fp,
unsigned long *  ppos,
unsigned long  dst
[static]
 

Definition at line 110 of file pnmFileTypeBMPReader.cxx.

References er_read, ifname, and pm_error().

Referenced by BMPreadbits().


Variable Documentation

char er_read[] = "%s: read error" [static]
 

Definition at line 62 of file pnmFileTypeBMPReader.cxx.

Referenced by GetByte(), GetLong(), GetShort(), and readto().

const char* ifname = "BMP" [static]
 

Definition at line 61 of file pnmFileTypeBMPReader.cxx.

Referenced by BMPreadbits(), BMPreadinfoheader(), GetByte(), GetLong(), GetShort(), and readto().


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