jedioutcast/code/renderer/tr_jpeg_interface.h
2013-04-04 09:52:42 -05:00

44 lines
1,000 B
C

// Filename:- tr_jpeg_interface.h
//
#pragma warning (disable: 4100) //unreferenced formal parameter
#pragma warning (disable: 4127) //conditional expression is constant
#pragma warning (disable: 4244) //int to unsigned short
#ifndef TR_JPEG_INTERFACE_H
#define TR_JPEG_INTERFACE_H
#ifdef __cplusplus
extern "C"
{
#endif
#ifndef LPCSTR
typedef const char * LPCSTR;
#endif
void LoadJPG( const char *filename, unsigned char **pic, int *width, int *height );
void SaveJPG( const char *filename, int quality, int image_width, int image_height, unsigned char *image_buffer);
void JPG_ErrorThrow(LPCSTR message);
void JPG_MessageOut(LPCSTR message);
#define ERROR_STRING_NO_RETURN(message) JPG_ErrorThrow(message)
#define MESSAGE_STRING(message) JPG_MessageOut(message)
void *JPG_Malloc( int iSize );
void JPG_Free( void *pvObject);
#ifdef __cplusplus
};
#endif
#endif // #ifndef TR_JPEG_INTERFACE_H
////////////////// eof //////////////////