MythTV  master
Macros | Functions
xine_demux_sputext.cpp File Reference
#include <cctype>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "xine_demux_sputext.h"
Include dependency graph for xine_demux_sputext.cpp:

Go to the source code of this file.

Macros

#define LOG_MODULE   "demux_sputext"
 
#define LOG_VERBOSE
 
#define ERR   ((void *)-1)
 
#define LINE_LEN   1000
 
#define LINE_LEN_QUOT   "1000"
 
#define FORMAT_UNKNOWN   (-1)
 
#define FORMAT_MICRODVD   0
 
#define FORMAT_SUBRIP   1
 
#define FORMAT_SUBVIEWER   2
 
#define FORMAT_SAMI   3
 
#define FORMAT_VPLAYER   4
 
#define FORMAT_RT   5
 
#define FORMAT_SSA   6 /* Sub Station Alpha */
 
#define FORMAT_PJS   7
 
#define FORMAT_MPSUB   8
 
#define FORMAT_AQTITLE   9
 
#define FORMAT_JACOBSUB   10
 
#define FORMAT_SUBVIEWER2   11
 
#define FORMAT_SUBRIP09   12
 
#define FORMAT_MPL2   13 /*Mplayer sub 2 ?*/
 

Functions

static bool eol (char p)
 
static void trail_space (char *s)
 
static char * read_line_from_input (demux_sputext_t *demuxstr, char *line, off_t len)
 
static subtitle_tsub_read_line_sami (demux_sputext_t *demuxstr, subtitle_t *current)
 
static char * sub_readtext (char *source, char **dest)
 
static subtitle_tsub_read_line_microdvd (demux_sputext_t *demuxstr, subtitle_t *current)
 
static subtitle_tsub_read_line_subviewer (demux_sputext_t *demuxstr, subtitle_t *current)
 
static subtitle_tsub_read_line_subrip (demux_sputext_t *demuxstr, subtitle_t *current)
 
static subtitle_tsub_read_line_vplayer (demux_sputext_t *demuxstr, subtitle_t *current)
 
static subtitle_tsub_read_line_rt (demux_sputext_t *demuxstr, subtitle_t *current)
 
static subtitle_tsub_read_line_ssa (demux_sputext_t *demuxstr, subtitle_t *current)
 
static subtitle_tsub_read_line_pjs (demux_sputext_t *demuxstr, subtitle_t *current)
 
static subtitle_tsub_read_line_mpsub (demux_sputext_t *demuxstr, subtitle_t *current)
 
static subtitle_tsub_read_line_aqt (demux_sputext_t *demuxstr, subtitle_t *current)
 
static subtitle_tsub_read_line_jacobsub (demux_sputext_t *demuxstr, subtitle_t *current)
 
static subtitle_tsub_read_line_subviewer2 (demux_sputext_t *demuxstr, subtitle_t *current)
 
static subtitle_tsub_read_line_subrip09 (demux_sputext_t *demuxstr, subtitle_t *current)
 
static subtitle_tsub_read_line_mpl2 (demux_sputext_t *demuxstr, subtitle_t *current)
 
static int sub_autodetect (demux_sputext_t *demuxstr)
 
subtitle_tsub_read_file (demux_sputext_t *demuxstr)
 

Macro Definition Documentation

◆ LOG_MODULE

#define LOG_MODULE   "demux_sputext"

Definition at line 45 of file xine_demux_sputext.cpp.

◆ LOG_VERBOSE

#define LOG_VERBOSE

Definition at line 46 of file xine_demux_sputext.cpp.

◆ ERR

#define ERR   ((void *)-1)

Definition at line 51 of file xine_demux_sputext.cpp.

◆ LINE_LEN

#define LINE_LEN   1000

Definition at line 52 of file xine_demux_sputext.cpp.

◆ LINE_LEN_QUOT

#define LINE_LEN_QUOT   "1000"

Definition at line 53 of file xine_demux_sputext.cpp.

◆ FORMAT_UNKNOWN

#define FORMAT_UNKNOWN   (-1)

Definition at line 59 of file xine_demux_sputext.cpp.

◆ FORMAT_MICRODVD

#define FORMAT_MICRODVD   0

Definition at line 60 of file xine_demux_sputext.cpp.

◆ FORMAT_SUBRIP

#define FORMAT_SUBRIP   1

Definition at line 61 of file xine_demux_sputext.cpp.

◆ FORMAT_SUBVIEWER

#define FORMAT_SUBVIEWER   2

Definition at line 62 of file xine_demux_sputext.cpp.

◆ FORMAT_SAMI

#define FORMAT_SAMI   3

Definition at line 63 of file xine_demux_sputext.cpp.

◆ FORMAT_VPLAYER

#define FORMAT_VPLAYER   4

Definition at line 64 of file xine_demux_sputext.cpp.

◆ FORMAT_RT

#define FORMAT_RT   5

Definition at line 65 of file xine_demux_sputext.cpp.

◆ FORMAT_SSA

#define FORMAT_SSA   6 /* Sub Station Alpha */

Definition at line 66 of file xine_demux_sputext.cpp.

◆ FORMAT_PJS

#define FORMAT_PJS   7

Definition at line 67 of file xine_demux_sputext.cpp.

◆ FORMAT_MPSUB

#define FORMAT_MPSUB   8

Definition at line 68 of file xine_demux_sputext.cpp.

◆ FORMAT_AQTITLE

#define FORMAT_AQTITLE   9

Definition at line 69 of file xine_demux_sputext.cpp.

◆ FORMAT_JACOBSUB

#define FORMAT_JACOBSUB   10

Definition at line 70 of file xine_demux_sputext.cpp.

◆ FORMAT_SUBVIEWER2

#define FORMAT_SUBVIEWER2   11

Definition at line 71 of file xine_demux_sputext.cpp.

◆ FORMAT_SUBRIP09

#define FORMAT_SUBRIP09   12

Definition at line 72 of file xine_demux_sputext.cpp.

◆ FORMAT_MPL2

#define FORMAT_MPL2   13 /*Mplayer sub 2 ?*/

Definition at line 73 of file xine_demux_sputext.cpp.

Function Documentation

◆ eol()

static bool eol ( char  p)
static

◆ trail_space()

static void trail_space ( char *  s)
inlinestatic

Definition at line 79 of file xine_demux_sputext.cpp.

Referenced by sub_read_line_jacobsub(), and sub_read_line_sami().

◆ read_line_from_input()

static char* read_line_from_input ( demux_sputext_t demuxstr,
char *  line,
off_t  len 
)
static

◆ sub_read_line_sami()

static subtitle_t* sub_read_line_sami ( demux_sputext_t demuxstr,
subtitle_t current 
)
static

Definition at line 143 of file xine_demux_sputext.cpp.

Referenced by sub_read_file().

◆ sub_readtext()

static char* sub_readtext ( char *  source,
char **  dest 
)
static

◆ sub_read_line_microdvd()

static subtitle_t* sub_read_line_microdvd ( demux_sputext_t demuxstr,
subtitle_t current 
)
static

Definition at line 242 of file xine_demux_sputext.cpp.

Referenced by sub_read_file().

◆ sub_read_line_subviewer()

static subtitle_t* sub_read_line_subviewer ( demux_sputext_t demuxstr,
subtitle_t current 
)
static

Definition at line 275 of file xine_demux_sputext.cpp.

Referenced by sub_read_file().

◆ sub_read_line_subrip()

static subtitle_t* sub_read_line_subrip ( demux_sputext_t demuxstr,
subtitle_t current 
)
static

Definition at line 314 of file xine_demux_sputext.cpp.

Referenced by sub_read_file().

◆ sub_read_line_vplayer()

static subtitle_t* sub_read_line_vplayer ( demux_sputext_t demuxstr,
subtitle_t current 
)
static

Definition at line 405 of file xine_demux_sputext.cpp.

Referenced by sub_read_file().

◆ sub_read_line_rt()

static subtitle_t* sub_read_line_rt ( demux_sputext_t demuxstr,
subtitle_t current 
)
static

Definition at line 460 of file xine_demux_sputext.cpp.

Referenced by sub_read_file().

◆ sub_read_line_ssa()

static subtitle_t* sub_read_line_ssa ( demux_sputext_t demuxstr,
subtitle_t current 
)
static

Definition at line 511 of file xine_demux_sputext.cpp.

Referenced by sub_read_file().

◆ sub_read_line_pjs()

static subtitle_t* sub_read_line_pjs ( demux_sputext_t demuxstr,
subtitle_t current 
)
static

Definition at line 583 of file xine_demux_sputext.cpp.

Referenced by sub_read_file().

◆ sub_read_line_mpsub()

static subtitle_t* sub_read_line_mpsub ( demux_sputext_t demuxstr,
subtitle_t current 
)
static

Definition at line 621 of file xine_demux_sputext.cpp.

Referenced by sub_read_file().

◆ sub_read_line_aqt()

static subtitle_t* sub_read_line_aqt ( demux_sputext_t demuxstr,
subtitle_t current 
)
static

Definition at line 667 of file xine_demux_sputext.cpp.

Referenced by sub_read_file().

◆ sub_read_line_jacobsub()

static subtitle_t* sub_read_line_jacobsub ( demux_sputext_t demuxstr,
subtitle_t current 
)
static

Definition at line 700 of file xine_demux_sputext.cpp.

Referenced by sub_read_file().

◆ sub_read_line_subviewer2()

static subtitle_t* sub_read_line_subviewer2 ( demux_sputext_t demuxstr,
subtitle_t current 
)
static

Definition at line 904 of file xine_demux_sputext.cpp.

Referenced by sub_read_file().

◆ sub_read_line_subrip09()

static subtitle_t* sub_read_line_subrip09 ( demux_sputext_t demuxstr,
subtitle_t current 
)
static

Definition at line 936 of file xine_demux_sputext.cpp.

Referenced by sub_read_file().

◆ sub_read_line_mpl2()

static subtitle_t* sub_read_line_mpl2 ( demux_sputext_t demuxstr,
subtitle_t current 
)
static

Definition at line 973 of file xine_demux_sputext.cpp.

Referenced by sub_read_file().

◆ sub_autodetect()

static int sub_autodetect ( demux_sputext_t demuxstr)
static

Definition at line 1005 of file xine_demux_sputext.cpp.

Referenced by sub_read_file().

◆ sub_read_file()

subtitle_t* sub_read_file ( demux_sputext_t demuxstr)

Definition at line 1095 of file xine_demux_sputext.cpp.

Referenced by TextSubtitleParser::LoadSubtitles().