Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://bitbucket.org/Coin3D/
http://www.kongsberg.com/kogt/
simage_jpeg.h
Go to the documentation of this file.
1 #ifndef SIMAGE_JPEG_H
2 #define SIMAGE_JPEG_H
3 
4 /*
5  * Copyright (c) Kongsberg Oil & Gas Technologies
6  *
7  * Permission to use, copy, modify, and distribute this software for any
8  * purpose with or without fee is hereby granted, provided that the above
9  * copyright notice and this permission notice appear in all copies.
10  *
11  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 #ifdef HAVE_CONFIG_H
21 #include <config.h>
22 #endif /* HAVE_CONFIG_H */
23 
24 #ifndef HAVE_JPEGLIB
25 #error "This file should not be used under the current configuration!"
26 #endif /* !HAVE_JPEGLIB */
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32  unsigned char * simage_jpeg_load(const char *filename,
33  int *width,
34  int *height,
35  int *numcomponents);
36  int simage_jpeg_save(const char *filename,
37  const unsigned char * bytes,
38  int width,
39  int height,
40  int numcomponents);
41 
42  int simage_jpeg_identify(const char * filename,
43  const unsigned char * header,
44  int headerlen);
45 
46  int simage_jpeg_error(char * textbuffer, int buffersize);
47 
48 #ifdef __cplusplus
49 }
50 #endif
51 
52 #endif /* SIMAGE_JPEG_H */
char * filename
Definition: stream.c:38
int simage_jpeg_identify(const char *filename, const unsigned char *header, int headerlen)
int simage_jpeg_save(const char *filename, const unsigned char *bytes, int width, int height, int numcomponents)
int simage_jpeg_error(char *textbuffer, int buffersize)
unsigned char * simage_jpeg_load(const char *filename, int *width, int *height, int *numcomponents)