#include "pandabase.h"
#include <string>
Go to the source code of this file.
Compounds | |
struct | pixel |
Defines | |
#define | PGM_BIGGRAYS |
#define | PGM_MAXMAXVAL 65535 |
#define | PNM_MAXMAXVAL PGM_MAXMAXVAL |
#define | PPM_GETR(p) ((p).r) |
#define | PPM_GETG(p) ((p).g) |
#define | PPM_GETB(p) ((p).b) |
#define | PPM_PUTR(p, red) ((p).r = (red)) |
#define | PPM_PUTG(p, grn) ((p).g = (grn)) |
#define | PPM_PUTB(p, blu) ((p).b = (blu)) |
#define | PPM_ASSIGN(p, red, grn, blu) { (p).r = (red); (p).g = (grn); (p).b = (blu); } |
#define | PPM_EQUAL(p, q) ( (p).r == (q).r && (p).g == (q).g && (p).b == (q).b ) |
#define | PNM_ASSIGN1(x, v) PPM_ASSIGN(x,0,0,v) |
#define | PPM_DEPTH(newp, p, oldmaxval, newmaxval) |
Typedefs | |
typedef unsigned short | gray |
typedef gray | pixval |
typedef pixel | xel |
typedef gray | xelval |
Functions | |
EXPCL_PANDA void | pm_message (const char *format,...) |
EXPCL_PANDA void | pm_error (const char *format,...) |
EXPCL_PANDA int | pm_maxvaltobits (int maxval) |
EXPCL_PANDA int | pm_bitstomaxval (int bits) |
EXPCL_PANDA char * | pm_allocrow (int cols, int size) |
EXPCL_PANDA void | pm_freerow (char *itrow) |
EXPCL_PANDA int | pm_readbigshort (istream *in, short *sP) |
EXPCL_PANDA int | pm_writebigshort (ostream *out, short s) |
EXPCL_PANDA int | pm_readbiglong (istream *in, long *lP) |
EXPCL_PANDA int | pm_writebiglong (ostream *out, long l) |
EXPCL_PANDA int | pm_readlittleshort (istream *in, short *sP) |
EXPCL_PANDA int | pm_writelittleshort (ostream *out, short s) |
EXPCL_PANDA int | pm_readlittlelong (istream *in, long *lP) |
EXPCL_PANDA int | pm_writelittlelong (ostream *out, long l) |
Variables | |
const double | lumin_red = 0.299 |
const double | lumin_grn = 0.587 |
const double | lumin_blu = 0.114 |
|
Definition at line 35 of file pnmimage_base.h. |
|
Definition at line 39 of file pnmimage_base.h. |
|
Definition at line 67 of file pnmimage_base.h. Referenced by PNMFileTypeJPG::Reader::read_data(), and PNMFileTypeJPG2000::Reader::read_data(). |
|
Definition at line 45 of file pnmimage_base.h. Referenced by PNMFileTypeTIFF::Reader::Reader(), and PNMFileTypeSGI::Reader::Reader(). |
|
|
Value: PPM_ASSIGN( (newp), \ ( (int) PPM_GETR(p) * (newmaxval) + (oldmaxval) / 2 ) / (oldmaxval), \ ( (int) PPM_GETG(p) * (newmaxval) + (oldmaxval) / 2 ) / (oldmaxval), \ ( (int) PPM_GETB(p) * (newmaxval) + (oldmaxval) / 2 ) / (oldmaxval) ) Definition at line 69 of file pnmimage_base.h. Referenced by PNMFileTypeTGA::Writer::put_map_entry(), PNMFileTypeTGA::Writer::put_mono(), and PNMFileTypeTGA::Writer::put_rgb(). |
|
Definition at line 66 of file pnmimage_base.h. Referenced by compare_rgb(), PNMFileTypeTGA::Writer::compute_runlengths(), ppm_addtocolorhist(), ppm_colorhisttocolorhash(), ppm_computecolorhash(), and ppm_lookupcolor(). |
|
|
|
|
Definition at line 63 of file pnmimage_base.h. Referenced by PNMFileTypeTIFF::Reader::read_row(), PNMFileTypeSGI::Reader::read_row(), and PNMFileTypeAlias::Reader::read_row(). |
|
Definition at line 62 of file pnmimage_base.h. |
|
Definition at line 61 of file pnmimage_base.h. |
|
Definition at line 38 of file pnmimage_base.h. |
|
Definition at line 51 of file pnmimage_base.h. Referenced by PNMFileTypeTGA::Reader::get_pixel(), PNMFileTypeTGA::Writer::put_mono(), PNMFileTypeTGA::Writer::put_rgb(), and PNMFileTypeBMP::Writer::write_data(). |
|
Definition at line 52 of file pnmimage_base.h. |
|
|
Definition at line 112 of file pnmimage_base.cxx. Referenced by PNMFileTypeTGA::Writer::write_data(). |
|
Definition at line 103 of file pnmimage_base.cxx. Referenced by pm_maxvaltobits(), and PNMFileTypeTIFF::Writer::write_data(). |
|
|
Definition at line 121 of file pnmimage_base.cxx. Referenced by PNMFileTypeTGA::Writer::~Writer(). |
|
Definition at line 88 of file pnmimage_base.cxx. References pm_bitstomaxval(). Referenced by colorstobpp(), and PNMFileTypeTIFF::Writer::write_data(). |
|
Definition at line 33 of file pnmimage_base.cxx. References buffer, and format. Referenced by BMPreadinfoheader(), and PNMFileTypeBMP::Writer::write_data(). |
|
Definition at line 144 of file pnmimage_base.cxx. References reader(). Referenced by get_big_long(), read_float(), and read_ulong(). |
|
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(). |
|
Definition at line 172 of file pnmimage_base.cxx. References reader(). Referenced by GetLong(). |
|
Definition at line 158 of file pnmimage_base.cxx. References reader(). Referenced by GetShort(). |
|
Definition at line 151 of file pnmimage_base.cxx. References writer(). Referenced by put_big_long(), write_float(), and write_ulong(). |
|
Definition at line 137 of file pnmimage_base.cxx. Referenced by put_big_short(), write_ushort(), write_ushort_IMG(), and write_ushort_SI(). |
|
Definition at line 179 of file pnmimage_base.cxx. References writer(). Referenced by PutLong(). |
|
Definition at line 165 of file pnmimage_base.cxx. Referenced by PutShort(). |
|
Definition at line 101 of file pnmimage_base.h. |
|
Definition at line 100 of file pnmimage_base.h. |
|
Definition at line 99 of file pnmimage_base.h. |