|
|
@ -17,12 +17,12 @@ typedef struct PIC_PICTURE
|
|
|
|
struct PIC_PICTURE *Next;
|
|
|
|
struct PIC_PICTURE *Next;
|
|
|
|
} PIC_PICTURE;
|
|
|
|
} PIC_PICTURE;
|
|
|
|
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
/* ---------------------------------------------------------------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
/*
|
|
|
|
// JPG
|
|
|
|
* JPG
|
|
|
|
//
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extern unsigned long Pic_JPG_Read( unsigned char *FileName,
|
|
|
|
extern unsigned long Pic_JPG_Read( unsigned char *FileName,
|
|
|
@ -33,9 +33,9 @@ extern unsigned long Pic_JPG_Write( unsigned char *FileName,
|
|
|
|
unsigned long Qual,
|
|
|
|
unsigned long Qual,
|
|
|
|
unsigned char *pDatas,
|
|
|
|
unsigned char *pDatas,
|
|
|
|
unsigned long w, unsigned long h);
|
|
|
|
unsigned long w, unsigned long h);
|
|
|
|
//
|
|
|
|
/*
|
|
|
|
// TGA
|
|
|
|
* TGA
|
|
|
|
//
|
|
|
|
*/
|
|
|
|
extern unsigned long Pic_TGA_Read( unsigned char *FileName,
|
|
|
|
extern unsigned long Pic_TGA_Read( unsigned char *FileName,
|
|
|
|
unsigned char **ppPal, unsigned char **ppDatas,
|
|
|
|
unsigned char **ppPal, unsigned char **ppDatas,
|
|
|
|
unsigned long *pWidth, unsigned long *pHeight,
|
|
|
|
unsigned long *pWidth, unsigned long *pHeight,
|
|
|
@ -43,9 +43,9 @@ extern unsigned long Pic_TGA_Read( unsigned char *FileName,
|
|
|
|
extern unsigned long Pic_TGA_Write( unsigned char *FileName,
|
|
|
|
extern unsigned long Pic_TGA_Write( unsigned char *FileName,
|
|
|
|
unsigned char *pPal,unsigned char *pDatas,
|
|
|
|
unsigned char *pPal,unsigned char *pDatas,
|
|
|
|
unsigned long w, unsigned long h, unsigned long d);
|
|
|
|
unsigned long w, unsigned long h, unsigned long d);
|
|
|
|
//
|
|
|
|
/*
|
|
|
|
// BMP
|
|
|
|
* BMP
|
|
|
|
//
|
|
|
|
*/
|
|
|
|
extern unsigned long Pic_BMP_Read( unsigned char *FileName,
|
|
|
|
extern unsigned long Pic_BMP_Read( unsigned char *FileName,
|
|
|
|
unsigned char **ppPal, unsigned char **ppDatas,
|
|
|
|
unsigned char **ppPal, unsigned char **ppDatas,
|
|
|
|
unsigned long *pWidth, unsigned long *pHeight,
|
|
|
|
unsigned long *pWidth, unsigned long *pHeight,
|
|
|
@ -54,16 +54,16 @@ extern unsigned long Pic_BMP_Read( unsigned char *FileName,
|
|
|
|
extern unsigned long Pic_BMP_Write( unsigned char *FileName,
|
|
|
|
extern unsigned long Pic_BMP_Write( unsigned char *FileName,
|
|
|
|
unsigned char *pPal,unsigned char *pDatas,
|
|
|
|
unsigned char *pPal,unsigned char *pDatas,
|
|
|
|
unsigned long w, unsigned long h, unsigned long d);
|
|
|
|
unsigned long w, unsigned long h, unsigned long d);
|
|
|
|
//
|
|
|
|
/*
|
|
|
|
// System
|
|
|
|
* System
|
|
|
|
//
|
|
|
|
*/
|
|
|
|
extern void* Pic_malloc(unsigned long size);
|
|
|
|
extern void* Pic_malloc(unsigned long size);
|
|
|
|
extern void* Pic_calloc(unsigned long count, unsigned long size);
|
|
|
|
extern void* Pic_calloc(unsigned long count, unsigned long size);
|
|
|
|
extern void Pic_free(void *memblock);
|
|
|
|
extern void Pic_free(void *memblock);
|
|
|
|
extern unsigned long Pic__msize(void *memblock);
|
|
|
|
extern unsigned long Pic__msize(void *memblock);
|
|
|
|
extern void Pic_SetError(unsigned char *msg, ...);
|
|
|
|
extern void Pic_SetError(unsigned char *msg, ...);
|
|
|
|
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
/* ---------------------------------------------------------------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
}
|
|
|
|