|
Panda3D
|
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...
#include "pnmimage_base.h"#include "streamReader.h"#include "streamWriter.h"#include "config_pnmimage.h"#include <stdarg.h>#include <stdio.h>Go to the source code of this file.
Functions | |
| char * | pm_allocrow (int cols, int size) |
| Allocates a row of cols * size bytes. | |
| int | pm_bitstomaxval (int bits) |
| Returns the highest maxval that can be represented in the indicated number of bits. | |
| void | pm_error (const char *format,...) |
| Outputs the given printf-style message to the user and terminates messily. | |
| void | pm_freerow (char *itrow) |
| Frees the row previously allocated withm pm_allocrow(). | |
| int | pm_maxvaltobits (int maxval) |
| Returns the number of bits sufficient to hold the indicated maxval value. | |
| void | pm_message (const char *format,...) |
| Outputs the given printf-style message to the user and returns. | |
| int | pm_readbiglong (istream *in, long *lP) |
| int | pm_readbigshort (istream *in, short *sP) |
| int | pm_readlittlelong (istream *in, long *lP) |
| int | pm_readlittleshort (istream *in, short *sP) |
| int | pm_writebiglong (ostream *out, long l) |
| int | pm_writebigshort (ostream *out, short s) |
| int | pm_writelittlelong (ostream *out, long l) |
| int | pm_writelittleshort (ostream *out, short s) |
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
All rights reserved.
All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."
Definition in file pnmimage_base.cxx.
| char * pm_allocrow | ( | int | cols, |
| int | size ) |
Allocates a row of cols * size bytes.
Definition at line 103 of file pnmimage_base.cxx.
| int pm_bitstomaxval | ( | int | bits | ) |
Returns the highest maxval that can be represented in the indicated number of bits.
Definition at line 95 of file pnmimage_base.cxx.
Referenced by pm_maxvaltobits().
| void pm_error | ( | const char * | format, |
| ... ) |
Outputs the given printf-style message to the user and terminates messily.
Minimize use of this function.
Definition at line 54 of file pnmimage_base.cxx.
| void pm_freerow | ( | char * | itrow | ) |
Frees the row previously allocated withm pm_allocrow().
Definition at line 111 of file pnmimage_base.cxx.
| int pm_maxvaltobits | ( | int | maxval | ) |
Returns the number of bits sufficient to hold the indicated maxval value.
Definition at line 81 of file pnmimage_base.cxx.
References pm_bitstomaxval().
| void pm_message | ( | const char * | format, |
| ... ) |
Outputs the given printf-style message to the user and returns.
Definition at line 30 of file pnmimage_base.cxx.
| int pm_readbiglong | ( | istream * | in, |
| long * | lP ) |
Definition at line 134 of file pnmimage_base.cxx.
| int pm_readbigshort | ( | istream * | in, |
| short * | sP ) |
Definition at line 120 of file pnmimage_base.cxx.
| int pm_readlittlelong | ( | istream * | in, |
| long * | lP ) |
Definition at line 162 of file pnmimage_base.cxx.
| int pm_readlittleshort | ( | istream * | in, |
| short * | sP ) |
Definition at line 148 of file pnmimage_base.cxx.
| int pm_writebiglong | ( | ostream * | out, |
| long | l ) |
Definition at line 141 of file pnmimage_base.cxx.
| int pm_writebigshort | ( | ostream * | out, |
| short | s ) |
Definition at line 127 of file pnmimage_base.cxx.
| int pm_writelittlelong | ( | ostream * | out, |
| long | l ) |
Definition at line 169 of file pnmimage_base.cxx.
| int pm_writelittleshort | ( | ostream * | out, |
| short | s ) |
Definition at line 155 of file pnmimage_base.cxx.