Mercurial > mplayer.hg
annotate subreader.h @ 4713:ad8b41562877
use mem2agpcpy_pic()
author | michael |
---|---|
date | Fri, 15 Feb 2002 01:00:26 +0000 |
parents | 3c747168eb6e |
children | 89c87be7a248 |
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 | |
20 | |
21 // One of the SUB_* constant above | |
22 extern int sub_format; | |
23 | |
258 | 24 #define SUB_MAX_TEXT 5 |
25 | |
26 typedef struct { | |
27 | |
28 int lines; | |
29 | |
30 unsigned long start; | |
31 unsigned long end; | |
32 | |
33 char *text[SUB_MAX_TEXT]; | |
34 } subtitle; | |
35 | |
4064
3c747168eb6e
1. subs know are readed after reading AVI header so we already know fps
atlka
parents:
3734
diff
changeset
|
36 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
|
37 char * sub_filename(char *path, char * fname); |
2050 | 38 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
|
39 void dump_mpsub(subtitle* subs, float fps); |
3543 | 40 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
|
41 void find_sub(subtitle* subtitles,int key); |
818 | 42 #endif |