
Data Structures | |
| struct | ass_handle_t |
| struct | decoder_sys_t |
| struct | subpicture_updater_sys_t |
| struct | rectangle_t |
Defines | |
| #define | ASS_Renderer ass_renderer_t |
| #define | ASS_Library ass_library_t |
| #define | ASS_Track ass_track_t |
| #define | ASS_Image ass_image_t |
Functions | |
| static int | Create (vlc_object_t *) |
| static void | Destroy (vlc_object_t *) |
| int | vlc_entry__main (module_t *p_module) |
| const char * | vlc_entry_license__main (void) |
| static subpicture_t * | DecodeBlock (decoder_t *, block_t **) |
| static ass_handle_t * | AssHandleHold (decoder_t *p_dec) |
| static void | AssHandleRelease (ass_handle_t *) |
| static void | DecSysRelease (decoder_sys_t *p_sys) |
| static void | DecSysHold (decoder_sys_t *p_sys) |
| static int | SubpictureValidate (subpicture_t *, bool, const video_format_t *, bool, const video_format_t *, mtime_t) |
| static void | SubpictureUpdate (subpicture_t *, const video_format_t *, const video_format_t *, mtime_t) |
| static void | SubpictureDestroy (subpicture_t *) |
| static int | BuildRegions (rectangle_t *p_region, int i_max_region, ass_image_t *p_img_list, int i_width, int i_height) |
| static void | RegionDraw (subpicture_region_t *p_region, ass_image_t *p_img) |
| static rectangle_t | r_create (int x0, int y0, int x1, int y1) |
| static rectangle_t | r_img (const ass_image_t *p_img) |
| static void | r_add (rectangle_t *r, const rectangle_t *n) |
| static int | r_surface (const rectangle_t *r) |
| static bool | r_overlap (const rectangle_t *a, const rectangle_t *b, int i_dx, int i_dy) |
Variables | |
| static vlc_mutex_t | libass_lock = PTHREAD_MUTEX_INITIALIZER |
| #define ASS_Image ass_image_t |
Referenced by BuildRegions(), SubpictureUpdate(), and SubpictureValidate().
| #define ASS_Library ass_library_t |
Referenced by AssHandleHold().
| #define ASS_Renderer ass_renderer_t |
Referenced by AssHandleHold().
| #define ASS_Track ass_track_t |
Referenced by Create().
| static ass_handle_t * AssHandleHold | ( | decoder_t * | p_dec | ) | [static] |
References _, ASS_Library, ASS_Renderer, decoder_GetInputAttachments(), dialog_ProgressCreate, dialog_ProgressDestroy(), dialog_ProgressSet(), ass_handle_t::fmt, input_attachment_t::i_data, ass_handle_t::i_refcount, libass_lock, msg_Dbg, msg_Warn, vlc_value_t::p_address, input_attachment_t::p_data, ass_handle_t::p_library, ass_handle_t::p_libvlc, decoder_t::p_libvlc, ass_handle_t::p_renderer, input_attachment_t::psz_mime, input_attachment_t::psz_name, strcasecmp(), var_Create, var_Get, var_Set, vlc_input_attachment_Delete(), vlc_mutex_lock(), vlc_mutex_unlock(), VLC_OBJECT, and VLC_VAR_ADDRESS.
Referenced by Create().
| static void AssHandleRelease | ( | ass_handle_t * | p_ass | ) | [static] |
References ass_handle_t::i_refcount, libass_lock, vlc_value_t::p_address, ass_handle_t::p_library, ass_handle_t::p_libvlc, ass_handle_t::p_renderer, var_Set, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by DecSysRelease().
| static int BuildRegions | ( | rectangle_t * | p_region, | |
| int | i_max_region, | |||
| ass_image_t * | p_img_list, | |||
| int | i_width, | |||
| int | i_height | |||
| ) | [static] |
References __MAX, ASS_Image, i, mdate(), msg_Err, r_add(), r_img(), r_overlap(), and r_surface().
Referenced by SubpictureUpdate().
| static int Create | ( | vlc_object_t * | p_this | ) | [static] |
References ASS_Track, AssHandleHold(), DecodeBlock(), DecSysRelease(), decoder_t::fmt_in, decoder_t::fmt_out, es_format_t::i_cat, es_format_t::i_codec, es_format_t::i_extra, decoder_sys_t::i_max_stop, decoder_sys_t::i_refcount, libass_lock, decoder_sys_t::lock, decoder_sys_t::p_ass, es_format_t::p_extra, ass_handle_t::p_library, decoder_t::p_sys, p_sys, decoder_sys_t::p_track, decoder_t::pf_decode_sub, SPU_ES, VLC_CODEC_RGBA, VLC_CODEC_SSA, VLC_EGENERIC, VLC_ENOMEM, vlc_mutex_init(), vlc_mutex_lock(), vlc_mutex_unlock(), VLC_SUCCESS, and VLC_TS_INVALID.
| static subpicture_t * DecodeBlock | ( | decoder_t * | p_dec, | |
| block_t ** | pp_block | |||
| ) | [static] |
References __MAX, subpicture_t::b_absolute, subpicture_t::b_ephemer, BLOCK_FLAG_CORRUPTED, BLOCK_FLAG_DISCONTINUITY, block_Release(), decoder_DeleteSubpicture(), decoder_NewSubpicture(), DecSysHold(), block_t::i_buffer, block_t::i_flags, block_t::i_length, decoder_sys_t::i_max_stop, block_t::i_pts, subpicture_updater_sys_t::i_pts, subpicture_t::i_start, subpicture_t::i_stop, subpicture_updater_sys_t::i_subs_len, libass_lock, msg_Warn, block_t::p_buffer, subpicture_updater_sys_t::p_dec_sys, subpicture_updater_sys_t::p_img, subpicture_updater_sys_t::p_subs_data, decoder_t::p_sys, p_sys, decoder_sys_t::p_track, SubpictureDestroy(), SubpictureUpdate(), SubpictureValidate(), vlc_mutex_lock(), vlc_mutex_unlock(), and VLC_TS_INVALID.
| static void DecSysHold | ( | decoder_sys_t * | p_sys | ) | [static] |
References decoder_sys_t::i_refcount, decoder_sys_t::lock, vlc_mutex_lock(), and vlc_mutex_unlock().
| static void DecSysRelease | ( | decoder_sys_t * | p_sys | ) | [static] |
| static void Destroy | ( | vlc_object_t * | p_this | ) | [static] |
References DecSysRelease(), and decoder_t::p_sys.
| static void r_add | ( | rectangle_t * | r, | |
| const rectangle_t * | n | |||
| ) | [static] |
References __MAX, __MIN, rectangle_t::x0, rectangle_t::x1, rectangle_t::y0, and rectangle_t::y1.
Referenced by BuildRegions(), Yuv2Rgb(), and yuv_to_rgb().
| static rectangle_t r_create | ( | int | x0, | |
| int | y0, | |||
| int | x1, | |||
| int | y1 | |||
| ) | [static] |
Referenced by r_img().
| static rectangle_t r_img | ( | const ass_image_t * | p_img | ) | [static] |
| static bool r_overlap | ( | const rectangle_t * | a, | |
| const rectangle_t * | b, | |||
| int | i_dx, | |||
| int | i_dy | |||
| ) | [static] |
References __MAX, __MIN, rectangle_t::x0, rectangle_t::x1, rectangle_t::y0, and rectangle_t::y1.
Referenced by BuildRegions().
| static int r_surface | ( | const rectangle_t * | r | ) | [static] |
References rectangle_t::x0, rectangle_t::x1, rectangle_t::y0, and rectangle_t::y1.
Referenced by BuildRegions().
| static void RegionDraw | ( | subpicture_region_t * | p_region, | |
| ass_image_t * | p_img | |||
| ) | [static] |
References a, b, subpicture_region_t::fmt, video_format_t::i_height, i_height, plane_t::i_lines, plane_t::i_pitch, plane_t::i_visible_lines, plane_t::i_visible_pitch, video_format_t::i_width, subpicture_region_t::i_x, subpicture_region_t::i_y, picture_t::p, subpicture_region_t::p_picture, and plane_t::p_pixels.
Referenced by SubpictureUpdate().
| static void SubpictureDestroy | ( | subpicture_t * | p_subpic | ) | [static] |
References DecSysRelease(), subpicture_updater_sys_t::p_dec_sys, subpicture_updater_sys_t::p_subs_data, subpicture_updater_t::p_sys, p_sys, and subpicture_t::updater.
Referenced by DecodeBlock().
| static void SubpictureUpdate | ( | subpicture_t * | p_subpic, | |
| const video_format_t * | p_fmt_src, | |||
| const video_format_t * | p_fmt_dst, | |||
| mtime_t | i_ts | |||
| ) | [static] |
References ASS_Image, BuildRegions(), ass_handle_t::fmt, i, subpicture_region_t::i_align, video_format_t::i_height, subpicture_t::i_original_picture_height, subpicture_t::i_original_picture_width, video_format_t::i_visible_height, video_format_t::i_visible_width, video_format_t::i_width, subpicture_region_t::i_x, subpicture_region_t::i_y, libass_lock, decoder_sys_t::p_ass, subpicture_updater_sys_t::p_dec_sys, subpicture_updater_sys_t::p_img, subpicture_region_t::p_next, subpicture_t::p_region, subpicture_updater_t::p_sys, p_sys, RegionDraw(), SUBPICTURE_ALIGN_LEFT, SUBPICTURE_ALIGN_TOP, subpicture_region_New(), subpicture_t::updater, vlc_mutex_unlock(), rectangle_t::x0, rectangle_t::x1, rectangle_t::y0, and rectangle_t::y1.
| static int SubpictureValidate | ( | subpicture_t * | p_subpic, | |
| bool | b_fmt_src, | |||
| const video_format_t * | p_fmt_src, | |||
| bool | b_fmt_dst, | |||
| const video_format_t * | p_fmt_dst, | |||
| mtime_t | i_ts | |||
| ) | [static] |
References ASS_Image, ass_handle_t::fmt, video_format_t::i_bits_per_pixel, video_format_t::i_chroma, video_format_t::i_height, subpicture_updater_sys_t::i_pts, subpicture_t::i_start, video_format_t::i_visible_height, video_format_t::i_visible_width, video_format_t::i_width, video_format_t::i_x_offset, video_format_t::i_y_offset, libass_lock, decoder_sys_t::p_ass, subpicture_updater_sys_t::p_dec_sys, subpicture_updater_sys_t::p_img, subpicture_t::p_region, ass_handle_t::p_renderer, subpicture_updater_t::p_sys, p_sys, decoder_sys_t::p_track, subpicture_t::updater, VLC_CODEC_RGBA, VLC_EGENERIC, vlc_mutex_lock(), vlc_mutex_unlock(), and VLC_SUCCESS.
Referenced by DecodeBlock().
| int vlc_entry__main | ( | module_t * | p_module | ) |
| const char* vlc_entry_license__main | ( | void | ) |
vlc_mutex_t libass_lock = PTHREAD_MUTEX_INITIALIZER [static] |
Referenced by AssHandleHold(), AssHandleRelease(), Create(), DecodeBlock(), DecSysRelease(), SubpictureUpdate(), and SubpictureValidate().
1.5.6