1 #ifndef _VBI_DATA_H
2 #define _VBI_DATA_H 1
3
4 #ifdef HAVE_ZVBI
5 #include <libzvbi.h>
6
7 #define VBI_MAX_SUBPAGES 64
8
9 struct vbi_state {
10 vbi_decoder *dec;
11 vbi_capture *cap;
12 vbi_raw_decoder *par;
13 vbi_sliced *sliced;
14 uint8_t *raw;
15 char *err;
16 int lines,fd,sim,debug;
17 double ts;
18 struct timeval tv;
19 };
20
21 struct vbi_rect {
22 int x1,x2,y1,y2;
23 };
24
25 enum vbi_txt_colors {
26 VBI_NOCOLOR = 0,
27 VBI_ANSICOLOR = 1,
28 };
29
30 extern char *vbi_colors[8];
31 extern struct vbi_rect vbi_fullrect;
32
33 struct vbi_state* vbi_open(char *dev, int debug, int sim);
34 int vbi_hasdata(struct vbi_state *vbi);
35 void vbi_close(struct vbi_state *vbi);
36 void vbi_dump_event(struct vbi_event *ev, void *user);
37 int vbi_to_utf8(struct vbi_char *src, unsigned char *dest, int n);
38 int vbi_calc_page(int pagenr, int offset);
39 int vbi_calc_subpage(struct vbi_decoder *dec, int pgno, int subno, int offset);
40 int vbi_export_txt(char *dest, char *charset, int size,
41 struct vbi_page *pg, struct vbi_rect *rect,
42 enum vbi_txt_colors);
43 void vbi_find_subtitle(struct vbi_page *pg, struct vbi_rect *rect);
44
45 #endif /* HAVE_ZVBI */
46 #endif /* _VBI_DATA_H */
47
|
This page was automatically generated by the
LXR engine.
|