ex

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Embed: (wiki syntax)

« Back to documentation index

EncState Struct Reference

EncState Struct Reference

Structure representing the full state of the narrowband encoder. More...

#include <nb_celp.h>

Data Fields

const SpeexModemode
 Mode corresponding to the state.
int first
 Is this the first frame?
int frameSize
 Size of frames.
int subframeSize
 Size of sub-frames.
int nbSubframes
 Number of sub-frames.
int windowSize
 Analysis (LPC) window length.
int lpcSize
 LPC order.
int min_pitch
 Minimum pitch value allowed.
int max_pitch
 Maximum pitch value allowed.
spx_word32_t cumul_gain
 Product of previously used pitch gains (Q10)
int bounded_pitch
 Next frame should not rely on previous frames for pitch.
int ol_pitch
 Open-loop pitch.
int ol_voiced
 Open-loop voiced/non-voiced decision.
spx_word16_t gamma1
 Perceptual filter: A(z/gamma1)
spx_word16_t gamma2
 Perceptual filter: A(z/gamma2)
float lag_factor
 Lag windowing Gaussian width.
spx_word16_t lpc_floor
 Noise floor multiplier for A[0] in LPC analysis.
char * stack
 Pseudo-stack allocation for temporary memory.
spx_word16_t * winBuf
 Input buffer (original signal)
spx_word16_t * excBuf
 Excitation buffer.
spx_word16_t * exc
 Start of excitation frame.
spx_word16_t * swBuf
 Weighted signal buffer.
spx_word16_t * sw
 Start of weighted signal frame.
const spx_word16_t * window
 Temporary (Hanning) window.
spx_word16_t * lagWindow
 Window applied to auto-correlation.
spx_lsp_t * old_lsp
 LSPs for previous frame.
spx_lsp_t * old_qlsp
 Quantized LSPs for previous frame.
spx_mem_t * mem_sp
 Filter memory for signal synthesis.
spx_mem_t * mem_sw
 Filter memory for perceptually-weighted signal.
spx_mem_t * mem_sw_whole
 Filter memory for perceptually-weighted signal (whole frame)
spx_mem_t * mem_exc
 Filter memory for excitation (whole frame)
spx_mem_t * mem_exc2
 Filter memory for excitation (whole frame)
spx_mem_t mem_hp [2]
 High-pass filter memory.
spx_word32_t * pi_gain
 Gain of LPC filter at theta=pi (fe/2)
spx_word16_t * innov_rms_save
 If non-NULL, innovation RMS is copied here.
VBRStatevbr
 State of the VBR data.
float vbr_quality
 Quality setting for VBR encoding.
float relative_quality
 Relative quality that will be needed by VBR.
spx_int32_t vbr_enabled
 1 for enabling VBR, 0 otherwise
spx_int32_t vbr_max
 Max bit-rate allowed in VBR mode.
int vad_enabled
 1 for enabling VAD, 0 otherwise
int dtx_enabled
 1 for enabling DTX, 0 otherwise
int dtx_count
 Number of consecutive DTX frames.
spx_int32_t abr_enabled
 ABR setting (in bps), 0 if off.
int complexity
 Complexity setting (0-10 from least complex to most complex)
const SpeexSubmode *const submodes
 Sub-mode data.
int submodeID
 Activated sub-mode.
int submodeSelect
 Mode chosen by the user (may differ from submodeID if VAD is on)
int isWideband
 Is this used as part of the embedded wideband codec.
int highpass_enabled
 Is the input filter enabled.

Detailed Description

Structure representing the full state of the narrowband encoder.

Definition at line 50 of file nb_celp.h.


Field Documentation

spx_int32_t abr_enabled

ABR setting (in bps), 0 if off.

Definition at line 109 of file nb_celp.h.

Next frame should not rely on previous frames for pitch.

Definition at line 62 of file nb_celp.h.

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

Definition at line 113 of file nb_celp.h.

spx_word32_t cumul_gain

Product of previously used pitch gains (Q10)

Definition at line 61 of file nb_celp.h.

int dtx_count

Number of consecutive DTX frames.

Definition at line 108 of file nb_celp.h.

1 for enabling DTX, 0 otherwise

Definition at line 107 of file nb_celp.h.

spx_word16_t* exc

Start of excitation frame.

Definition at line 85 of file nb_celp.h.

spx_word16_t* excBuf

Excitation buffer.

Definition at line 84 of file nb_celp.h.

int first

Is this the first frame?

Definition at line 52 of file nb_celp.h.

int frameSize

Size of frames.

Definition at line 53 of file nb_celp.h.

spx_word16_t gamma1

Perceptual filter: A(z/gamma1)

Definition at line 78 of file nb_celp.h.

spx_word16_t gamma2

Perceptual filter: A(z/gamma2)

Definition at line 79 of file nb_celp.h.

Is the input filter enabled.

Definition at line 121 of file nb_celp.h.

spx_word16_t* innov_rms_save

If non-NULL, innovation RMS is copied here.

Definition at line 99 of file nb_celp.h.

Is this used as part of the embedded wideband codec.

Definition at line 120 of file nb_celp.h.

float lag_factor

Lag windowing Gaussian width.

Definition at line 80 of file nb_celp.h.

spx_word16_t* lagWindow

Window applied to auto-correlation.

Definition at line 89 of file nb_celp.h.

spx_word16_t lpc_floor

Noise floor multiplier for A[0] in LPC analysis.

Definition at line 81 of file nb_celp.h.

int lpcSize

LPC order.

Definition at line 57 of file nb_celp.h.

int max_pitch

Maximum pitch value allowed.

Definition at line 59 of file nb_celp.h.

spx_mem_t* mem_exc

Filter memory for excitation (whole frame)

Definition at line 95 of file nb_celp.h.

spx_mem_t* mem_exc2

Filter memory for excitation (whole frame)

Definition at line 96 of file nb_celp.h.

spx_mem_t mem_hp[2]

High-pass filter memory.

Definition at line 97 of file nb_celp.h.

spx_mem_t* mem_sp

Filter memory for signal synthesis.

Definition at line 92 of file nb_celp.h.

spx_mem_t* mem_sw

Filter memory for perceptually-weighted signal.

Definition at line 93 of file nb_celp.h.

spx_mem_t* mem_sw_whole

Filter memory for perceptually-weighted signal (whole frame)

Definition at line 94 of file nb_celp.h.

int min_pitch

Minimum pitch value allowed.

Definition at line 58 of file nb_celp.h.

const SpeexMode* mode

Mode corresponding to the state.

Definition at line 51 of file nb_celp.h.

Number of sub-frames.

Definition at line 55 of file nb_celp.h.

int ol_pitch

Open-loop pitch.

Definition at line 63 of file nb_celp.h.

int ol_voiced

Open-loop voiced/non-voiced decision.

Definition at line 64 of file nb_celp.h.

spx_lsp_t* old_lsp

LSPs for previous frame.

Definition at line 90 of file nb_celp.h.

spx_lsp_t* old_qlsp

Quantized LSPs for previous frame.

Definition at line 91 of file nb_celp.h.

spx_word32_t* pi_gain

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

Definition at line 98 of file nb_celp.h.

Relative quality that will be needed by VBR.

Definition at line 103 of file nb_celp.h.

char* stack

Pseudo-stack allocation for temporary memory.

Definition at line 82 of file nb_celp.h.

Size of sub-frames.

Definition at line 54 of file nb_celp.h.

int submodeID

Activated sub-mode.

Definition at line 118 of file nb_celp.h.

const SpeexSubmode* const submodes

Sub-mode data.

Definition at line 117 of file nb_celp.h.

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

Definition at line 119 of file nb_celp.h.

spx_word16_t* sw

Start of weighted signal frame.

Definition at line 87 of file nb_celp.h.

spx_word16_t* swBuf

Weighted signal buffer.

Definition at line 86 of file nb_celp.h.

1 for enabling VAD, 0 otherwise

Definition at line 106 of file nb_celp.h.

State of the VBR data.

Definition at line 101 of file nb_celp.h.

spx_int32_t vbr_enabled

1 for enabling VBR, 0 otherwise

Definition at line 104 of file nb_celp.h.

spx_int32_t vbr_max

Max bit-rate allowed in VBR mode.

Definition at line 105 of file nb_celp.h.

float vbr_quality

Quality setting for VBR encoding.

Definition at line 102 of file nb_celp.h.

spx_word16_t* winBuf

Input buffer (original signal)

Definition at line 83 of file nb_celp.h.

const spx_word16_t* window

Temporary (Hanning) window.

Definition at line 88 of file nb_celp.h.

Analysis (LPC) window length.

Definition at line 56 of file nb_celp.h.