simage  1.8.3
Coin3D texture image library
Loading...
Searching...
No Matches
simage_private.h
Go to the documentation of this file.
1#ifndef SIMAGE_PRIVATE_H
2#define SIMAGE_PRIVATE_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#include "simage.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
27 void * (*open_func)(const char * filename,
28 int * w, int * h, int * nc);
29 int (*read_line_func)(void * opendata, int y, unsigned char * buf);
30 int (*next_line_func)(void * opendata, unsigned char * buf);
31 void (*close_func)(void * opendata);
32 };
33
35 int width;
36 int height;
39 int order;
40 unsigned char * data;
41 /* added for simage 1.6 */
42 void * opendata;
46 };
47
49
50 void * s_stream_context_get(s_stream *stream);
51 void s_stream_context_set(s_stream *stream, void *context);
52
53#ifdef __cplusplus
54}
55#endif
56
57#endif /* SIMAGE_PRIVATE_H */
Windows specific information.
void * s_stream_context_get(s_stream *stream)
Definition stream.c:213
s_params * s_movie_params(s_movie *movie)
Definition movie.c:190
void s_stream_context_set(s_stream *stream, void *context)
Definition stream.c:219
Definition simage_private.h:34
int components
Definition simage_private.h:37
char * openfilename
Definition simage_private.h:44
struct simage_open_funcs openfuncs
Definition simage_private.h:45
void * opendata
Definition simage_private.h:42
int width
Definition simage_private.h:35
int height
Definition simage_private.h:36
int oktoreadall
Definition simage_private.h:43
int didalloc
Definition simage_private.h:38
int order
Definition simage_private.h:39
unsigned char * data
Definition simage_private.h:40
Definition movie.c:43
Definition simage_private.h:26
int(* read_line_func)(void *opendata, int y, unsigned char *buf)
Definition simage_private.h:29
int(* next_line_func)(void *opendata, unsigned char *buf)
Definition simage_private.h:30
void(* close_func)(void *opendata)
Definition simage_private.h:31
Definition params.c:44
Definition stream.c:37