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
|
624
|
8 extern int sub_format; // 0 for microdvd
|
|
9 // 1 for SubRip
|
|
10 // 2 for the third format
|
|
11 // 3 for SAMI (smi)
|
818
|
12 // 4 for vplayer format
|
921
|
13 // other stuff in subreader.c
|
258
|
14 #define SUB_MAX_TEXT 5
|
|
15
|
|
16 typedef struct {
|
|
17
|
|
18 int lines;
|
|
19
|
|
20 unsigned long start;
|
|
21 unsigned long end;
|
|
22
|
|
23 char *text[SUB_MAX_TEXT];
|
|
24 } subtitle;
|
|
25
|
|
26 subtitle* sub_read_file (char *filename);
|
892
|
27 char * sub_filename(char *path, char * fname );
|
2050
|
28 void list_sub_file(subtitle* subs);
|
616
|
29
|
818
|
30 #endif
|