Mercurial > mplayer.hg
annotate subreader.h @ 6041:4090fefb7922
skin-en.html --> skin-pl.html
author | nell |
---|---|
date | Fri, 10 May 2002 11:37:35 +0000 |
parents | 89c87be7a248 |
children | eff64fb1ffea |
rev | line source |
---|---|
616 | 1 #ifndef __MPLAYER_SUBREADER_H |
2 #define __MPLAYER_SUBREADER_H | |
258 | 3 |
4 extern int sub_uses_time; | |
5 extern int sub_errs; | |
6 extern int sub_num; // number of subtitle structs | |
2912 | 7 |
8 // subtitle formats | |
9 #define SUB_INVALID -1 | |
10 #define SUB_MICRODVD 0 | |
11 #define SUB_SUBRIP 1 | |
12 #define SUB_SUBVIEWER 2 | |
13 #define SUB_SAMI 3 | |
14 #define SUB_VPLAYER 4 | |
15 #define SUB_RT 5 | |
16 #define SUB_SSA 6 | |
17 #define SUB_DUNNOWHAT 7 // FIXME what format is it ? | |
18 #define SUB_MPSUB 8 | |
19 #define SUB_AQTITLE 9 | |
6012 | 20 #define SUB_SUBVIEWER2 10 |
2912 | 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 | |
4064
3c747168eb6e
1. subs know are readed after reading AVI header so we already know fps
atlka
parents:
3734
diff
changeset
|
37 subtitle* sub_read_file (char *filename, float pts); |
3c747168eb6e
1. subs know are readed after reading AVI header so we already know fps
atlka
parents:
3734
diff
changeset
|
38 char * sub_filename(char *path, char * fname); |
2050 | 39 void list_sub_file(subtitle* subs); |
4064
3c747168eb6e
1. subs know are readed after reading AVI header so we already know fps
atlka
parents:
3734
diff
changeset
|
40 void dump_mpsub(subtitle* subs, float fps); |
3543 | 41 void sub_free( subtitle * subs ); |
4064
3c747168eb6e
1. subs know are readed after reading AVI header so we already know fps
atlka
parents:
3734
diff
changeset
|
42 void find_sub(subtitle* subtitles,int key); |
818 | 43 #endif |