Mercurial > mplayer.hg
annotate subreader.h @ 8004:30789258ca66
(de)interleave filter (can be used to split/merge an interlaced image so other non interlaced filters an be used with idividual fields)
author | michael |
---|---|
date | Thu, 31 Oct 2002 20:03:08 +0000 |
parents | eac680483e6c |
children | 2202c00001e3 |
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 |
7982
eac680483e6c
JACOSub is another subtitling format, whose specifications are at:
arpi
parents:
7460
diff
changeset
|
22 #define SUB_JACOSUB 12 |
2912 | 23 |
24 // One of the SUB_* constant above | |
25 extern int sub_format; | |
26 | |
7215
065387d29573
increased SUB_MAX_TEXT by Piotr Krukowiecki <piotr@pingu.ii.uj.edu.pl>
alex
parents:
6792
diff
changeset
|
27 #define SUB_MAX_TEXT 10 |
258 | 28 |
29 typedef struct { | |
30 | |
31 int lines; | |
32 | |
33 unsigned long start; | |
34 unsigned long end; | |
35 | |
36 char *text[SUB_MAX_TEXT]; | |
37 } subtitle; | |
38 | |
4064
3c747168eb6e
1. subs know are readed after reading AVI header so we already know fps
atlka
parents:
3734
diff
changeset
|
39 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
|
40 char * sub_filename(char *path, char * fname); |
2050 | 41 void list_sub_file(subtitle* subs); |
6792 | 42 void dump_srt(subtitle* subs, float fps); |
4064
3c747168eb6e
1. subs know are readed after reading AVI header so we already know fps
atlka
parents:
3734
diff
changeset
|
43 void dump_mpsub(subtitle* subs, float fps); |
7460 | 44 void dump_microdvd(subtitle* subs, float fps); |
3543 | 45 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
|
46 void find_sub(subtitle* subtitles,int key); |
818 | 47 #endif |