FS2_Open
Open source remastering of the Freespace 2 engine
|
#include <string.h>
#include "globalincs/pstypes.h"
#include "tgautils/tgautils.h"
#include "cfile/cfile.h"
#include "bmpman/bmpman.h"
#include "palman/palman.h"
#include "graphics/2d.h"
#include "cmdline/cmdline.h"
Go to the source code of this file.
Classes | |
struct | targa_header |
struct | targa_footer |
Macros | |
#define | TARGA_FOOTER_SIZE 26 |
#define | MAX_TARGA_RUN_LENGTH_PACKET 128 |
#define | TARGA_HEADER_LENGTH 18 |
#define | ULORIGIN (header.image_descriptor & 0x20) |
Typedefs | |
typedef struct targa_header | targa_header |
typedef struct targa_footer | targa_footer |
Functions | |
int | targa_compress (char *out, char *in, int outsize, int pixsize, int bytecount) |
int | targa_read_header (const char *real_filename, CFILE *img_cfp, int *w, int *h, int *bpp, ubyte *palette) |
int | targa_uncompress (ubyte *dst, ubyte *src, int bitmap_width, int bytes_per_pixel, int dest_size) |
int | targa_read_bitmap (const char *real_filename, ubyte *image_data, ubyte *palette, int dest_size, int cf_type) |
int | targa_write_bitmap (char *real_filename, ubyte *data, ubyte *palette, int w, int h, int bpp) |
Variables | |
const char * | Xfile_ID = "TRUEVISION-XFILE." |
#define MAX_TARGA_RUN_LENGTH_PACKET 128 |
Definition at line 33 of file tgautils.cpp.
#define TARGA_FOOTER_SIZE 26 |
Definition at line 30 of file tgautils.cpp.
#define TARGA_HEADER_LENGTH 18 |
Definition at line 34 of file tgautils.cpp.
#define ULORIGIN (header.image_descriptor & 0x20) |
Definition at line 35 of file tgautils.cpp.
typedef struct targa_footer targa_footer |
typedef struct targa_header targa_header |
Definition at line 140 of file tgautils.cpp.
int targa_read_bitmap | ( | const char * | real_filename, |
ubyte * | image_data, | ||
ubyte * | palette, | ||
int | dest_size, | ||
int | cf_type | ||
) |
Definition at line 503 of file tgautils.cpp.
int targa_read_header | ( | const char * | real_filename, |
CFILE * | img_cfp, | ||
int * | w, | ||
int * | h, | ||
int * | bpp, | ||
ubyte * | palette | ||
) |
Definition at line 361 of file tgautils.cpp.
int targa_uncompress | ( | ubyte * | dst, |
ubyte * | src, | ||
int | bitmap_width, | ||
int | bytes_per_pixel, | ||
int | dest_size | ||
) |
Definition at line 448 of file tgautils.cpp.
int targa_write_bitmap | ( | char * | real_filename, |
ubyte * | data, | ||
ubyte * | palette, | ||
int | w, | ||
int | h, | ||
int | bpp | ||
) |
Definition at line 706 of file tgautils.cpp.
const char* Xfile_ID = "TRUEVISION-XFILE." |
Definition at line 28 of file tgautils.cpp.