simage  1.8.3
Coin3D texture image library
Loading...
Searching...
No Matches
simage_cgimage.h
Go to the documentation of this file.
1#ifndef _SIMAGE_CGIMAGE_H_
2#define _SIMAGE_CGIMAGE_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#ifdef __cplusplus
25extern "C" {
26#endif
27
28 int simage_cgimage_error(char * textbuffer, int buffersize);
29
30 int simage_cgimage_identify(const char * filename,
31 const unsigned char * header,
32 int headerlen);
33
34 unsigned char * simage_cgimage_load(const char *filename,
35 int *width,
36 int *height,
37 int *numcomponents);
38
39 char * simage_cgimage_get_savers(void);
40
41 int simage_cgimage_save(const char *filename,
42 const unsigned char * bytes,
43 int width,
44 int height,
45 int numcomponents,
46 const char * ext);
47
48#ifdef __cplusplus
49}
50#endif
51
52#endif /* _SIMAGE_CGIMAGE_H_ */
int simage_cgimage_save(const char *filename, const unsigned char *bytes, int width, int height, int numcomponents, const char *ext)
Definition simage_cgimage.c:217
unsigned char * simage_cgimage_load(const char *filename, int *width, int *height, int *numcomponents)
Definition simage_cgimage.c:99
char * simage_cgimage_get_savers(void)
Definition simage_cgimage.c:153
int simage_cgimage_identify(const char *filename, const unsigned char *header, int headerlen)
Definition simage_cgimage.c:87
int simage_cgimage_error(char *textbuffer, int buffersize)
Definition simage_cgimage.c:74