speex.c File Reference

Include dependency graph for speex.c:


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_tDecodeRtpSpeexPacket (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_tDecodePacket (decoder_t *, ogg_packet *)
static block_tSendPacket (decoder_t *, block_t *)
static void ParseSpeexComments (decoder_t *, ogg_packet *)
static block_tEncode (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 Documentation

#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))


Function Documentation

static void CloseDecoder ( vlc_object_t p_this  )  [static]

static void CloseEncoder ( vlc_object_t p_this  )  [static]

static void * DecodeBlock ( decoder_t p_dec,
block_t **  pp_block 
) [static]

static aout_buffer_t * DecodePacket ( decoder_t p_dec,
ogg_packet *  p_oggpacket 
) [static]

static aout_buffer_t * DecodeRtpSpeexPacket ( decoder_t p_dec,
block_t **  pp_block 
) [static]

static block_t * Encode ( encoder_t p_enc,
aout_buffer_t p_aout_buf 
) [static]

static int OpenDecoder ( vlc_object_t p_this  )  [static]

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]

static int ProcessHeaders ( decoder_t p_dec  )  [static]

static int ProcessInitialHeader ( decoder_t p_dec,
ogg_packet *  p_oggpacket 
) [static]

static void * ProcessPacket ( decoder_t p_dec,
ogg_packet *  p_oggpacket,
block_t **  pp_block 
) [static]

static block_t * SendPacket ( decoder_t p_dec,
block_t p_block 
) [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Variable Documentation

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]

Initial value:

 {
    N_("Narrow-band (8kHz)"), N_("Wide-band (16kHz)"), N_("Ultra-wideband (32kHz)"), NULL
}

const char* const ppsz_enc_options[] [static]

Initial value:

 {
    "mode", "complexity", "cbr", "quality", "max-bitrate", "vad", "dtx", NULL
}


Generated on Tue May 25 08:05:14 2010 for VLC by  doxygen 1.5.6