Mercurial > mplayer.hg
annotate subreader.h @ 6411:2093575b97b1
add FreeBSD default dir
author | nexus |
---|---|
date | Thu, 13 Jun 2002 09:47:22 +0000 |
parents | 86162cb34bc9 |
children | 0d08931fb3c3 |
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 |
6076
eff64fb1ffea
patch fixes broken detecniou of AQTitle subtiles and adds support for subtitles created by subrip 0.9 - by Jiri.Svoboda@seznam.cz
arpi
parents:
6012
diff
changeset
|
21 #define SUB_SUBRIP09 11 |
2912 | 22 |
23 // One of the SUB_* constant above | |
24 extern int sub_format; | |
25 | |
258 | 26 #define SUB_MAX_TEXT 5 |
27 | |
28 typedef struct { | |
29 | |
30 int lines; | |
31 | |
32 unsigned long start; | |
33 unsigned long end; | |
34 | |
35 char *text[SUB_MAX_TEXT]; | |
36 } subtitle; | |
37 | |
4064
3c747168eb6e
1. subs know are readed after reading AVI header so we already know fps
atlka
parents:
3734
diff
changeset
|
38 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
|
39 char * sub_filename(char *path, char * fname); |
2050 | 40 void list_sub_file(subtitle* subs); |
6208 | 41 void dump_srt(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 dump_mpsub(subtitle* subs, float fps); |
3543 | 43 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
|
44 void find_sub(subtitle* subtitles,int key); |
818 | 45 #endif |