Mercurial > mplayer.hg
annotate subreader.h @ 258:66017e126280
subtitles (.sub files) support
author | arpi_esp |
---|---|
date | Fri, 30 Mar 2001 03:07:45 +0000 |
parents | |
children | 1b2cd175236f |
rev | line source |
---|---|
258 | 1 |
2 extern int sub_uses_time; | |
3 extern int sub_errs; | |
4 extern int sub_num; // number of subtitle structs | |
5 extern int sub_format; // 0 for microdvd, 1 for SubRip, 2 for the third format | |
6 | |
7 #define SUB_MAX_TEXT 5 | |
8 | |
9 typedef struct { | |
10 | |
11 int lines; | |
12 | |
13 unsigned long start; | |
14 unsigned long end; | |
15 | |
16 char *text[SUB_MAX_TEXT]; | |
17 } subtitle; | |
18 | |
19 subtitle* sub_read_file (char *filename); |