MythTV  master
xine_demux_sputext.h
Go to the documentation of this file.
1 #ifndef XINE_DEMUX_SPUTEXT_H
2 #define XINE_DEMUX_SPUTEXT_H
3 
4 #include "ringbuffer.h"
5 
6 #define SUB_BUFSIZE 1024
7 #define SUB_MAX_TEXT 5
8 #define MAX_TIMEOUT 4
9 
10 #define DEBUG_XINE_DEMUX_SPUTEXT 0
11 
12 typedef struct {
13 
14  int lines;
15 
16  long start;
17  long end;
18 
19  char *text[SUB_MAX_TEXT];
20 } subtitle_t;
21 
22 typedef struct {
23 
24  char *rbuffer_text;
27 
28  int status;
29 
30  char buf[SUB_BUFSIZE];
33 
35 
36  int uses_time;
37  int errs;
39  int num; /* number of subtitle structs */
40  int cur; /* current subtitle */
41  int format; /* constants see below */
42  char next_line[SUB_BUFSIZE]; /* a buffer for next line read from file */
43 
45 
46 
48 
49 #endif
#define SUB_MAX_TEXT
long end
Ending time in msec or starting frame.
int lines
Count of text lines in this subtitle set.
#define SUB_BUFSIZE
#define off_t
subtitle_t * subtitles
subtitle_t * sub_read_file(demux_sputext_t *)
long start
Starting time in msec or starting frame.