EncState Struct Reference

#include <nb_celp.h>

Collaboration diagram for EncState:

Collaboration graph
[legend]
List of all members.

Public Attributes

const SpeexMode * mode
int first
int frameSize
int subframeSize
int nbSubframes
int windowSize
int lpcSize
int min_pitch
int max_pitch
int safe_pitch
int bounded_pitch
int ol_pitch
int ol_voiced
int * pitch
spx_word16_t gamma1
spx_word16_t gamma2
float lag_factor
spx_word16_t lpc_floor
char * stack
spx_sig_tinBuf
spx_sig_tframe
spx_sig_texcBuf
spx_sig_texc
spx_sig_tswBuf
spx_sig_tsw
spx_sig_tinnov
spx_word16_twindow
spx_word16_tautocorr
spx_word16_tlagWindow
spx_coef_tlpc
spx_lsp_tlsp
spx_lsp_tqlsp
spx_lsp_told_lsp
spx_lsp_told_qlsp
spx_lsp_tinterp_lsp
spx_lsp_tinterp_qlsp
spx_coef_tinterp_lpc
spx_coef_tinterp_qlpc
spx_coef_tbw_lpc1
spx_coef_tbw_lpc2
spx_mem_tmem_sp
spx_mem_tmem_sw
spx_mem_tmem_sw_whole
spx_mem_tmem_exc
spx_word32_tpi_gain
VBRStatevbr
float vbr_quality
float relative_quality
int vbr_enabled
int vad_enabled
int dtx_enabled
int dtx_count
int abr_enabled
float abr_drift
float abr_drift2
float abr_count
int complexity
int sampling_rate
int plc_tuning
int encode_submode
const SpeexSubmode *const * submodes
int submodeID
int submodeSelect

Detailed Description

Structure representing the full state of the narrowband encoder


Member Data Documentation

float EncState::abr_count
 

float EncState::abr_drift
 

float EncState::abr_drift2
 

int EncState::abr_enabled
 

ABR setting (in bps), 0 if off

spx_word16_t* EncState::autocorr
 

auto-correlation

int EncState::bounded_pitch
 

Next frame should not rely on previous frames for pitch

spx_coef_t* EncState::bw_lpc1
 

LPCs after bandwidth expansion by gamma1 for perceptual weighting

spx_coef_t* EncState::bw_lpc2
 

LPCs after bandwidth expansion by gamma2 for perceptual weighting

int EncState::complexity
 

Complexity setting (0-10 from least complex to most complex)

int EncState::dtx_count
 

Number of consecutive DTX frames

int EncState::dtx_enabled
 

1 for enabling DTX, 0 otherwise

int EncState::encode_submode
 

spx_sig_t* EncState::exc
 

Start of excitation frame

spx_sig_t* EncState::excBuf
 

Excitation buffer

int EncState::first
 

Is this the first frame?

spx_sig_t* EncState::frame
 

Start of original frame

int EncState::frameSize
 

Size of frames

spx_word16_t EncState::gamma1
 

Perceptual filter: A(z/gamma1)

spx_word16_t EncState::gamma2
 

Perceptual filter: A(z/gamma2)

spx_sig_t* EncState::inBuf
 

Input buffer (original signal)

spx_sig_t* EncState::innov
 

Innovation for the frame

spx_coef_t* EncState::interp_lpc
 

Interpolated LPCs

spx_lsp_t* EncState::interp_lsp
 

Interpolated LSPs

spx_coef_t* EncState::interp_qlpc
 

Interpolated quantized LPCs

spx_lsp_t* EncState::interp_qlsp
 

Interpolated quantized LSPs

float EncState::lag_factor
 

Lag windowing Gaussian width

spx_word16_t* EncState::lagWindow
 

Window applied to auto-correlation

spx_coef_t* EncState::lpc
 

LPCs for current frame

spx_word16_t EncState::lpc_floor
 

Noise floor multiplier for A[0] in LPC analysis

int EncState::lpcSize
 

LPC order

spx_lsp_t* EncState::lsp
 

LSPs for current frame

int EncState::max_pitch
 

Maximum pitch value allowed

spx_mem_t* EncState::mem_exc
 

Filter memory for excitation (whole frame)

spx_mem_t* EncState::mem_sp
 

Filter memory for signal synthesis

spx_mem_t* EncState::mem_sw
 

Filter memory for perceptually-weighted signal

spx_mem_t* EncState::mem_sw_whole
 

Filter memory for perceptually-weighted signal (whole frame)

int EncState::min_pitch
 

Minimum pitch value allowed

const SpeexMode* EncState::mode
 

Mode corresponding to the state

int EncState::nbSubframes
 

Number of sub-frames

int EncState::ol_pitch
 

Open-loop pitch

int EncState::ol_voiced
 

Open-loop voiced/non-voiced decision

spx_lsp_t* EncState::old_lsp
 

LSPs for previous frame

spx_lsp_t* EncState::old_qlsp
 

Quantized LSPs for previous frame

spx_word32_t* EncState::pi_gain
 

Gain of LPC filter at theta=pi (fe/2)

int* EncState::pitch
 

int EncState::plc_tuning
 

spx_lsp_t* EncState::qlsp
 

Quantized LSPs for current frame

float EncState::relative_quality
 

Relative quality that will be needed by VBR

int EncState::safe_pitch
 

Don't use too large values for pitch (in case we lose a packet)

int EncState::sampling_rate
 

char* EncState::stack
 

Pseudo-stack allocation for temporary memory

int EncState::subframeSize
 

Size of sub-frames

int EncState::submodeID
 

Activated sub-mode

const SpeexSubmode* const* EncState::submodes
 

Sub-mode data

int EncState::submodeSelect
 

Mode chosen by the user (may differ from submodeID if VAD is on)

spx_sig_t* EncState::sw
 

Start of weighted signal frame

spx_sig_t* EncState::swBuf
 

Weighted signal buffer

int EncState::vad_enabled
 

1 for enabling VAD, 0 otherwise

VBRState* EncState::vbr
 

State of the VBR data

int EncState::vbr_enabled
 

1 for enabling VBR, 0 otherwise

float EncState::vbr_quality
 

Quality setting for VBR encoding

spx_word16_t* EncState::window
 

Temporary (Hanning) window

int EncState::windowSize
 

Analysis (LPC) window length


The documentation for this struct was generated from the following file:
Generated on Fri Jan 2 13:29:12 2009 for speex by  doxygen 1.4.6