JD2022-TU1/main/extern/CaptureJpeg/Source/INTERFCE.h

52 lines
1.5 KiB
C

//-----------------------------------------------------------------------------
// ---------------------
// File ....: interfce.h
// ---------------------
// Author...: Gus J Grubba
// Date ....: October 1995
// Descr....: C Interface to JPEG library
//
// History .: Oct, 27 1995 - Started
//
//-----------------------------------------------------------------------------
typedef struct _jpegdata {
unsigned char *ptr;
int width;
int height;
void *output_file;
int aritcoding;
int CCIR601sampling;
int smoothingfactor;
int quality;
void *hWnd;
int status;
int components;
} JPEGDATA;
#ifdef PSX2_TARGET
#pragma pack(0)
#endif
// ucJPEG_INPOUT_FILE is the address of the file buffer.
// lJPEG_INPOUT_FILE_LENGHT is the lenght of the file.
// you have an example in texfile & in texframe.
#if defined(_WII_)
extern unsigned char *ucJPEG_INPOUT_FILE;
extern int lJPEG_INPOUT_FILE_LENGHT;
#elif defined(__GNUC__)
extern __thread unsigned char *ucJPEG_INPOUT_FILE;
extern __thread int lJPEG_INPOUT_FILE_LENGHT;
#else
extern __declspec(thread) unsigned char *ucJPEG_INPOUT_FILE;
extern __declspec(thread) int lJPEG_INPOUT_FILE_LENGHT;
#endif
void JpegWrite( JPEGDATA *data );
void JpegInfo( JPEGDATA *data );
void JpegRead( JPEGDATA *data );
extern void Invert24YAndRB(unsigned char *dst, unsigned char *src, unsigned int w, unsigned int h);
//-- interfce.c ---------------------------------------------------------------