616
|
1
|
|
2 #ifndef __MPLAYER_SUBREADER_H
|
|
3 #define __MPLAYER_SUBREADER_H
|
258
|
4
|
|
5 extern int sub_uses_time;
|
|
6 extern int sub_errs;
|
|
7 extern int sub_num; // number of subtitle structs
|
2912
|
8
|
|
9 // subtitle formats
|
|
10 #define SUB_INVALID -1
|
|
11 #define SUB_MICRODVD 0
|
|
12 #define SUB_SUBRIP 1
|
|
13 #define SUB_SUBVIEWER 2
|
|
14 #define SUB_SAMI 3
|
|
15 #define SUB_VPLAYER 4
|
|
16 #define SUB_RT 5
|
|
17 #define SUB_SSA 6
|
|
18 #define SUB_DUNNOWHAT 7 // FIXME what format is it ?
|
|
19 #define SUB_MPSUB 8
|
|
20 #define SUB_AQTITLE 9
|
|
21
|
|
22 // One of the SUB_* constant above
|
|
23 extern int sub_format;
|
|
24
|
258
|
25 #define SUB_MAX_TEXT 5
|
|
26
|
|
27 typedef struct {
|
|
28
|
|
29 int lines;
|
|
30
|
|
31 unsigned long start;
|
|
32 unsigned long end;
|
|
33
|
|
34 char *text[SUB_MAX_TEXT];
|
|
35 } subtitle;
|
|
36
|
|
37 subtitle* sub_read_file (char *filename);
|
892
|
38 char * sub_filename(char *path, char * fname );
|
2050
|
39 void list_sub_file(subtitle* subs);
|
3734
|
40 void dump_mpsub(subtitle* subs);
|
3543
|
41 void sub_free( subtitle * subs );
|
616
|
42
|
818
|
43 #endif
|