
Data Structures | |
| struct | decoder_sys_t |
| struct | subpicture_updater_sys_t |
Defines | |
| #define | PROFILE_START(name) ((void)0) |
| #define | PROFILE_STOP(name) ((void)0) |
| #define | CHECK_TIGER_RET(statement) |
| #define | DEFAULT_NAME "Default" |
| #define | MAX_LINE 8192 |
| #define | FORMAT_TEXT N_("Formatted Subtitles") |
| #define | FORMAT_LONGTEXT |
| #define | HELP_TEXT |
Functions | |
| static int | OpenDecoder (vlc_object_t *) |
| static void | CloseDecoder (vlc_object_t *) |
| static subpicture_t * | DecodeBlock (decoder_t *p_dec, block_t **pp_block) |
| static int | ProcessHeaders (decoder_t *p_dec) |
| static subpicture_t * | ProcessPacket (decoder_t *p_dec, kate_packet *p_kp, block_t **pp_block) |
| static subpicture_t * | DecodePacket (decoder_t *p_dec, kate_packet *p_kp, block_t *p_block) |
| static void | ParseKateComments (decoder_t *) |
| static subpicture_t * | SetupSimpleKateSPU (decoder_t *p_dec, subpicture_t *p_spu, const kate_event *ev) |
| static void | DecSysRelease (decoder_sys_t *p_sys) |
| static void | DecSysHold (decoder_sys_t *p_sys) |
| int | vlc_entry__main (module_t *p_module) |
| const char * | vlc_entry_license__main (void) |
| static void | rgb_to_yuv (uint8_t *y, uint8_t *u, uint8_t *v, int r, int g, int b) |
| static void | GetVideoSize (decoder_t *p_dec, int *w, int *h) |
| static void | CreateKateBitmap (picture_t *pic, const kate_bitmap *bitmap) |
| static void | CreateKatePalette (video_palette_t *fmt_palette, const kate_palette *palette) |
| static void | SetupText (decoder_t *p_dec, subpicture_t *p_spu, const kate_event *ev) |
Variables | |
| static vlc_mutex_t | kate_decoder_list_mutex = PTHREAD_MUTEX_INITIALIZER |
| static size_t | kate_decoder_list_size = 0 |
| static decoder_t ** | kate_decoder_list = NULL |
| #define CHECK_TIGER_RET | ( | statement | ) |
Value:
do \ { \ int i_ret = (statement); \ if( i_ret < 0 ) \ { \ msg_Dbg( p_dec, "Error in " #statement ": %d", i_ret ); \ } \ } while( 0 )
Referenced by DecodePacket(), and OpenDecoder().
| #define DEFAULT_NAME "Default" |
| #define FORMAT_LONGTEXT |
Value:
N_("Kate streams allow for text formatting. " \ "VLC partly implements this, but you can choose to disable all formatting." \ "Note that this has no effect is rendering via Tiger is enabled.")
| #define FORMAT_TEXT N_("Formatted Subtitles") |
| #define HELP_TEXT |
Value:
N_( \ "Kate is a codec for text and image based overlays.\n" \ "The Tiger rendering library is needed to render complex Kate streams, " \ "but VLC can still render static text and image based subtitles if " \ "it is not available.\n" \ "Note that changing settings below will not take effect until a new stream is played. " \ "This will hopefully be fixed soon." \ )
| #define MAX_LINE 8192 |
Referenced by DemuxOpen(), Import_GVP(), Import_SGIMB(), and ParseSSAHeader().
| #define PROFILE_START | ( | name | ) | ((void)0) |
| #define PROFILE_STOP | ( | name | ) | ((void)0) |
| static void CloseDecoder | ( | vlc_object_t * | p_this | ) | [static] |
| static void CreateKateBitmap | ( | picture_t * | pic, | |
| const kate_bitmap * | bitmap | |||
| ) | [static] |
| static void CreateKatePalette | ( | video_palette_t * | fmt_palette, | |
| const kate_palette * | palette | |||
| ) | [static] |
References video_palette_t::i_entries, video_palette_t::palette, and rgb_to_yuv().
Referenced by SetupSimpleKateSPU().
| static subpicture_t * DecodeBlock | ( | decoder_t * | p_dec, | |
| block_t ** | pp_block | |||
| ) | [static] |
References decoder_sys_t::b_has_headers, BLOCK_FLAG_CORRUPTED, BLOCK_FLAG_DISCONTINUITY, block_Release(), block_t::i_buffer, block_t::i_flags, decoder_sys_t::i_max_stop, decoder_sys_t::lock, block_t::p_buffer, decoder_t::p_sys, p_sys, ProcessHeaders(), ProcessPacket(), vlc_mutex_lock(), vlc_mutex_unlock(), and VLC_TS_INVALID.
| static subpicture_t * DecodePacket | ( | decoder_t * | p_dec, | |
| kate_packet * | p_kp, | |||
| block_t * | p_block | |||
| ) | [static] |
References __MAX, subpicture_t::b_absolute, subpicture_t::b_ephemer, decoder_sys_t::b_ready, decoder_sys_t::b_use_tiger, CHECK_TIGER_RET, decoder_NewSubpicture(), DecSysHold(), decoder_sys_t::i_max_stop, block_t::i_pts, subpicture_updater_sys_t::i_start, subpicture_t::i_start, subpicture_t::i_stop, decoder_sys_t::k, decoder_sys_t::ki, decoder_sys_t::lock, msg_Err, subpicture_updater_sys_t::p_dec_sys, decoder_t::p_sys, SetupSimpleKateSPU(), vlc_mutex_lock(), and vlc_mutex_unlock().
| 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().
Referenced by DecodeBlock(), DecodePacket(), and OpenDecoder().
| static void DecSysRelease | ( | decoder_sys_t * | p_sys | ) | [static] |
References decoder_sys_t::b_ready, decoder_sys_t::i_refcount, decoder_sys_t::k, decoder_sys_t::kc, decoder_sys_t::ki, decoder_sys_t::lock, vlc_mutex_destroy(), vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by CloseDecoder(), Create(), Destroy(), and SubpictureDestroy().
| static void GetVideoSize | ( | decoder_t * | p_dec, | |
| int * | w, | |||
| int * | h | |||
| ) | [static] |
References FIND_CHILD, decoder_sys_t::ki, msg_Dbg, decoder_t::p_sys, p_sys, vlc_object_find, vlc_object_release, and VLC_OBJECT_VOUT.
Referenced by SetupSimpleKateSPU().
| static int OpenDecoder | ( | vlc_object_t * | p_this | ) | [static] |
References decoder_sys_t::b_formatted, decoder_sys_t::b_has_headers, decoder_sys_t::b_packetizer, decoder_sys_t::b_ready, decoder_sys_t::b_use_tiger, CHECK_TIGER_RET, DecodeBlock(), DecSysHold(), es_format_Init(), decoder_t::fmt_in, decoder_t::fmt_out, es_format_t::i_codec, decoder_sys_t::i_max_stop, decoder_sys_t::i_pts, decoder_sys_t::i_refcount, kate_decoder_list_mutex, kate_decoder_list_size, decoder_sys_t::kc, decoder_sys_t::ki, list, decoder_sys_t::lock, msg_Dbg, msg_Warn, decoder_t::p_sys, p_sys, decoder_t::pf_decode_sub, decoder_t::pf_packetize, SPU_ES, var_CreateGetBool, VLC_CODEC_KATE, VLC_EGENERIC, VLC_ENOMEM, vlc_mutex_init(), vlc_mutex_lock(), vlc_mutex_unlock(), VLC_SUCCESS, and VLC_TS_INVALID.
| static void ParseKateComments | ( | decoder_t * | p_dec | ) | [static] |
References i, decoder_sys_t::kc, decoder_t::p_description, decoder_t::p_sys, strdup(), vlc_meta_AddExtra(), and vlc_meta_New().
Referenced by ProcessHeaders().
| static int ProcessHeaders | ( | decoder_t * | p_dec | ) | [static] |
References decoder_sys_t::b_packetizer, decoder_sys_t::b_ready, decoder_t::fmt_in, decoder_t::fmt_out, i, es_format_t::i_extra, decoder_sys_t::k, decoder_sys_t::kc, decoder_sys_t::ki, msg_Dbg, msg_Err, es_format_t::p_extra, decoder_t::p_sys, p_sys, ParseKateComments(), VLC_EGENERIC, VLC_SUCCESS, XIPH_MAX_HEADER_COUNT, xiph_SplitHeaders(), and xrealloc().
Referenced by DecodeBlock().
| static subpicture_t * ProcessPacket | ( | decoder_t * | p_dec, | |
| kate_packet * | p_kp, | |||
| block_t ** | pp_block | |||
| ) | [static] |
References decoder_sys_t::b_packetizer, block_Release(), DecodePacket(), block_t::i_dts, block_t::i_length, decoder_sys_t::i_pts, block_t::i_pts, decoder_t::p_sys, p_sys, and VLC_TS_INVALID.
Referenced by DecodeBlock().
| static void rgb_to_yuv | ( | uint8_t * | y, | |
| uint8_t * | u, | |||
| uint8_t * | v, | |||
| int | r, | |||
| int | g, | |||
| int | b | |||
| ) | [inline, static] |
Referenced by BlendRGBAI420(), BlendRGBAYUVPacked(), CreateKatePalette(), and process_server_message().
| static subpicture_t * SetupSimpleKateSPU | ( | decoder_t * | p_dec, | |
| subpicture_t * | p_spu, | |||
| const kate_event * | ev | |||
| ) | [static] |
References subpicture_t::b_absolute, decoder_sys_t::b_formatted, CreateKateBitmap(), CreateKatePalette(), decoder_DeleteSubpicture(), GetVideoSize(), subpicture_region_t::i_align, video_format_t::i_chroma, video_format_t::i_height, subpicture_t::i_original_picture_height, subpicture_t::i_original_picture_width, 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, 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::ki, msg_Dbg, msg_Err, subpicture_region_t::p_next, video_format_t::p_palette, subpicture_region_t::p_picture, subpicture_t::p_region, decoder_t::p_sys, video_palette_t::palette, SetupText(), SUBPICTURE_ALIGN_BOTTOM, subpicture_region_New(), VLC_CODEC_TEXT, and VLC_CODEC_YUVP.
Referenced by DecodePacket().
| static void SetupText | ( | decoder_t * | p_dec, | |
| subpicture_t * | p_spu, | |||
| const kate_event * | ev | |||
| ) | [static] |
References asprintf(), decoder_sys_t::b_formatted, msg_Warn, subpicture_t::p_region, decoder_t::p_sys, p_sys, subpicture_region_t::psz_html, subpicture_region_t::psz_text, and strdup().
Referenced by SetupSimpleKateSPU().
| int vlc_entry__main | ( | module_t * | p_module | ) |
| const char* vlc_entry_license__main | ( | void | ) |
decoder_t** kate_decoder_list = NULL [static] |
vlc_mutex_t kate_decoder_list_mutex = PTHREAD_MUTEX_INITIALIZER [static] |
Referenced by CloseDecoder(), and OpenDecoder().
size_t kate_decoder_list_size = 0 [static] |
Referenced by CloseDecoder(), and OpenDecoder().
1.5.6