2 * $Logfile: /Freespace2/code/TgaUtils/TgaUtils.h $
9 * Revision 1.2 2002/05/04 04:36:56 theoddone33
10 * More changes, took out a lot of the sound/* stuff which will bite later but
13 * Revision 1.1.1.1 2002/05/03 03:28:12 root
17 * 3 3/20/99 3:46p Dave
18 * Added support for model-based background nebulae. Added 3 new
21 * 2 12/01/98 4:46p Dave
22 * Put in targa bitmap support (16 bit).
33 // --------------------
37 // --------------------
39 #define TARGA_ERROR_NONE 0
40 #define TARGA_ERROR_READING 1
41 #define TARGA_ERROR_WRITING 2
43 // --------------------
47 // --------------------
49 int targa_read_header(char *filename, int *w, int *h, int *bpp, ubyte *palette=NULL );
50 int targa_read_bitmap(char *filename, ubyte *data, ubyte *palette, int dest_size );
51 int targa_write_bitmap(char *filename, ubyte *data, ubyte *palette, int w, int h, int bpp);
53 // The following are used by the tools\vani code.
54 int targa_compress(char *out, char *in, int outsize, int pixsize, int bytecount);
55 int targa_uncompress( ubyte *dst, ubyte *src, int bitmap_width, int bytes_per_pixel );