simage  1.8.3
Coin3D texture image library
Loading...
Searching...
No Matches
simage_qimage.h
Go to the documentation of this file.
1#ifndef _SIMAGE_QIMAGE_H_
2#define _SIMAGE_QIMAGE_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 SIMAGE_QIMAGE_SUPPORT
25#error "This file should not be used under the current configuration!"
26#endif /* !SIMAGE_QIMAGE_SUPPORT */
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32 unsigned char * simage_qimage_load(const char *filename,
33 int *width,
34 int *height,
35 int *numcomponents);
36
37 char * simage_qimage_get_savers(void); /* extra function needed to create saver info */
38 int simage_qimage_save(const char *filename,
39 const unsigned char * bytes,
40 int width,
41 int height,
42 int numcomponents,
43 const char * ext);
44
45 int simage_qimage_identify(const char * filename,
46 const unsigned char * header,
47 int headerlen);
48
49 int simage_qimage_error(char * textbuffer, int buffersize);
50
51#ifdef __cplusplus
52}
53#endif
54
55#endif /* _SIMAGE_QIMAGE_H_ */
int simage_qimage_identify(const char *filename, const unsigned char *header, int headerlen)
Definition simage_qimage.cpp:67
char * simage_qimage_get_savers(void)
Definition simage_qimage.cpp:188
int simage_qimage_save(const char *filename, const unsigned char *bytes, int width, int height, int numcomponents, const char *ext)
Definition simage_qimage.cpp:232
unsigned char * simage_qimage_load(const char *filename, int *width, int *height, int *numcomponents)
Definition simage_qimage.cpp:79
int simage_qimage_error(char *textbuffer, int buffersize)
Definition simage_qimage.cpp:47