FS2_Open
Open source remastering of the Freespace 2 engine
jpgutils.h
Go to the documentation of this file.
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 the
6  * source.
7  *
8 */
9 
10 
11 
12 #ifndef _JPEGUTILS_H
13 #define _JPEGUTILS_H
14 
15 #include "globalincs/pstypes.h"
16 #include "cfile/cfile.h"
17 
18 
19 #define JPEG_ERROR_INVALID -1
20 #define JPEG_ERROR_NONE 0
21 #define JPEG_ERROR_READING 1
22 
23 // reading
24 extern int jpeg_read_header(const char *real_filename, CFILE *img_cfp = NULL, int *w = 0, int *h = 0, int *bpp = 0, ubyte *palette = NULL);
25 extern int jpeg_read_bitmap(const char *real_filename, ubyte *image_data, ubyte *palette, int dest_size, int cf_type = CF_TYPE_ANY);
26 
27 
28 #endif // _JPEGUTILS_H
GLfloat GLfloat GLfloat GLfloat h
Definition: Glext.h:7280
Definition: cfile.h:28
int jpeg_read_bitmap(const char *real_filename, ubyte *image_data, ubyte *palette, int dest_size, int cf_type=CF_TYPE_ANY)
Definition: jpgutils.cpp:167
unsigned char ubyte
Definition: pstypes.h:62
GLubyte GLubyte GLubyte GLubyte w
Definition: Glext.h:5679
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: jpgutils.cpp:99
#define CF_TYPE_ANY
Definition: cfile.h:42