simage  1.8.3
Coin3D texture image library
Loading...
Searching...
No Matches
simage_tiff.h
Go to the documentation of this file.
1#ifndef _SIMAGE_TIFF_H_
2#define _SIMAGE_TIFF_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_TIFFLIB
25#error "This file should not be used under the current configuration!"
26#endif /* !HAVE_TIFFLIB */
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32 unsigned char * simage_tiff_load(const char * filename,
33 int * width,
34 int * height,
35 int * numComponents);
36 int simage_tiff_save(const char * filename,
37 const unsigned char * bytes,
38 int width,
39 int height,
40 int numcomponents);
41 int simage_tiff_identify(const char * filename,
42 const unsigned char * header,
43 int headerlen);
44
45 int simage_tiff_error(char * buffer, int bufferlen);
46
47 /* new for simage 1.6 */
48 void * simage_tiff_open(const char * filename,
49 int * width,
50 int * height,
51 int * numcomponents);
52 void simage_tiff_close(void * opendata);
53 int simage_tiff_read_line(void * opendata, int y, unsigned char * buf);
54
55#ifdef __cplusplus
56}
57#endif
58
59#endif /* _SIMAGE_TIFF_H_ */
int simage_tiff_error(char *buffer, int bufferlen)
Definition simage_tiff.c:49
void simage_tiff_close(void *opendata)
Definition simage_tiff.c:617
void * simage_tiff_open(const char *filename, int *width, int *height, int *numcomponents)
Definition simage_tiff.c:496
unsigned char * simage_tiff_load(const char *filename, int *width, int *height, int *numComponents)
Definition simage_tiff.c:209
int simage_tiff_save(const char *filename, const unsigned char *bytes, int width, int height, int numcomponents)
Definition simage_tiff.c:424
int simage_tiff_identify(const char *filename, const unsigned char *header, int headerlen)
Definition simage_tiff.c:191
int simage_tiff_read_line(void *opendata, int y, unsigned char *buf)
Definition simage_tiff.c:626