2010-05-06 00:08:41 +00:00
|
|
|
#ifndef _PIC_PRIVATE_H_
|
|
|
|
#define _PIC_PRIVATE_H_
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
typedef struct PIC_PICTURE
|
|
|
|
{
|
|
|
|
unsigned long ID;
|
|
|
|
unsigned long Width;
|
|
|
|
unsigned long Height;
|
|
|
|
unsigned long Depth;
|
2010-09-25 13:53:28 +00:00
|
|
|
char *pDatas;
|
|
|
|
char *pPal;
|
2010-05-06 00:08:41 +00:00
|
|
|
struct PIC_PICTURE *Next;
|
|
|
|
} PIC_PICTURE;
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// JPG
|
|
|
|
//
|
|
|
|
|
|
|
|
|
2010-09-25 13:53:28 +00:00
|
|
|
extern unsigned long Pic_JPG_Read( const char *FileName,
|
|
|
|
char **ppPal, char **ppDatas,
|
2010-05-06 00:08:41 +00:00
|
|
|
unsigned long *w, unsigned long *h);
|
|
|
|
|
2010-09-25 13:53:28 +00:00
|
|
|
extern unsigned long Pic_JPG_Write( const char *FileName,
|
2010-05-06 00:08:41 +00:00
|
|
|
unsigned long Qual,
|
2010-09-25 13:53:28 +00:00
|
|
|
char *pDatas,
|
2010-05-06 00:08:41 +00:00
|
|
|
unsigned long w, unsigned long h);
|
|
|
|
//
|
|
|
|
// TGA
|
|
|
|
//
|
2010-09-25 13:53:28 +00:00
|
|
|
extern unsigned long Pic_TGA_Read( const char *FileName,
|
|
|
|
char **ppPal, char **ppDatas,
|
2010-05-06 00:08:41 +00:00
|
|
|
unsigned long *pWidth, unsigned long *pHeight,
|
|
|
|
unsigned long *pDepth);
|
2010-09-25 13:53:28 +00:00
|
|
|
extern unsigned long Pic_TGA_Write( const char *FileName,
|
|
|
|
char *pPal, char *pDatas,
|
2010-05-06 00:08:41 +00:00
|
|
|
unsigned long w, unsigned long h, unsigned long d);
|
|
|
|
//
|
|
|
|
// BMP
|
|
|
|
//
|
2010-09-25 13:53:28 +00:00
|
|
|
extern unsigned long Pic_BMP_Read( const char *FileName,
|
|
|
|
char **ppPal, char **ppDatas,
|
2010-05-06 00:08:41 +00:00
|
|
|
unsigned long *pWidth, unsigned long *pHeight,
|
|
|
|
unsigned long *pDepth);
|
|
|
|
|
2010-09-25 13:53:28 +00:00
|
|
|
extern unsigned long Pic_BMP_Write( const char *FileName,
|
|
|
|
char *pPal, char *pDatas,
|
2010-05-06 00:08:41 +00:00
|
|
|
unsigned long w, unsigned long h, unsigned long d);
|
|
|
|
//
|
|
|
|
// System
|
|
|
|
//
|
|
|
|
extern void* Pic_malloc(unsigned long size);
|
|
|
|
extern void* Pic_calloc(unsigned long count, unsigned long size);
|
|
|
|
extern void Pic_free(void *memblock);
|
|
|
|
extern unsigned long Pic__msize(void *memblock);
|
2010-09-25 13:53:28 +00:00
|
|
|
extern void Pic_SetError(const char *msg, ...);
|
2010-05-06 00:08:41 +00:00
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#endif
|