40 lines
930 B
C
40 lines
930 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
|
|
|
|
int 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)
|
|
|
|
|
|
#ifdef __cplusplus
|
|
};
|
|
#endif
|
|
|
|
|
|
|
|
#endif // #ifndef TR_JPEG_INTERFACE_H
|
|
|
|
|
|
////////////////// eof //////////////////
|
|
|