Changed: #825 Remove all warnings when compiling Ryzom
parent
fc8c26ff9f
commit
0795a61516
@ -1,71 +1,71 @@
|
||||
#ifndef _PIC_PRIVATE_H_
|
||||
#define _PIC_PRIVATE_H_
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------------------------------------- */
|
||||
|
||||
typedef struct PIC_PICTURE
|
||||
{
|
||||
unsigned long ID;
|
||||
unsigned long Width;
|
||||
unsigned long Height;
|
||||
unsigned long Depth;
|
||||
unsigned char *pDatas;
|
||||
unsigned char *pPal;
|
||||
struct PIC_PICTURE *Next;
|
||||
} PIC_PICTURE;
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
/*
|
||||
* JPG
|
||||
*/
|
||||
|
||||
|
||||
extern unsigned long Pic_JPG_Read( unsigned char *FileName,
|
||||
unsigned char **ppPal, unsigned char **ppDatas,
|
||||
unsigned long *w, unsigned long *h);
|
||||
|
||||
extern unsigned long Pic_JPG_Write( unsigned char *FileName,
|
||||
unsigned long Qual,
|
||||
unsigned char *pDatas,
|
||||
unsigned long w, unsigned long h);
|
||||
/*
|
||||
* TGA
|
||||
*/
|
||||
extern unsigned long Pic_TGA_Read( unsigned char *FileName,
|
||||
unsigned char **ppPal, unsigned char **ppDatas,
|
||||
unsigned long *pWidth, unsigned long *pHeight,
|
||||
unsigned long *pDepth);
|
||||
extern unsigned long Pic_TGA_Write( unsigned char *FileName,
|
||||
unsigned char *pPal,unsigned char *pDatas,
|
||||
unsigned long w, unsigned long h, unsigned long d);
|
||||
/*
|
||||
* BMP
|
||||
*/
|
||||
extern unsigned long Pic_BMP_Read( unsigned char *FileName,
|
||||
unsigned char **ppPal, unsigned char **ppDatas,
|
||||
unsigned long *pWidth, unsigned long *pHeight,
|
||||
unsigned long *pDepth);
|
||||
|
||||
extern unsigned long Pic_BMP_Write( unsigned char *FileName,
|
||||
unsigned char *pPal,unsigned char *pDatas,
|
||||
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);
|
||||
extern void Pic_SetError(unsigned char *msg, ...);
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------------------------------------- */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#ifndef _PIC_PRIVATE_H_
|
||||
#define _PIC_PRIVATE_H_
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------------------------------------- */
|
||||
|
||||
typedef struct PIC_PICTURE
|
||||
{
|
||||
unsigned long ID;
|
||||
unsigned long Width;
|
||||
unsigned long Height;
|
||||
unsigned long Depth;
|
||||
unsigned char *pDatas;
|
||||
unsigned char *pPal;
|
||||
struct PIC_PICTURE *Next;
|
||||
} PIC_PICTURE;
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
/*
|
||||
* JPG
|
||||
*/
|
||||
|
||||
|
||||
extern unsigned long Pic_JPG_Read( unsigned char *FileName,
|
||||
unsigned char **ppPal, unsigned char **ppDatas,
|
||||
unsigned long *w, unsigned long *h);
|
||||
|
||||
extern unsigned long Pic_JPG_Write( unsigned char *FileName,
|
||||
unsigned long Qual,
|
||||
unsigned char *pDatas,
|
||||
unsigned long w, unsigned long h);
|
||||
/*
|
||||
* TGA
|
||||
*/
|
||||
extern unsigned long Pic_TGA_Read( unsigned char *FileName,
|
||||
unsigned char **ppPal, unsigned char **ppDatas,
|
||||
unsigned long *pWidth, unsigned long *pHeight,
|
||||
unsigned long *pDepth);
|
||||
extern unsigned long Pic_TGA_Write( unsigned char *FileName,
|
||||
unsigned char *pPal,unsigned char *pDatas,
|
||||
unsigned long w, unsigned long h, unsigned long d);
|
||||
/*
|
||||
* BMP
|
||||
*/
|
||||
extern unsigned long Pic_BMP_Read( unsigned char *FileName,
|
||||
unsigned char **ppPal, unsigned char **ppDatas,
|
||||
unsigned long *pWidth, unsigned long *pHeight,
|
||||
unsigned long *pDepth);
|
||||
|
||||
extern unsigned long Pic_BMP_Write( const char *FileName,
|
||||
unsigned char *pPal,unsigned char *pDatas,
|
||||
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);
|
||||
extern void Pic_SetError(unsigned char *msg, ...);
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------------------------------------- */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue