
| #define dbg_print | ( | mask, | |||
| s, | |||||
| args... | ) |
| #define DEBUG_LONGTEXT |
Value:
N_("This integer when viewed in binary is a debugging mask\n" \ "calls 1\n" \ "packet assembly info 2\n" )
| #define DEBUG_TEXT N_("Enable debug") |
| #define DECODE_DBG_CALL 1 |
Referenced by Decode(), and DecoderOpen().
| #define DECODE_DBG_PACKET 2 |
Referenced by ParseHeader(), and Reassemble().
| #define DECODE_DEBUG 1 |
| #define GETINT16 | ( | p | ) | ( (p[0] << 8) + p[1] ) ; p +=2; |
Referenced by ParseHeader(), and Reassemble().
| #define GETINT32 | ( | p | ) |
Value:
( (p[0] << 24) + (p[1] << 16) + \
(p[2] << 8) + (p[3]) ) ; p += 4;
Referenced by ParseHeader().
| #define SPU_HEADER_LEN 5 |
| enum packet_state_t |
| static subpicture_t * Decode | ( | decoder_t * | p_dec, | |
| block_t ** | pp_block | |||
| ) | [static] |
References dbg_print, DECODE_DBG_CALL, DecodePacket(), decoder_t::p_sys, p_sys, and Reassemble().
| static subpicture_t * DecodePacket | ( | decoder_t * | p_dec, | |
| block_t * | p_data | |||
| ) | [static] |
The video on which the subtitle sits, is scaled, probably 4:3. However subtitle bitmaps assume an 1:1 aspect ratio.
FIXME: We should get the video aspect ratio from somewhere. Two candidates are the video and the other possibility would be the access module.
References subpicture_t::b_ephemer, decoder_DeleteSubpicture(), decoder_NewSubpicture(), i, video_format_t::i_chroma, decoder_sys_t::i_duration, video_palette_t::i_entries, video_format_t::i_height, decoder_sys_t::i_height, block_t::i_pts, video_format_t::i_sar_den, video_format_t::i_sar_num, subpicture_t::i_start, subpicture_t::i_stop, video_format_t::i_visible_height, video_format_t::i_visible_width, video_format_t::i_width, decoder_sys_t::i_width, subpicture_region_t::i_x, video_format_t::i_x_offset, decoder_sys_t::i_x_start, subpicture_region_t::i_y, video_format_t::i_y_offset, decoder_sys_t::i_y_start, msg_Err, decoder_sys_t::p_palette, video_format_t::p_palette, subpicture_t::p_region, decoder_t::p_sys, p_sys, video_palette_t::palette, subpicture_region_New(), SVCDSubRenderImage(), and VLC_CODEC_YUVP.
| void DecoderClose | ( | vlc_object_t * | p_this | ) | [static] |
References block_ChainRelease(), decoder_sys_t::p_spu, decoder_t::p_sys, and p_sys.
| static int DecoderOpen | ( | vlc_object_t * | p_this | ) | [static] |
References dbg_print, Decode(), DECODE_DBG_CALL, es_format_Init(), decoder_t::fmt_in, decoder_t::fmt_out, es_format_t::i_codec, decoder_sys_t::i_debug, decoder_sys_t::i_image, decoder_sys_t::i_state, decoder_sys_t::p_spu, decoder_t::p_sys, p_sys, Packetize(), decoder_t::pf_decode_sub, decoder_t::pf_packetize, SPU_ES, SUBTITLE_BLOCK_EMPTY, var_InheritInteger, VLC_CODEC_OGT, VLC_EGENERIC, VLC_ENOMEM, and VLC_SUCCESS.
References block_t::i_dts, block_t::i_length, block_t::i_pts, and Reassemble().
| static int PacketizerOpen | ( | vlc_object_t * | p_this | ) | [static] |
References DecoderOpen(), VLC_EGENERIC, and VLC_SUCCESS.
References DECODE_DBG_PACKET, GETINT16, GETINT32, i, decoder_sys_t::i_debug, decoder_sys_t::i_duration, decoder_sys_t::i_height, decoder_sys_t::i_image_length, decoder_sys_t::i_image_offset, decoder_sys_t::i_spu_size, decoder_sys_t::i_width, decoder_sys_t::i_x_start, decoder_sys_t::i_y_start, decoder_sys_t::metadata_length, msg_Dbg, block_t::p_buffer, decoder_sys_t::p_palette, decoder_t::p_sys, p_sys, and decoder_sys_t::second_field_offset.
References block_ChainAppend(), block_ChainGather(), block_Release(), dbg_print, DECODE_DBG_PACKET, FIND_PARENT, GETINT16, block_t::i_buffer, decoder_sys_t::i_image, vlc_value_t::i_int, decoder_sys_t::i_packet, decoder_sys_t::i_spu_size, decoder_sys_t::i_state, msg_Dbg, msg_Warn, block_t::p_buffer, decoder_sys_t::p_spu, decoder_t::p_sys, p_sys, ParseHeader(), SPU_HEADER_LEN, SUBTITLE_BLOCK_COMPLETE, SUBTITLE_BLOCK_EMPTY, SUBTITLE_BLOCK_PARTIAL, var_Get, vlc_object_find, VLC_OBJECT_INPUT, and vlc_object_release.
| static void SVCDSubRenderImage | ( | decoder_t * | p_dec, | |
| block_t * | p_data, | |||
| subpicture_region_t * | p_region | |||
| ) | [static] |
References __MIN, bs_align(), bs_init(), bs_read(), block_t::i_buffer, i_color, i_column, decoder_sys_t::i_height, decoder_sys_t::i_image_offset, decoder_sys_t::i_width, block_t::p_buffer, subpicture_region_t::p_picture, decoder_t::p_sys, p_sys, and decoder_sys_t::second_field_offset.
Referenced by DecodePacket().
| int vlc_entry__main | ( | module_t * | p_module | ) |
| const char* vlc_entry_license__main | ( | void | ) |
1.5.6