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)
|
258
|
12
|
|
13 #define SUB_MAX_TEXT 5
|
|
14
|
|
15 typedef struct {
|
|
16
|
|
17 int lines;
|
|
18
|
|
19 unsigned long start;
|
|
20 unsigned long end;
|
|
21
|
|
22 char *text[SUB_MAX_TEXT];
|
|
23 } subtitle;
|
|
24
|
|
25 subtitle* sub_read_file (char *filename);
|
509
|
26 char * sub_filename( char * fname );
|
616
|
27
|
|
28 #endif |