annotate subreader.h @ 3845:8feacfc6bfee

nuppelvideo is suffering too
author gabucino
date Fri, 28 Dec 2001 20:14:24 +0000
parents e8ca83c5d013
children 3c747168eb6e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
616
41d6eec69b60 clean up
pontscho
parents: 509
diff changeset
1
41d6eec69b60 clean up
pontscho
parents: 509
diff changeset
2 #ifndef __MPLAYER_SUBREADER_H
41d6eec69b60 clean up
pontscho
parents: 509
diff changeset
3 #define __MPLAYER_SUBREADER_H
258
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
4
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
5 extern int sub_uses_time;
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
6 extern int sub_errs;
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
7 extern int sub_num; // number of subtitle structs
2912
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
8
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
9 // subtitle formats
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
10 #define SUB_INVALID -1
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
11 #define SUB_MICRODVD 0
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
12 #define SUB_SUBRIP 1
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
13 #define SUB_SUBVIEWER 2
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
14 #define SUB_SAMI 3
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
15 #define SUB_VPLAYER 4
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
16 #define SUB_RT 5
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
17 #define SUB_SSA 6
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
18 #define SUB_DUNNOWHAT 7 // FIXME what format is it ?
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
19 #define SUB_MPSUB 8
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
20 #define SUB_AQTITLE 9
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
21
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
22 // One of the SUB_* constant above
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
23 extern int sub_format;
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
24
258
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
25 #define SUB_MAX_TEXT 5
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
26
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
27 typedef struct {
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
28
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
29 int lines;
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
30
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
31 unsigned long start;
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
32 unsigned long end;
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
33
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
34 char *text[SUB_MAX_TEXT];
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
35 } subtitle;
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
36
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
37 subtitle* sub_read_file (char *filename);
892
bad858a47870 implemented ~/.mplayer/sub/filename.sub stuff
arpi_esp
parents: 818
diff changeset
38 char * sub_filename(char *path, char * fname );
2050
18f4dd5d568f -Wall warnings fixed
arpi
parents: 921
diff changeset
39 void list_sub_file(subtitle* subs);
3734
e8ca83c5d013 missing exported function
pl
parents: 3543
diff changeset
40 void dump_mpsub(subtitle* subs);
3543
5a11cbf8791f some small sub bug fix
pontscho
parents: 2912
diff changeset
41 void sub_free( subtitle * subs );
616
41d6eec69b60 clean up
pontscho
parents: 509
diff changeset
42
818
16ba80b47ec4 Support for vplayer subtitles
eyck
parents: 624
diff changeset
43 #endif