Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://coin3d.github.io
https://www.kongsberg.com/en/kogt/
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
23 extern "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 
34  struct simage_image_s {
35  int width;
36  int height;
38  int didalloc;
39  int order;
40  unsigned char * data;
41  /* added for simage 1.6 */
42  void * opendata;
44  char * openfilename;
46  };
47 
48  s_params * s_movie_params(s_movie * movie);
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 */
int(* read_line_func)(void *opendata, int y, unsigned char *buf)
Definition: simage_private.h:29
s_params * s_movie_params(s_movie *movie)
Definition: movie.c:190
int(* next_line_func)(void *opendata, unsigned char *buf)
Definition: simage_private.h:30
void * opendata
Definition: simage_private.h:42
unsigned char * data
Definition: simage_private.h:40
char * openfilename
Definition: simage_private.h:44
void s_stream_context_set(s_stream *stream, void *context)
Definition: stream.c:219
Definition: simage_private.h:34
struct simage_open_funcs openfuncs
Definition: simage_private.h:45
int width
Definition: simage_private.h:35
int didalloc
Definition: simage_private.h:38
Definition: simage_private.h:26
Windows specific information.
void(* close_func)(void *opendata)
Definition: simage_private.h:31
Definition: params.c:44
Definition: stream.c:37
int height
Definition: simage_private.h:36
void * s_stream_context_get(s_stream *stream)
Definition: stream.c:213
Definition: movie.c:43
int components
Definition: simage_private.h:37
int oktoreadall
Definition: simage_private.h:43
int order
Definition: simage_private.h:39