FS2_Open
Open source remastering of the Freespace 2 engine
|
Go to the source code of this file.
Macros | |
#define | PCX_ERROR_NONE 0 |
#define | PCX_ERROR_OPENING 1 |
#define | PCX_ERROR_NO_HEADER 2 |
#define | PCX_ERROR_WRONG_VERSION 3 |
#define | PCX_ERROR_READING 4 |
#define | PCX_ERROR_NO_PALETTE 5 |
#define | PCX_ERROR_WRITING 6 |
#define | PCX_ERROR_MEMORY 7 |
Functions | |
int | pcx_read_header (const char *filename, CFILE *img_cfp=NULL, int *w=0, int *h=0, int *bpp=0, ubyte *pal=NULL) |
int | pcx_read_bitmap (const char *filename, ubyte *org_data, ubyte *pal, int byte_size, int aabitmap=0, int nondark=0, int cf_type=CF_TYPE_ANY) |
int | pcx_write_bitmap (const char *filename, int w, int h, ubyte **row_ptrs, ubyte *palette) |
#define PCX_ERROR_MEMORY 7 |
Definition at line 32 of file pcxutils.h.
#define PCX_ERROR_NO_HEADER 2 |
Definition at line 27 of file pcxutils.h.
#define PCX_ERROR_NO_PALETTE 5 |
Definition at line 30 of file pcxutils.h.
#define PCX_ERROR_NONE 0 |
Definition at line 25 of file pcxutils.h.
#define PCX_ERROR_OPENING 1 |
Definition at line 26 of file pcxutils.h.
#define PCX_ERROR_READING 4 |
Definition at line 29 of file pcxutils.h.
#define PCX_ERROR_WRITING 6 |
Definition at line 31 of file pcxutils.h.
#define PCX_ERROR_WRONG_VERSION 3 |
Definition at line 28 of file pcxutils.h.
int pcx_read_bitmap | ( | const char * | filename, |
ubyte * | org_data, | ||
ubyte * | pal, | ||
int | byte_size, | ||
int | aabitmap = 0 , |
||
int | nondark = 0 , |
||
int | cf_type = CF_TYPE_ANY |
||
) |
Definition at line 217 of file pcxutils.cpp.
int pcx_read_header | ( | const char * | filename, |
CFILE * | img_cfp = NULL , |
||
int * | w = 0 , |
||
int * | h = 0 , |
||
int * | bpp = 0 , |
||
ubyte * | pal = NULL |
||
) |
Definition at line 40 of file pcxutils.cpp.