
Functions | |
| static int | OpenDecoder (vlc_object_t *) |
| static void | CloseDecoder (vlc_object_t *) |
| static subpicture_t * | DecodeBlock (decoder_t *, block_t **) |
| static char * | CreatePlainText (char *) |
| static int | ParseImageAttachments (decoder_t *p_dec) |
| static subpicture_t * | ParseText (decoder_t *, block_t *) |
| static void | ParseUSFHeader (decoder_t *) |
| static subpicture_region_t * | ParseUSFString (decoder_t *, char *) |
| static subpicture_region_t * | LoadEmbeddedImage (decoder_t *p_dec, const char *psz_filename, int i_transparent_color) |
| int | vlc_entry__main (module_t *p_module) |
| const char * | vlc_entry_license__main (void) |
| static char * | GrabAttributeValue (const char *psz_attribute, const char *psz_tag_start) |
| static ssa_style_t * | ParseStyle (decoder_sys_t *p_sys, char *psz_subtitle) |
| static int | ParsePositionAttributeList (char *psz_subtitle, int *i_align, int *i_x, int *i_y) |
| static void | SetupPositions (subpicture_region_t *p_region, char *psz_subtitle) |
| static subpicture_region_t * | CreateTextRegion (decoder_t *p_dec, char *psz_subtitle, int i_len, int i_sys_align) |
| static void | ParseUSFHeaderTags (decoder_t *p_dec, xml_reader_t *p_xml_reader) |
| static char * | StripTags (char *psz_subtitle) |
| 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, 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, and TAB_CLEAN.
| static char * CreatePlainText | ( | char * | psz_subtitle | ) | [static] |
| static subpicture_region_t* CreateTextRegion | ( | decoder_t * | p_dec, | |
| char * | psz_subtitle, | |||
| int | i_len, | |||
| int | i_sys_align | |||
| ) | [static] |
References ssa_style_t::font_style, i, ssa_style_t::i_align, subpicture_region_t::i_align, video_format_t::i_chroma, video_format_t::i_height, ssa_style_t::i_margin_h, ssa_style_t::i_margin_v, decoder_sys_t::i_ssa_styles, 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, msg_Dbg, subpicture_region_t::p_next, subpicture_region_t::p_style, decoder_t::p_sys, p_sys, ParseStyle(), decoder_sys_t::pp_ssa_styles, subpicture_region_t::psz_html, ssa_style_t::psz_stylename, subpicture_region_t::psz_text, SetupPositions(), strcasecmp(), strndup(), SUBPICTURE_ALIGN_BOTTOM, subpicture_region_Delete(), subpicture_region_New(), text_style_Duplicate(), and VLC_CODEC_TEXT.
Referenced by ParseUSFString().
| static subpicture_t * DecodeBlock | ( | decoder_t * | p_dec, | |
| block_t ** | pp_block | |||
| ) | [static] |
References block_Release(), and ParseText().
| static char* GrabAttributeValue | ( | const char * | psz_attribute, | |
| const char * | psz_tag_start | |||
| ) | [static] |
References strcasestr(), and strndup().
Referenced by ParsePositionAttributeList(), ParseStyle(), and ParseUSFString().
| static subpicture_region_t * LoadEmbeddedImage | ( | decoder_t * | p_dec, | |
| const char * | psz_filename, | |||
| int | i_transparent_color | |||
| ) | [static] |
References subpicture_region_t::fmt, picture_t::format, video_format_t::i_chroma, video_format_t::i_height, decoder_sys_t::i_images, video_format_t::i_sar_den, video_format_t::i_sar_num, video_format_t::i_visible_height, video_format_t::i_visible_width, video_format_t::i_width, msg_Err, image_attach_t::p_pic, subpicture_region_t::p_picture, decoder_t::p_sys, p_sys, picture_CopyPixels(), decoder_sys_t::pp_images, image_attach_t::psz_filename, subpicture_region_New(), and VLC_CODEC_YUVA.
Referenced by ParseUSFString().
| 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, decoder_t::p_sys, p_sys, ParseImageAttachments(), ParseUSFHeader(), decoder_t::pf_decode_sub, decoder_sys_t::pp_images, decoder_sys_t::pp_ssa_styles, SPU_ES, TAB_INIT, var_CreateGetBool, var_CreateGetInteger, VLC_CODEC_USF, VLC_EGENERIC, VLC_ENOMEM, and VLC_SUCCESS.
| static int ParseImageAttachments | ( | decoder_t * | p_dec | ) | [static] |
References block_New, decoder_GetInputAttachments(), video_format_t::i_chroma, input_attachment_t::i_data, decoder_sys_t::i_images, image_HandlerCreate, image_HandlerDelete(), image_Mime2Fourcc(), image_Read, module_exists(), block_t::p_buffer, input_attachment_t::p_data, image_handler_t::p_parent, image_attach_t::p_pic, decoder_t::p_sys, p_sys, decoder_sys_t::pp_images, image_attach_t::psz_filename, input_attachment_t::psz_mime, input_attachment_t::psz_name, vlc_value_t::psz_string, strdup(), TAB_APPEND, var_Create, var_Destroy, var_Set, VLC_CODEC_YUVA, VLC_EGENERIC, vlc_input_attachment_Delete(), VLC_SUCCESS, VLC_VAR_DOINHERIT, and VLC_VAR_MODULE.
Referenced by OpenDecoder().
| static int ParsePositionAttributeList | ( | char * | psz_subtitle, | |
| int * | i_align, | |||
| int * | i_x, | |||
| int * | i_y | |||
| ) | [static] |
| static ssa_style_t* ParseStyle | ( | decoder_sys_t * | p_sys, | |
| char * | psz_subtitle | |||
| ) | [static] |
References GrabAttributeValue(), i, decoder_sys_t::i_ssa_styles, decoder_sys_t::pp_ssa_styles, and ssa_style_t::psz_stylename.
Referenced by CreateTextRegion().
| static subpicture_t * ParseText | ( | decoder_t * | p_dec, | |
| block_t * | p_block | |||
| ) | [static] |
References subpicture_t::b_absolute, subpicture_t::b_ephemer, decoder_NewSubpicture(), EnsureUTF8(), block_t::i_buffer, 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, msg_Err, msg_Warn, block_t::p_buffer, subpicture_t::p_region, decoder_t::p_sys, p_sys, ParseUSFString(), strndup(), and VLC_TS_INVALID.
| static void ParseUSFHeader | ( | decoder_t * | p_dec | ) | [static] |
References decoder_t::fmt_in, es_format_t::i_extra, es_format_t::p_extra, ParseUSFHeaderTags(), strcasecmp(), stream_Delete(), stream_MemoryNew, VLC_OBJECT, xml_Create, xml_Delete(), xml_ReaderCreate, xml_ReaderDelete, xml_ReaderName, and xml_ReaderRead.
Referenced by OpenDecoder().
| static void ParseUSFHeaderTags | ( | decoder_t * | p_dec, | |
| xml_reader_t * | p_xml_reader | |||
| ) | [static] |
References ssa_style_t::font_style, i, ssa_style_t::i_align, text_style_t::i_font_alpha, text_style_t::i_font_color, text_style_t::i_font_size, text_style_t::i_karaoke_background_alpha, text_style_t::i_karaoke_background_color, ssa_style_t::i_margin_h, ssa_style_t::i_margin_percent_h, ssa_style_t::i_margin_percent_v, ssa_style_t::i_margin_v, decoder_sys_t::i_original_height, decoder_sys_t::i_original_width, text_style_t::i_outline_alpha, text_style_t::i_outline_color, text_style_t::i_outline_width, text_style_t::i_shadow_alpha, text_style_t::i_shadow_color, text_style_t::i_shadow_width, text_style_t::i_spacing, decoder_sys_t::i_ssa_styles, text_style_t::i_style_flags, i_value, decoder_t::p_sys, p_sys, decoder_sys_t::pp_ssa_styles, text_style_t::psz_fontname, psz_name, ssa_style_t::psz_stylename, psz_value, strcasecmp(), strdup(), STYLE_BOLD, STYLE_ITALIC, STYLE_UNDERLINE, SUBPICTURE_ALIGN_BOTTOM, SUBPICTURE_ALIGN_LEFT, SUBPICTURE_ALIGN_RIGHT, SUBPICTURE_ALIGN_TOP, TAB_APPEND, text_style_Copy(), VLC_SUCCESS, XML_READER_ENDELEM, XML_READER_NONE, XML_READER_STARTELEM, XML_READER_TEXT, xml_ReaderName, xml_ReaderNextAttr, xml_ReaderNodeType, xml_ReaderRead, and xml_ReaderValue.
Referenced by ParseUSFHeader().
| static subpicture_region_t * ParseUSFString | ( | decoder_t * | p_dec, | |
| char * | psz_subtitle | |||
| ) | [static] |
References CreatePlainText(), CreateTextRegion(), GrabAttributeValue(), decoder_sys_t::i_align, LoadEmbeddedImage(), subpicture_region_t::p_next, decoder_t::p_sys, p_sys, subpicture_region_t::psz_html, subpicture_region_t::psz_text, SetupPositions(), strcasestr(), strncasecmp(), strndup(), and var_CreateGetBool.
Referenced by ParseText().
| static void SetupPositions | ( | subpicture_region_t * | p_region, | |
| char * | psz_subtitle | |||
| ) | [static] |
| static char* StripTags | ( | char * | psz_subtitle | ) | [static] |
References strncasecmp().
| int vlc_entry__main | ( | module_t * | p_module | ) |
| const char* vlc_entry_license__main | ( | void | ) |
1.5.6