File: simage_qimage.h

package info (click to toggle)
simage 1.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,912 kB
  • ctags: 1,572
  • sloc: ansic: 14,231; sh: 12,587; cpp: 930; perl: 854; makefile: 617; lisp: 25
file content (39 lines) | stat: -rw-r--r-- 1,112 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef _SIMAGE_QIMAGE_H_
#define _SIMAGE_QIMAGE_H_

#include <config.h>

#ifndef SIMAGE_QIMAGE_SUPPORT
#error "This file should not be used under the current configuration!"
#endif /* !SIMAGE_QIMAGE_SUPPORT */


#ifdef __cplusplus
extern "C" {
#endif

  unsigned char * simage_qimage_load(const char *filename,
                                     int *width,
                                     int *height,
                                     int *numcomponents);
  
  char * simage_qimage_get_savers(void); /* extra function needed to create saver info */
  int simage_qimage_save(const char *filename,
                         const unsigned char * bytes,
                         int width,
                         int height,
                         int numcomponents,
                         const char * ext);
  
  int simage_qimage_identify(const char * filename,
                             const unsigned char * header,
                             int headerlen);
  
  int simage_qimage_error(char * textbuffer, int buffersize);
  

#ifdef __cplusplus
}
#endif

#endif /* _SIMAGE_QIMAGE_H_ */