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

pnmimage_base.cxx File Reference

#include "pnmimage_base.h"
#include "streamReader.h"
#include "streamWriter.h"
#include <stdarg.h>
#include <stdio.h>

Go to the source code of this file.

Functions

void pm_message (const char *format,...)
void pm_error (const char *format,...)
int pm_maxvaltobits (int maxval)
int pm_bitstomaxval (int bits)
char * pm_allocrow (int cols, int size)
void pm_freerow (char *itrow)
int pm_readbigshort (istream *in, short *sP)
int pm_writebigshort (ostream *out, short s)
int pm_readbiglong (istream *in, long *lP)
int pm_writebiglong (ostream *out, long l)
int pm_readlittleshort (istream *in, short *sP)
int pm_writelittleshort (ostream *out, short s)
int pm_readlittlelong (istream *in, long *lP)
int pm_writelittlelong (ostream *out, long l)


Function Documentation

char* pm_allocrow int  cols,
int  size
 

Definition at line 112 of file pnmimage_base.cxx.

Referenced by PNMFileTypeTGA::Writer::write_data().

int pm_bitstomaxval int  bits  ) 
 

Definition at line 103 of file pnmimage_base.cxx.

Referenced by pm_maxvaltobits(), and PNMFileTypeTIFF::Writer::write_data().

void pm_error const char *  format,
... 
 

Definition at line 59 of file pnmimage_base.cxx.

References buffer, and format.

Referenced by BMPEncode(), BMPEncode24(), BMPlenfileheader(), BMPleninfoheader(), BMPlenline(), BMPlenrgbtable(), BMPreadbits(), BMPreadinfoheader(), BMPwritebits(), BMPwriteinfoheader(), BMPwritergb(), colorstobpp(), PNMFileTypeSGI::Writer::compress(), PNMFileTypeTGA::Reader::get_map_entry(), PNMFileTypeTGA::Reader::get_pixel(), GetByte(), PNMFileTypeTGA::Reader::getbyte(), GetLong(), GetShort(), ppm_alloccolorhash(), ppm_colorhashtocolorhist(), ppm_colorhisttocolorhash(), ppm_computecolorhash(), put_big_long(), put_big_short(), PNMFileTypeTGA::Writer::put_map_entry(), PNMFileTypeTGA::Writer::put_pixel(), PutByte(), PutLong(), PutShort(), read_channel(), PNMFileTypeTGA::Reader::Reader(), readto(), rle_decompress(), PNMFileTypeBMP::Writer::write_data(), PNMFileTypeTGA::Writer::write_data(), and xmalloc().

void pm_freerow char *  itrow  ) 
 

Definition at line 121 of file pnmimage_base.cxx.

Referenced by PNMFileTypeTGA::Writer::~Writer().

int pm_maxvaltobits int  maxval  ) 
 

Definition at line 88 of file pnmimage_base.cxx.

References pm_bitstomaxval().

Referenced by colorstobpp(), and PNMFileTypeTIFF::Writer::write_data().

void pm_message const char *  format,
... 
 

Definition at line 33 of file pnmimage_base.cxx.

References buffer, and format.

Referenced by BMPreadinfoheader(), and PNMFileTypeBMP::Writer::write_data().

int pm_readbiglong istream *  in,
long *  lP
 

Definition at line 144 of file pnmimage_base.cxx.

References reader().

Referenced by get_big_long(), read_float(), and read_ulong().

int pm_readbigshort istream *  in,
short *  sP
 

Definition at line 130 of file pnmimage_base.cxx.

References reader().

Referenced by get_big_short(), read_ushort(), read_ushort_IMG(), and read_ushort_SI().

int pm_readlittlelong istream *  in,
long *  lP
 

Definition at line 172 of file pnmimage_base.cxx.

References reader().

Referenced by GetLong().

int pm_readlittleshort istream *  in,
short *  sP
 

Definition at line 158 of file pnmimage_base.cxx.

References reader().

Referenced by GetShort().

int pm_writebiglong ostream *  out,
long  l
 

Definition at line 151 of file pnmimage_base.cxx.

References writer().

Referenced by put_big_long(), write_float(), and write_ulong().

int pm_writebigshort ostream *  out,
short  s
 

Definition at line 137 of file pnmimage_base.cxx.

References s, and writer().

Referenced by put_big_short(), write_ushort(), write_ushort_IMG(), and write_ushort_SI().

int pm_writelittlelong ostream *  out,
long  l
 

Definition at line 179 of file pnmimage_base.cxx.

References writer().

Referenced by PutLong().

int pm_writelittleshort ostream *  out,
short  s
 

Definition at line 165 of file pnmimage_base.cxx.

References s, and writer().

Referenced by PutShort().


Generated on Fri Apr 18 00:10:59 2003 for Panda by doxygen1.3