annotate subreader.h @ 692:14a2f35921a0

allow playing from stdin
author arpi_esp
date Thu, 03 May 2001 23:32:56 +0000
parents 44b764d348a0
children 16ba80b47ec4
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
624
44b764d348a0 added support for SAMI subtitle support (.smi)
laaz
parents: 616
diff changeset
8 extern int sub_format; // 0 for microdvd
44b764d348a0 added support for SAMI subtitle support (.smi)
laaz
parents: 616
diff changeset
9 // 1 for SubRip
44b764d348a0 added support for SAMI subtitle support (.smi)
laaz
parents: 616
diff changeset
10 // 2 for the third format
44b764d348a0 added support for SAMI subtitle support (.smi)
laaz
parents: 616
diff changeset
11 // 3 for SAMI (smi)
258
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
12
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
13 #define SUB_MAX_TEXT 5
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
14
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
15 typedef struct {
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
16
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
17 int lines;
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
18
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
19 unsigned long start;
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
20 unsigned long end;
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
21
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
22 char *text[SUB_MAX_TEXT];
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
23 } subtitle;
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
24
66017e126280 subtitles (.sub files) support
arpi_esp
parents:
diff changeset
25 subtitle* sub_read_file (char *filename);
509
1b2cd175236f add sub autodetect
pontscho
parents: 258
diff changeset
26 char * sub_filename( char * fname );
616
41d6eec69b60 clean up
pontscho
parents: 509
diff changeset
27
41d6eec69b60 clean up
pontscho
parents: 509
diff changeset
28 #endif