original 1.0.1 release
[xwelltris.git] / src / image / image.h
blob6a3d4aba590eb17b784fbc1980f7025c84000e3c
1 #ifndef IMAGE_H
2 #define IMAGE_H
3 #ifdef HAVE_CONFIG_H
4 #include <config.h>
5 #endif
6 #include "globals.h"
7 #include <X11/Xlib.h>
8 #include <X11/Xutil.h>
9 #include "picinfo.h"
10 #include <math.h>
12 extern Display* disp;
13 extern Colormap defcmp;
14 extern int conv24;
15 extern int vclass;
16 void init_imagengine();
17 int im_convert_true_to_pseudo(PICINFO& pic,int max_colors);
18 int im_getpixels(unsigned long* pt);
19 Colormap im_get_colormap();
20 void im_freecmp(Colormap XColorMap,unsigned long *pt,int iptnum);
21 void im_populate_pallete(unsigned long* pal);
22 void im_clear_global_pal();
23 char *getpicinfo();
24 Pixmap LoadPixmap(char *fname,int type,int& l,int& h,int cmptype=CMP_AUTO);
25 Pixmap LoadPixmapFromMem(char *fname,int type,int& l,int& h,int cmptype=CMP_AUTO,int siz=0);
26 XImage *LoadXImage(char *file,int cmptype,int type);
27 XImage* encoding256(PICINFO& im,int ncol);
28 int LoadGIF(char* fname,PICINFO* pinfo);
29 int deGIF(char* fbu,PICINFO* pinfo,int fsiz);
30 extern "C" int LoadPCD(char* fname,PICINFO* pinfo);
31 extern "C" int LoadPNG(char *fname,PICINFO* pinfo);
32 int LoadXBM(char* fname,PICINFO* pinfo);
33 int LoadXPM(char* fname,PICINFO* pinfo);
34 int LoadTarga(char* fname,PICINFO* pinfo);
35 extern "C" int LoadTIFF(char* ,PICINFO*);
36 int autodetect(char*);
37 void im_reset_coding();
38 void im_set_coding();
39 extern int im_find_closest_color(XColor* orig, XColor* tocol);
40 extern Status im_AllocColor(Display* d, Colormap cmap, XColor *cl);
41 extern void (*im_coding256)(char **,int);
42 extern void im_256truecoding(char**,int);
43 extern void im_init_translation();
44 extern "C" int LoadJFIF(char *fname, PICINFO *pinfo);
45 extern "C" int LoadPCX(char *fname, PICINFO *pinfo);
46 extern int LoadBMP(char *fname, PICINFO *pinfo);
47 extern "C" void x11_create_lut(unsigned long, unsigned long, unsigned long);
48 extern "C" void set_method(int method);
51 #endif
52 //////////////////////////////////////////End of file///////////////////////////////////////////
54 /* ------------ End of file -------------- */