File: simage_qimage.h

package info (click to toggle)
simage 1.6.1-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,504 kB
  • ctags: 707
  • sloc: sh: 10,863; ansic: 6,315; makefile: 310; cpp: 177
file content (39 lines) | stat: -rw-r--r-- 1,101 bytes parent folder | download | duplicates (3)
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 /* !HAVE_JPEGLIB */


#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_JPEG_H_ */