annotate subreader.h @ 4597:4ba62f7d04c6

yuv4mpeg output, by Robert Kesterson <robertk@robertk.com>
author arpi
date Sat, 09 Feb 2002 01:25:21 +0000
parents 3c747168eb6e
children 89c87be7a248
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
616
41d6eec69b60 clean up
pontscho
parents: 509
diff changeset
1 #ifndef __MPLAYER_SUBREADER_H
41d6eec69b60 clean up
pontscho
parents: 509
diff changeset
2 #define __MPLAYER_SUBREADER_H
258
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
3
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
4 extern int sub_uses_time;
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
5 extern int sub_errs;
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
6 extern int sub_num; // number of subtitle structs
2912
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
7
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
8 // subtitle formats
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
9 #define SUB_INVALID -1
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
10 #define SUB_MICRODVD 0
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
11 #define SUB_SUBRIP 1
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
12 #define SUB_SUBVIEWER 2
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
13 #define SUB_SAMI 3
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
14 #define SUB_VPLAYER 4
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
15 #define SUB_RT 5
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
16 #define SUB_SSA 6
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
17 #define SUB_DUNNOWHAT 7 // FIXME what format is it ?
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
18 #define SUB_MPSUB 8
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
19 #define SUB_AQTITLE 9
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
20
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
21 // One of the SUB_* constant above
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
22 extern int sub_format;
2f04b5f9a615 minor cleanups:
pl
parents: 2050
diff changeset
23
258
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
24 #define SUB_MAX_TEXT 5
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
25
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
26 typedef struct {
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
27
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
28 int lines;
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
29
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
30 unsigned long start;
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
31 unsigned long end;
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
32
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
33 char *text[SUB_MAX_TEXT];
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
34 } subtitle;
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
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
18f4dd5d568f -Wall warnings fixed
arpi
parents: 921
diff changeset
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
5a11cbf8791f some small sub bug fix
pontscho
parents: 2912
diff changeset
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
16ba80b47ec4 Support for vplayer subtitles
eyck
parents: 624
diff changeset
42 #endif