
Defines | |
| #define | ENCODING_TEXT N_("Subtitles text encoding") |
| #define | ENCODING_LONGTEXT N_("Set the encoding used in text subtitles") |
| #define | ALIGN_TEXT N_("Subtitles justification") |
| #define | ALIGN_LONGTEXT N_("Set the justification of subtitles") |
| #define | AUTODETECT_UTF8_TEXT N_("UTF-8 subtitles autodetection") |
| #define | AUTODETECT_UTF8_LONGTEXT |
| #define | FORMAT_TEXT N_("Formatted Subtitles") |
| #define | FORMAT_LONGTEXT |
Functions | |
| static int | OpenDecoder (vlc_object_t *) |
| static void | CloseDecoder (vlc_object_t *) |
| static subpicture_t * | DecodeBlock (decoder_t *, block_t **) |
| static subpicture_t * | ParseText (decoder_t *, block_t *) |
| static char * | StripTags (char *) |
| static char * | CreateHtmlSubtitle (int *pi_align, char *) |
| int | vlc_entry__main (module_t *p_module) |
| const char * | vlc_entry_license__main (void) |
| char * | GotoNextLine (char *psz_text) |
| static void | HtmlNPut (char **ppsz_html, const char *psz_text, int i_max) |
| static void | HtmlPut (char **ppsz_html, const char *psz_text) |
| static void | HtmlCopy (char **ppsz_html, char **ppsz_subtitle, const char *psz_text) |
Variables | |
| static const char *const | ppsz_encodings [] |
| static const char *const | ppsz_encoding_names [] |
| static const int | pi_justification [] = { 0, 1, 2 } |
| static const char *const | ppsz_justification_text [] |
| #define ALIGN_LONGTEXT N_("Set the justification of subtitles") |
| #define ALIGN_TEXT N_("Subtitles justification") |
| #define AUTODETECT_UTF8_LONGTEXT |
Value:
N_("This enables automatic detection of " \ "UTF-8 encoding within subtitles files.")
| #define AUTODETECT_UTF8_TEXT N_("UTF-8 subtitles autodetection") |
| #define FORMAT_LONGTEXT |
Value:
N_("Some subtitle formats allow for text formatting. " \ "VLC partly implements this, but you can choose to disable all formatting.")
| #define FORMAT_TEXT N_("Formatted Subtitles") |
| static void CloseDecoder | ( | vlc_object_t * | p_this | ) | [static] |
References ssa_style_t::font_style, i, decoder_sys_t::i_images, decoder_sys_t::i_ssa_styles, decoder_sys_t::iconv_handle, image_attach_t::p_pic, decoder_t::p_sys, p_sys, picture_Release(), decoder_sys_t::pp_images, decoder_sys_t::pp_ssa_styles, image_attach_t::psz_filename, text_style_t::psz_fontname, ssa_style_t::psz_stylename, TAB_CLEAN, and vlc_iconv_close().
| static char * CreateHtmlSubtitle | ( | int * | pi_align, | |
| char * | psz_subtitle | |||
| ) | [static] |
References HtmlCopy(), HtmlNPut(), HtmlPut(), NO_BREAKING_SPACE, psz_tag, strncasecmp(), SUBPICTURE_ALIGN_BOTTOM, SUBPICTURE_ALIGN_LEFT, SUBPICTURE_ALIGN_RIGHT, and SUBPICTURE_ALIGN_TOP.
Referenced by ParseText().
| static subpicture_t * DecodeBlock | ( | decoder_t * | p_dec, | |
| block_t ** | pp_block | |||
| ) | [static] |
References BLOCK_FLAG_CORRUPTED, BLOCK_FLAG_DISCONTINUITY, block_Release(), block_t::i_flags, and ParseText().
| char* GotoNextLine | ( | char * | psz_text | ) |
Referenced by ParseSSAHeader().
| static void HtmlCopy | ( | char ** | ppsz_html, | |
| char ** | ppsz_subtitle, | |||
| const char * | psz_text | |||
| ) | [static] |
| static void HtmlNPut | ( | char ** | ppsz_html, | |
| const char * | psz_text, | |||
| int | i_max | |||
| ) | [static] |
| static void HtmlPut | ( | char ** | ppsz_html, | |
| const char * | psz_text | |||
| ) | [static] |
Referenced by CreateHtmlSubtitle(), and HtmlCopy().
| static int OpenDecoder | ( | vlc_object_t * | p_this | ) | [static] |
References decoder_sys_t::b_ass, decoder_sys_t::b_autodetect_utf8, DecodeBlock(), decoder_t::fmt_in, decoder_t::fmt_out, decoder_sys_t::i_align, es_format_t::i_cat, es_format_t::i_codec, es_format_t::i_extra, decoder_sys_t::i_images, decoder_sys_t::i_original_height, decoder_sys_t::i_original_width, decoder_sys_t::i_ssa_styles, decoder_sys_t::iconv_handle, msg_Dbg, msg_Err, decoder_t::p_sys, p_sys, ParseSSAHeader(), decoder_t::pf_decode_sub, decoder_sys_t::pp_images, decoder_sys_t::pp_ssa_styles, subs_format_t::psz_encoding, SPU_ES, strcasecmp(), strdup(), es_format_t::subs, TAB_INIT, var_CreateGetBool, var_CreateGetInteger, var_CreateGetNonEmptyString, VLC_CODEC_ITU_T140, VLC_CODEC_SSA, VLC_CODEC_SUBT, VLC_EGENERIC, VLC_ENOMEM, vlc_iconv_open(), vlc_pgettext(), and VLC_SUCCESS.
| static subpicture_t * ParseText | ( | decoder_t * | p_dec, | |
| block_t * | p_block | |||
| ) | [static] |
References subpicture_t::b_absolute, decoder_sys_t::b_autodetect_utf8, subpicture_t::b_ephemer, CreateHtmlSubtitle(), decoder_DeleteSubpicture(), decoder_NewSubpicture(), EnsureUTF8(), decoder_t::fmt_in, decoder_sys_t::i_align, subpicture_region_t::i_align, block_t::i_buffer, video_format_t::i_chroma, es_format_t::i_codec, video_format_t::i_height, block_t::i_length, decoder_sys_t::i_original_height, subpicture_t::i_original_picture_height, subpicture_t::i_original_picture_width, decoder_sys_t::i_original_width, block_t::i_pts, subpicture_t::i_start, subpicture_t::i_stop, video_format_t::i_width, subpicture_region_t::i_x, video_format_t::i_x_offset, subpicture_region_t::i_y, video_format_t::i_y_offset, decoder_sys_t::iconv_handle, IsUTF8(), msg_Dbg, msg_Err, msg_Warn, block_t::p_buffer, subpicture_t::p_region, decoder_t::p_sys, p_sys, ParseSSAString(), subpicture_region_t::psz_html, subpicture_region_t::psz_text, StripTags(), SUBPICTURE_ALIGN_BOTTOM, subpicture_region_New(), var_CreateGetBool, VLC_CODEC_SSA, VLC_CODEC_TEXT, vlc_iconv(), VLC_TS_INVALID, and xmalloc().
Referenced by DecodeBlock().
| static char * StripTags | ( | char * | psz_subtitle | ) | [static] |
| int vlc_entry__main | ( | module_t * | p_module | ) |
| const char* vlc_entry_license__main | ( | void | ) |
const int pi_justification[] = { 0, 1, 2 } [static] |
const char* const ppsz_encoding_names[] [static] |
const char* const ppsz_encodings[] [static] |
const char* const ppsz_justification_text[] [static] |
1.5.6