annotate subreader.h @ 3132:ab67556586fa

runtime cpu detection rgb24toyv12 in C
author michael
date Mon, 26 Nov 2001 01:15:08 +0000
parents 2f04b5f9a615
children 5a11cbf8791f
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);
616
41d6eec69b60 clean up
pontscho
parents: 509
diff changeset
40
818
16ba80b47ec4 Support for vplayer subtitles
eyck
parents: 624
diff changeset
41 #endif