Open source remastering of the Freespace 2 engine
jpgutils.h File Reference
#include "globalincs/pstypes.h"
#include "cfile/cfile.h"

Go to the source code of this file.


#define JPEG_ERROR_NONE   0


int jpeg_read_header (const char *real_filename, CFILE *img_cfp=NULL, int *w=0, int *h=0, int *bpp=0, ubyte *palette=NULL)
int jpeg_read_bitmap (const char *real_filename, ubyte *image_data, ubyte *palette, int dest_size, int cf_type=CF_TYPE_ANY)

Macro Definition Documentation


Definition at line 19 of file jpgutils.h.

#define JPEG_ERROR_NONE   0

Definition at line 20 of file jpgutils.h.


Definition at line 21 of file jpgutils.h.

Function Documentation

int jpeg_read_bitmap ( const char *  real_filename,
ubyte image_data,
ubyte palette,
int  dest_size,
int  cf_type = CF_TYPE_ANY 

Definition at line 167 of file jpgutils.cpp.

int jpeg_read_header ( const char *  real_filename,
CFILE img_cfp = NULL,
int w = 0,
int h = 0,
int bpp = 0,
ubyte palette = NULL 

Definition at line 99 of file jpgutils.cpp.