File: simage_private.h

package info (click to toggle)
simage 1.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,912 kB
  • ctags: 1,572
  • sloc: ansic: 14,231; sh: 12,587; cpp: 930; perl: 854; makefile: 617; lisp: 25
file content (41 lines) | stat: -rw-r--r-- 927 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef SIMAGE_PRIVATE_H
#define SIMAGE_PRIVATE_H

#include "simage.h"

#ifdef __cplusplus
extern "C" {
#endif

  struct simage_open_funcs {
    void * (*open_func)(const char * filename,
                        int * w, int * h, int * nc);
    int (*read_line_func)(void * opendata, int y, unsigned char * buf);
    int (*next_line_func)(void * opendata, unsigned char * buf);
    void (*close_func)(void * opendata);
  };

  struct simage_image_s {
    int width;
    int height;
    int components;
    int didalloc;
    int order;
    unsigned char * data;
    /* added for simage 1.6 */
    void * opendata;
    int oktoreadall;
    char * openfilename;
    struct simage_open_funcs openfuncs;
  };
  
  s_params * s_movie_params(s_movie * movie);

  void * s_stream_context_get(s_stream *stream);
  void s_stream_context_set(s_stream *stream, void *context);
  
#ifdef __cplusplus
}
#endif

#endif /* SIMAGE_PRIVATE_H */