1 #ifndef _SIMAGE_QIMAGE_H_
2 #define _SIMAGE_QIMAGE_H_
3 
4 #include <config.h>
5 
6 #ifndef SIMAGE_QIMAGE_SUPPORT
7 #error "This file should not be used under the current configuration!"
8 #endif /* !SIMAGE_QIMAGE_SUPPORT */
9 
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15   unsigned char * simage_qimage_load(const char *filename,
16                                      int *width,
17                                      int *height,
18                                      int *numcomponents);
19 
20   char * simage_qimage_get_savers(void); /* extra function needed to create saver info */
21   int simage_qimage_save(const char *filename,
22                          const unsigned char * bytes,
23                          int width,
24                          int height,
25                          int numcomponents,
26                          const char * ext);
27 
28   int simage_qimage_identify(const char * filename,
29                              const unsigned char * header,
30                              int headerlen);
31 
32   int simage_qimage_error(char * textbuffer, int buffersize);
33 
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 
39 #endif /* _SIMAGE_QIMAGE_H_ */
40