File: simage_jpeg.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 (30 lines) | stat: -rw-r--r-- 843 bytes parent folder | download | duplicates (5)
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
#ifndef SIMAGE_JPEG_H
#define SIMAGE_JPEG_H

/* This is an internal header file to the simage library. */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */

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

unsigned char * simage_jpeg_load(const char *filename,
				 int *width,
				 int *height,
				 int *numcomponents);
int simage_jpeg_save(const char *filename,
                     const unsigned char * bytes,
                     int width,
                     int height,
                     int numcomponents);

int simage_jpeg_identify(const char * filename,
                         const unsigned char * header,
                         int headerlen);

int simage_jpeg_error(char * textbuffer, int buffersize);

#endif /* SIMAGE_JPEG_H */