xine-lib 1.2.13-20230125hg15249
|
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <ctype.h>
#include <xine/xine_internal.h>
#include <xine/xineutils.h>
#include <xine/demux.h>
#include "sputext_demuxer.h"
Data Structures | |
struct | subtitle_t |
struct | demux_sputext_t |
Macros | |
#define | LOG_MODULE "demux_sputext" |
#define | LOG_VERBOSE |
#define | ERR (void *)-1 |
#define | SUB_MAX_TEXT 5 |
#define | SUB_BUFSIZE 1024 |
#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 ?*/ |
#define ERR (void *)-1 |
#define FORMAT_AQTITLE 9 |
Referenced by sub_autodetect().
#define FORMAT_JACOBSUB 10 |
Referenced by sub_autodetect().
#define FORMAT_MICRODVD 0 |
Referenced by sub_autodetect().
#define FORMAT_MPL2 13 /*Mplayer sub 2 ?*/ |
Referenced by sub_autodetect().
#define FORMAT_MPSUB 8 |
Referenced by sub_autodetect().
#define FORMAT_PJS 7 |
Referenced by sub_autodetect().
#define FORMAT_RT 5 |
Referenced by sub_autodetect().
#define FORMAT_SAMI 3 |
Referenced by sub_autodetect().
#define FORMAT_SSA 6 /* Sub Station Alpha */ |
Referenced by sub_autodetect().
#define FORMAT_SUBRIP 1 |
Referenced by sub_autodetect().
#define FORMAT_SUBRIP09 12 |
Referenced by sub_autodetect().
#define FORMAT_SUBVIEWER 2 |
Referenced by sub_autodetect().
#define FORMAT_SUBVIEWER2 11 |
Referenced by sub_autodetect().
#define FORMAT_UNKNOWN -1 |
Referenced by sub_autodetect(), and sub_read_file().
#define FORMAT_VPLAYER 4 |
Referenced by sub_autodetect().
#define LINE_LEN 1000 |
Referenced by sub_autodetect(), sub_read_line_aqt(), sub_read_line_jacobsub(), sub_read_line_microdvd(), sub_read_line_mpl2(), sub_read_line_mpsub(), sub_read_line_pjs(), sub_read_line_rt(), sub_read_line_sami(), sub_read_line_ssa(), sub_read_line_subrip(), sub_read_line_subrip09(), sub_read_line_subviewer(), sub_read_line_subviewer2(), and sub_read_line_vplayer().
#define LINE_LEN_QUOT "1000" |
Referenced by sub_read_line_jacobsub(), and sub_read_line_microdvd().
#define LOG_MODULE "demux_sputext" |
#define LOG_VERBOSE |
#define SUB_BUFSIZE 1024 |
Referenced by demux_sputext_next(), read_line_from_input(), and sub_read_line_subrip().
#define SUB_MAX_TEXT 5 |
|
static |
References _x_freep().
Referenced by open_demux_plugin().
|
static |
References DEMUX_CAP_NOCAP.
Referenced by open_demux_plugin().
|
static |
References DEMUX_OPTIONAL_DATA_SPULANG, DEMUX_OPTIONAL_SUCCESS, and DEMUX_OPTIONAL_UNSUPPORTED.
Referenced by open_demux_plugin().
|
static |
Referenced by open_demux_plugin().
|
static |
Referenced by open_demux_plugin().
|
static |
References BUF_FLAG_SPECIAL, BUF_SPECIAL_CHARSET_ENCODING, BUF_SPU_TEXT, buf_element_s::content, buf_element_s::decoder_flags, buf_element_s::decoder_info, buf_element_s::decoder_info_ptr, subtitle_t::end, subtitle_t::lines, buf_element_s::pts, subtitle_t::start, SUB_BUFSIZE, subtitle_t::text, and buf_element_s::type.
Referenced by demux_sputext_send_chunk().
|
static |
References _x_demux_control_newpts(), _x_demux_flush_engine(), DEMUX_OK, and lprintf.
Referenced by open_demux_plugin().
|
static |
References DEMUX_FINISHED, and demux_sputext_next().
Referenced by open_demux_plugin().
|
static |
|
static |
References subtitle_t::lines, and subtitle_t::text.
Referenced by sub_read_file().
|
static |
Referenced by sub_read_line_jacobsub(), sub_read_line_mpsub(), and sub_readtext().
void * init_sputext_demux_class | ( | xine_t * | xine, |
const void * | data ) |
References _, xine_s::config, demux_plugin_s::dispose, N_, NULL, open_demux_plugin(), demux_class_s::open_plugin, and config_values_s::register_num.
|
static |
References xine_stream_s::content_detection_method, demux_sputext_dispose(), demux_sputext_get_capabilities(), demux_sputext_get_optional_data(), demux_sputext_get_status(), demux_sputext_get_stream_length(), demux_sputext_seek(), demux_sputext_send_chunk(), demux_sputext_send_headers(), input(), INPUT_CAP_SEEKABLE, lprintf, METHOD_BY_MRL, METHOD_EXPLICIT, NULL, input_plugin_s::seek, sub_read_file(), xine_stream_s::xine, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by init_sputext_demux_class().
|
static |
References input(), NULL, SUB_BUFSIZE, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by sub_autodetect(), sub_read_line_aqt(), sub_read_line_jacobsub(), sub_read_line_microdvd(), sub_read_line_mpl2(), sub_read_line_mpsub(), sub_read_line_pjs(), sub_read_line_rt(), sub_read_line_sami(), sub_read_line_ssa(), sub_read_line_subrip(), sub_read_line_subrip09(), sub_read_line_subviewer(), sub_read_line_subviewer2(), and sub_read_line_vplayer().
|
static |
References FORMAT_AQTITLE, FORMAT_JACOBSUB, FORMAT_MICRODVD, FORMAT_MPL2, FORMAT_MPSUB, FORMAT_PJS, FORMAT_RT, FORMAT_SAMI, FORMAT_SSA, FORMAT_SUBRIP, FORMAT_SUBRIP09, FORMAT_SUBVIEWER, FORMAT_SUBVIEWER2, FORMAT_UNKNOWN, FORMAT_VPLAYER, LINE_LEN, read_line_from_input(), XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by sub_read_file().
|
static |
References cfg_entry_s::config, detect_utf8(), subtitle_t::end, ERR, FORMAT_UNKNOWN, input(), config_values_s::lookup_entry, NULL, cfg_entry_s::num_value, subtitle_t::start, sub_autodetect(), sub_read_line_aqt(), sub_read_line_jacobsub(), sub_read_line_microdvd(), sub_read_line_mpl2(), sub_read_line_mpsub(), sub_read_line_pjs(), sub_read_line_rt(), sub_read_line_sami(), sub_read_line_ssa(), sub_read_line_subrip(), sub_read_line_subrip09(), sub_read_line_subviewer(), sub_read_line_subviewer2(), sub_read_line_vplayer(), XINE_VERBOSITY_DEBUG, XINE_VERBOSITY_LOG, and xprintf.
Referenced by open_demux_plugin().
|
static |
References subtitle_t::end, LINE_LEN, subtitle_t::lines, NULL, read_line_from_input(), subtitle_t::start, sub_readtext(), and subtitle_t::text.
Referenced by sub_read_file().
|
static |
References subtitle_t::end, eol(), ERR, LINE_LEN, LINE_LEN_QUOT, subtitle_t::lines, NULL, read_line_from_input(), subtitle_t::start, SUB_MAX_TEXT, subtitle_t::text, trail_space(), XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by sub_read_file().
|
static |
References subtitle_t::end, ERR, LINE_LEN, LINE_LEN_QUOT, subtitle_t::lines, NULL, read_line_from_input(), subtitle_t::start, SUB_MAX_TEXT, sub_readtext(), subtitle_t::text, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by sub_read_file().
|
static |
References subtitle_t::end, ERR, LINE_LEN, subtitle_t::lines, NULL, read_line_from_input(), subtitle_t::start, SUB_MAX_TEXT, sub_readtext(), subtitle_t::text, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by sub_read_file().
|
static |
References subtitle_t::end, eol(), LINE_LEN, subtitle_t::lines, NULL, read_line_from_input(), subtitle_t::start, SUB_MAX_TEXT, subtitle_t::text, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by sub_read_file().
|
static |
References subtitle_t::end, ERR, LINE_LEN, subtitle_t::lines, NULL, read_line_from_input(), subtitle_t::start, and subtitle_t::text.
Referenced by sub_read_file().
|
static |
References subtitle_t::end, ERR, LINE_LEN, subtitle_t::lines, NULL, read_line_from_input(), subtitle_t::start, SUB_MAX_TEXT, sub_readtext(), subtitle_t::text, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by sub_read_file().
|
static |
References subtitle_t::end, LINE_LEN, subtitle_t::lines, NULL, read_line_from_input(), subtitle_t::start, subtitle_t::text, and trail_space().
Referenced by sub_read_file().
|
static |
References subtitle_t::end, LINE_LEN, subtitle_t::lines, NULL, read_line_from_input(), subtitle_t::start, SUB_MAX_TEXT, and subtitle_t::text.
Referenced by sub_read_file().
|
static |
References subtitle_t::end, ERR, LINE_LEN, subtitle_t::lines, NULL, read_line_from_input(), subtitle_t::start, SUB_BUFSIZE, SUB_MAX_TEXT, subtitle_t::text, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by sub_read_file().
|
static |
References subtitle_t::end, ERR, LINE_LEN, subtitle_t::lines, NULL, read_line_from_input(), subtitle_t::start, SUB_MAX_TEXT, sub_readtext(), subtitle_t::text, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by sub_read_file().
|
static |
References subtitle_t::end, ERR, LINE_LEN, subtitle_t::lines, NULL, read_line_from_input(), subtitle_t::start, SUB_MAX_TEXT, and subtitle_t::text.
Referenced by sub_read_file().
|
static |
References ERR, LINE_LEN, subtitle_t::lines, NULL, read_line_from_input(), subtitle_t::start, SUB_MAX_TEXT, and subtitle_t::text.
Referenced by sub_read_file().
|
static |
References subtitle_t::end, ERR, LINE_LEN, subtitle_t::lines, NULL, read_line_from_input(), subtitle_t::start, SUB_MAX_TEXT, sub_readtext(), subtitle_t::text, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by sub_read_file().
|
static |
|
inlinestatic |
Referenced by sub_read_line_jacobsub(), and sub_read_line_sami().