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
|
258
|
13
|
|
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);
|
509
|
27 char * sub_filename( char * fname );
|
616
|
28
|
818
|
29 #endif
|