1 #ifndef SIMAGE_PRIVATE_H 2 #define SIMAGE_PRIVATE_H 3 4 #include "simage.h" 5 6 #ifdef __cplusplus 7 extern "C" { 8 #endif 9 10 struct simage_open_funcs { 11 void * (*open_func)(const char * filename, 12 int * w, int * h, int * nc); 13 int (*read_line_func)(void * opendata, int y, unsigned char * buf); 14 int (*next_line_func)(void * opendata, unsigned char * buf); 15 void (*close_func)(void * opendata); 16 }; 17 18 struct simage_image_s { 19 int width; 20 int height; 21 int components; 22 int didalloc; 23 int order; 24 unsigned char * data; 25 /* added for simage 1.6 */ 26 void * opendata; 27 int oktoreadall; 28 char * openfilename; 29 struct simage_open_funcs openfuncs; 30 }; 31 32 s_params * s_movie_params(s_movie * movie); 33 34 void * s_stream_context_get(s_stream *stream); 35 void s_stream_context_set(s_stream *stream, void *context); 36 37 #ifdef __cplusplus 38 } 39 #endif 40 41 #endif /* SIMAGE_PRIVATE_H */ 42