
Data Structures | |
| struct | decoder_sys_t |
| struct | encoder_sys_t |
Defines | |
| #define | ENC_CFG_PREFIX "sout-speex-" |
| #define | ENC_MODE_TEXT N_("Mode" ) |
| #define | ENC_MODE_LONGTEXT |
| #define | ENC_QUALITY_TEXT N_("Encoding quality") |
| #define | ENC_QUALITY_LONGTEXT |
| #define | ENC_COMPLEXITY_TEXT N_("Encoding complexity" ) |
| #define | ENC_COMPLEXITY_LONGTEXT |
| #define | ENC_MAXBITRATE_TEXT N_( "Maximal bitrate" ) |
| #define | ENC_MAXBITRATE_LONGTEXT |
| #define | ENC_CBR_TEXT N_( "CBR encoding" ) |
| #define | ENC_CBR_LONGTEXT |
| #define | ENC_VAD_TEXT N_( "Voice activity detection" ) |
| #define | ENC_VAD_LONGTEXT |
| #define | ENC_DTX_TEXT N_( "Discontinuous Transmission" ) |
| #define | ENC_DTX_LONGTEXT |
| #define | readint(buf, base) |
| #define | MAX_FRAME_SIZE 2000 |
| #define | MAX_FRAME_BYTES 2000 |
Functions | |
| static int | OpenDecoder (vlc_object_t *) |
| static int | OpenPacketizer (vlc_object_t *) |
| static void | CloseDecoder (vlc_object_t *) |
| static int | OpenEncoder (vlc_object_t *) |
| static void | CloseEncoder (vlc_object_t *) |
| int | vlc_entry__main (module_t *p_module) |
| const char * | vlc_entry_license__main (void) |
| static void * | DecodeBlock (decoder_t *, block_t **) |
| static aout_buffer_t * | DecodeRtpSpeexPacket (decoder_t *, block_t **) |
| static int | ProcessHeaders (decoder_t *) |
| static int | ProcessInitialHeader (decoder_t *, ogg_packet *) |
| static void * | ProcessPacket (decoder_t *, ogg_packet *, block_t **) |
| static aout_buffer_t * | DecodePacket (decoder_t *, ogg_packet *) |
| static block_t * | SendPacket (decoder_t *, block_t *) |
| static void | ParseSpeexComments (decoder_t *, ogg_packet *) |
| static block_t * | Encode (encoder_t *, aout_buffer_t *) |
Variables | |
| static const int | pi_enc_mode_values [] = { 0, 1, 2 } |
| static const char *const | ppsz_enc_mode_descriptions [] |
| static const char *const | ppsz_enc_options [] |
| static const int | pi_channels_maps [6] |
| #define ENC_CBR_LONGTEXT |
Value:
N_( \ "Enforce a constant bitrate encoding (CBR) instead of default " \ "variable bitrate encoding (VBR)." )
| #define ENC_CBR_TEXT N_( "CBR encoding" ) |
| #define ENC_CFG_PREFIX "sout-speex-" |
| #define ENC_COMPLEXITY_LONGTEXT |
Value:
N_( \ "Enforce the complexity of the encoder." )
| #define ENC_COMPLEXITY_TEXT N_("Encoding complexity" ) |
| #define ENC_DTX_LONGTEXT |
Value:
N_( \ "Enable discontinuous transmission (DTX)." )
| #define ENC_DTX_TEXT N_( "Discontinuous Transmission" ) |
| #define ENC_MAXBITRATE_LONGTEXT |
Value:
N_( \ "Enforce the maximal VBR bitrate" )
| #define ENC_MAXBITRATE_TEXT N_( "Maximal bitrate" ) |
| #define ENC_MODE_LONGTEXT |
Value:
N_( \ "Enforce the mode of the encoder." )
| #define ENC_MODE_TEXT N_("Mode" ) |
| #define ENC_QUALITY_LONGTEXT |
Value:
N_( \ "Enforce a quality between 0 (low) and 10 (high)." )
| #define ENC_QUALITY_TEXT N_("Encoding quality") |
| #define ENC_VAD_LONGTEXT |
Value:
N_( \ "Enable voice activity detection (VAD). It is automatically " \ "activated in VBR mode." )
| #define ENC_VAD_TEXT N_( "Voice activity detection" ) |
| #define MAX_FRAME_BYTES 2000 |
Referenced by Encode().
| #define MAX_FRAME_SIZE 2000 |
| #define readint | ( | buf, | |||
| base | ) |
Value:
(((buf[base+3]<<24)&0xff000000)| \
((buf[base+2]<<16)&0xff0000)| \
((buf[base+1]<<8)&0xff00)| \
(buf[base]&0xff))
| static void CloseDecoder | ( | vlc_object_t * | p_this | ) | [static] |
References decoder_sys_t::bits, decoder_sys_t::p_header, decoder_sys_t::p_state, decoder_t::p_sys, and p_sys.
| static void CloseEncoder | ( | vlc_object_t * | p_this | ) | [static] |
| static aout_buffer_t * DecodePacket | ( | decoder_t * | p_dec, | |
| ogg_packet * | p_oggpacket | |||
| ) | [static] |
References decoder_sys_t::bits, date_Get(), date_Increment(), decoder_NewAudioBuffer(), decoder_sys_t::end_date, decoder_sys_t::i_frame_in_packet, block_t::i_length, block_t::i_pts, msg_Err, block_t::p_buffer, decoder_sys_t::p_header, decoder_sys_t::p_state, decoder_t::p_sys, p_sys, and decoder_sys_t::stereo.
| static aout_buffer_t * DecodeRtpSpeexPacket | ( | decoder_t * | p_dec, | |
| block_t ** | pp_block | |||
| ) | [static] |
References es_format_t::audio, decoder_sys_t::bits, block_Release(), date_Get(), date_Increment(), date_Init(), date_Set(), decoder_NewAudioBuffer(), decoder_sys_t::end_date, decoder_t::fmt_out, block_t::i_buffer, audio_format_t::i_bytes_per_frame, audio_format_t::i_channels, block_t::i_dts, decoder_sys_t::i_frame_in_packet, block_t::i_length, audio_format_t::i_original_channels, audio_format_t::i_physical_channels, block_t::i_pts, audio_format_t::i_rate, msg_Err, block_t::p_buffer, decoder_sys_t::p_header, decoder_sys_t::p_state, decoder_t::p_sys, p_sys, pi_channels_maps, decoder_sys_t::rtp_rate, and VLC_TS_INVALID.
Referenced by OpenDecoder().
| static block_t * Encode | ( | encoder_t * | p_enc, | |
| aout_buffer_t * | p_aout_buf | |||
| ) | [static] |
References es_format_t::audio, encoder_sys_t::bits, block_ChainAppend(), block_New, encoder_t::fmt_in, encoder_sys_t::header, audio_format_t::i_channels, block_t::i_dts, encoder_sys_t::i_frame_length, encoder_sys_t::i_frame_size, encoder_sys_t::i_frames_in_packet, block_t::i_length, block_t::i_nb_samples, block_t::i_pts, audio_format_t::i_rate, encoder_sys_t::i_samples_delay, MAX_FRAME_BYTES, encoder_sys_t::p_buffer, block_t::p_buffer, encoder_sys_t::p_buffer_out, encoder_sys_t::p_state, and encoder_t::p_sys.
| static int OpenDecoder | ( | vlc_object_t * | p_this | ) | [static] |
References es_format_t::audio, AUDIO_ES, decoder_sys_t::b_has_headers, decoder_sys_t::b_packetizer, decoder_sys_t::bits, date_Set(), DecodeBlock(), DecodeRtpSpeexPacket(), decoder_sys_t::end_date, decoder_t::fmt_in, decoder_t::fmt_out, es_format_t::i_cat, es_format_t::i_codec, decoder_sys_t::i_frame_in_packet, es_format_t::i_original_fourcc, audio_format_t::i_rate, msg_Dbg, decoder_sys_t::p_header, decoder_sys_t::p_state, decoder_t::p_sys, p_sys, decoder_t::pf_decode_audio, decoder_t::pf_packetize, decoder_sys_t::rtp_rate, VLC_CODEC_S16N, VLC_CODEC_SPEEX, VLC_EGENERIC, VLC_ENOMEM, VLC_FOURCC, and VLC_SUCCESS.
| static int OpenEncoder | ( | vlc_object_t * | p_this | ) | [static] |
| static int OpenPacketizer | ( | vlc_object_t * | p_this | ) | [static] |
| static void ParseSpeexComments | ( | decoder_t * | p_dec, | |
| ogg_packet * | p_oggpacket | |||
| ) | [static] |
References _, asprintf(), decoder_t::p_description, decoder_sys_t::p_header, decoder_t::p_sys, p_sys, vlc_meta_AddExtra(), vlc_meta_New(), and VLC_UNUSED.
Referenced by ProcessHeaders().
| static int ProcessHeaders | ( | decoder_t * | p_dec | ) | [static] |
| static int ProcessInitialHeader | ( | decoder_t * | p_dec, | |
| ogg_packet * | p_oggpacket | |||
| ) | [static] |
References es_format_t::audio, decoder_sys_t::bits, callback(), date_Init(), decoder_sys_t::end_date, decoder_t::fmt_out, audio_format_t::i_channels, audio_format_t::i_original_channels, audio_format_t::i_physical_channels, audio_format_t::i_rate, msg_Dbg, msg_Err, decoder_sys_t::p_header, decoder_sys_t::p_state, decoder_t::p_sys, p_sys, pi_channels_maps, decoder_sys_t::stereo, VLC_EGENERIC, and VLC_SUCCESS.
Referenced by ProcessHeaders().
| static void * ProcessPacket | ( | decoder_t * | p_dec, | |
| ogg_packet * | p_oggpacket, | |||
| block_t ** | pp_block | |||
| ) | [static] |
References decoder_sys_t::b_packetizer, decoder_sys_t::bits, block_New, block_Realloc(), block_Release(), date_Get(), date_Set(), DecodePacket(), decoder_sys_t::end_date, block_t::i_buffer, block_t::i_pts, block_t::p_buffer, decoder_sys_t::p_header, decoder_sys_t::p_state, decoder_t::p_sys, p_sys, SendPacket(), VLC_TS_INVALID, and xmalloc().
References date_Get(), date_Increment(), decoder_sys_t::end_date, block_t::i_dts, block_t::i_length, block_t::i_pts, decoder_sys_t::p_header, decoder_t::p_sys, and p_sys.
Referenced by ProcessPacket().
| int vlc_entry__main | ( | module_t * | p_module | ) |
| const char* vlc_entry_license__main | ( | void | ) |
const int pi_channels_maps[6] [static] |
Initial value:
{
0,
0x1 , 0x2 | 0x4 ,
0x1 | 0x2 | 0x4 ,
0x2 | 0x4 | 0x20
| 0x40 ,
0x2 | 0x4 | 0x1
| 0x20 | 0x40
}
const int pi_enc_mode_values[] = { 0, 1, 2 } [static] |
const char* const ppsz_enc_mode_descriptions[] [static] |
const char* const ppsz_enc_options[] [static] |
Initial value:
{
"mode", "complexity", "cbr", "quality", "max-bitrate", "vad", "dtx", NULL
}
1.5.6