]> icculus.org git repositories - taylor/freespace2.git/blob - include/tgautils.h
fix issue with looping audio streams
[taylor/freespace2.git] / include / tgautils.h
1 /*
2  * Copyright (C) Volition, Inc. 1999.  All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell 
5  * or otherwise commercially exploit the source or things you created based on
6  * the source.
7  */
8
9 /*
10  * $Logfile: /Freespace2/code/TgaUtils/TgaUtils.h $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
15  *
16  * $Log$
17  * Revision 1.4  2002/06/09 04:41:15  relnev
18  * added copyright header
19  *
20  * Revision 1.3  2002/05/26 20:22:48  theoddone33
21  * Most of network/ works
22  *
23  * Revision 1.2  2002/05/04 04:36:56  theoddone33
24  * More changes, took out a lot of the sound stuff which will bite later but
25  * I don't care.
26  *
27  * Revision 1.1.1.1  2002/05/03 03:28:12  root
28  * Initial import.
29  *
30  * 
31  * 3     3/20/99 3:46p Dave
32  * Added support for model-based background nebulae. Added 3 new
33  * sexpressions.
34  * 
35  * 2     12/01/98 4:46p Dave
36  * Put in targa bitmap support (16 bit).
37  *  
38  * $NoKeywords: $
39  */
40
41
42 #ifndef __TARGA_H
43 #define __TARGA_H
44
45 #include "pstypes.h"
46
47 // --------------------
48 //
49 // Defines
50 //
51 // --------------------
52
53 #define TARGA_ERROR_NONE                        0
54 #define TARGA_ERROR_READING             1
55 #define TARGA_ERROR_WRITING             2
56
57 // --------------------
58 //
59 // Prototypes
60 //
61 // --------------------
62
63 int targa_read_header(char *filename, int *w, int *h, int *bpp, ubyte *palette=NULL );
64 int targa_read_bitmap(char *filename, ubyte *data, ubyte *palette, int dest_size );
65 int targa_write_bitmap(char *filename, ubyte *data, ubyte *palette, int w, int h, int bpp);
66
67 // The following are used by the tools\vani code.
68 int targa_compress(char *out, char *in, int outsize, int pixsize, int bytecount);
69 int targa_uncompress( ubyte *dst, ubyte *src, int bitmap_width, int bytes_per_pixel );
70
71 #endif // __TARGA_H
72