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

panda/src/pnmimagetypes/pnmFileTypeBMPWriter.cxx File Reference

#include "pnmFileTypeBMP.h"
#include "config_pnmimagetypes.h"
#include "pnmImage.h"
#include "pnmWriter.h"
#include "bmp.h"
#include "ppmcmap.h"
#include "pnmbitio.h"

Go to the source code of this file.

Defines

#define MAXCOLORS   256

Functions

void PutByte (ostream *fp, char v)
void PutShort (ostream *fp, short v)
void PutLong (ostream *fp, long v)
int BMPwritefileheader (ostream *fp, int classv, unsigned long bitcount, unsigned long x, unsigned long y)
int BMPwriteinfoheader (ostream *fp, int classv, unsigned long bitcount, unsigned long x, unsigned long y)
int BMPwritergb (ostream *fp, int classv, pixval R, pixval G, pixval B)
int BMPwritergbtable (ostream *fp, int classv, int bpp, int colors, pixval *R, pixval *G, pixval *B)
int colorstobpp (int colors)
void BMPEncode (ostream *fp, int classv, int x, int y, pixel **pixels, int colors, colorhash_table cht, pixval *R, pixval *G, pixval *B)
int BMPwriterow (ostream *fp, pixel *row, unsigned long cx, unsigned short bpp, int indexed, colorhash_table cht)
int BMPwritebits (ostream *fp, unsigned long cx, unsigned long cy, unsigned short cBitCount, pixel **pixels, int indexed, colorhash_table cht)
void BMPEncode24 (ostream *fp, int classv, int x, int y, pixel **pixels)

Variables

char er_write [] = "stdout: write error"


Detailed Description

Definition in file pnmFileTypeBMPWriter.cxx.


Define Documentation

#define MAXCOLORS   256
 

Definition at line 50 of file pnmFileTypeBMPWriter.cxx.

Referenced by PNMFileTypeBMP::Writer::Writer().


Function Documentation

void BMPEncode ostream *  fp,
int  classv,
int  x,
int  y,
pixel **  pixels,
int  colors,
colorhash_table  cht,
pixval R,
pixval G,
pixval B
[static]
 

Definition at line 402 of file pnmFileTypeBMPWriter.cxx.

References bmp_bpp, BMPlenfile(), BMPlenfileheader(), BMPleninfoheader(), BMPlenrgbtable(), BMPwritebits(), BMPwritefileheader(), BMPwriteinfoheader(), BMPwritergbtable(), colorstobpp(), pm_error(), x, and y.

void BMPEncode24 ostream *  fp,
int  classv,
int  x,
int  y,
pixel **  pixels
[static]
 

Definition at line 477 of file pnmFileTypeBMPWriter.cxx.

References BMPlenfile(), BMPlenfileheader(), BMPleninfoheader(), BMPwritebits(), BMPwritefileheader(), BMPwriteinfoheader(), colorhash_table, pm_error(), x, and y.

int BMPwritebits ostream *  fp,
unsigned long  cx,
unsigned long  cy,
unsigned short  cBitCount,
pixel **  pixels,
int  indexed,
colorhash_table  cht
[static]
 

Definition at line 328 of file pnmFileTypeBMPWriter.cxx.

References BMPwriterow(), pm_error(), and y.

Referenced by BMPEncode(), and BMPEncode24().

int BMPwritefileheader ostream *  fp,
int  classv,
unsigned long  bitcount,
unsigned long  x,
unsigned long  y
[static]
 

Definition at line 113 of file pnmFileTypeBMPWriter.cxx.

References BMPlenfile(), BMPoffbits(), PutByte(), PutLong(), PutShort(), x, and y.

Referenced by BMPEncode(), and BMPEncode24().

int BMPwriteinfoheader ostream *  fp,
int  classv,
unsigned long  bitcount,
unsigned long  x,
unsigned long  y
[static]
 

Definition at line 142 of file pnmFileTypeBMPWriter.cxx.

References C_OS2, C_WIN, pm_error(), PutLong(), PutShort(), x, and y.

Referenced by BMPEncode(), and BMPEncode24().

int BMPwritergb ostream *  fp,
int  classv,
pixval  R,
pixval  G,
pixval  B
[static]
 

Definition at line 206 of file pnmFileTypeBMPWriter.cxx.

References C_OS2, C_WIN, pm_error(), and PutByte().

Referenced by BMPwritergbtable().

int BMPwritergbtable ostream *  fp,
int  classv,
int  bpp,
int  colors,
pixval R,
pixval G,
pixval B
[static]
 

Definition at line 236 of file pnmFileTypeBMPWriter.cxx.

References BMPwritergb().

Referenced by BMPEncode().

int BMPwriterow ostream *  fp,
pixel row,
unsigned long  cx,
unsigned short  bpp,
int  indexed,
colorhash_table  cht
[static]
 

Definition at line 268 of file pnmFileTypeBMPWriter.cxx.

References pm_bitfini(), pm_bitinit(), pm_bitwrite(), PPM_GETB, PPM_GETG, PPM_GETR, ppm_lookupcolor(), PutByte(), and x.

Referenced by BMPwritebits().

int colorstobpp int  colors  )  [static]
 

Definition at line 377 of file pnmFileTypeBMPWriter.cxx.

References pm_error().

Referenced by BMPEncode().

void PutByte ostream *  fp,
char  v
[static]
 

Definition at line 73 of file pnmFileTypeBMPWriter.cxx.

References er_write, and pm_error().

Referenced by BMPwritefileheader(), BMPwritergb(), and BMPwriterow().

void PutLong ostream *  fp,
long  v
[static]
 

Definition at line 95 of file pnmFileTypeBMPWriter.cxx.

References er_write, pm_error(), and pm_writelittlelong().

Referenced by BMPwritefileheader(), and BMPwriteinfoheader().

void PutShort ostream *  fp,
short  v
[static]
 

Definition at line 84 of file pnmFileTypeBMPWriter.cxx.

References er_write, pm_error(), and pm_writelittleshort().

Referenced by BMPwritefileheader(), and BMPwriteinfoheader().


Variable Documentation

char er_write[] = "stdout: write error" [static]
 

Definition at line 56 of file pnmFileTypeBMPWriter.cxx.

Referenced by PutByte(), PutLong(), and PutShort().


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