# EncState Struct Reference

`#include <nb_celp.h>`

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
spx_word32_t | cumul_gain
int | bounded_pitch
int | ol_pitch
int | ol_voiced
spx_word16_t | gamma1
spx_word16_t | gamma2
spx_word16_t | lpc_floor
char * | stack
spx_word16_t * | winBuf
spx_word16_t * | excBuf
spx_word16_t * | exc
spx_word16_t * | swBuf
spx_word16_t * | sw
const spx_word16_t * | window
const spx_word16_t * | lagWindow
spx_lsp_t * | old_lsp
spx_lsp_t * | old_qlsp
spx_mem_t * | mem_sp
spx_mem_t * | mem_sw
spx_mem_t * | mem_sw_whole
spx_mem_t * | mem_exc
spx_mem_t * | mem_exc2
spx_mem_t | mem_hp [2]
spx_word32_t * | pi_gain
spx_word16_t * | innov_rms_save
VBRState * | vbr
float | vbr_quality
float | relative_quality
spx_int32_t | vbr_enabled
spx_int32_t | vbr_max
int | vad_enabled
int | dtx_enabled
int | dtx_count
spx_int32_t | abr_enabled
int | complexity
const SpeexSubmode *const * | submodes
int | submodeID
int | submodeSelect
int | isWideband
int | highpass_enabled

## Detailed Description

Structure representing the full state of the narrowband encoder

## Member Data Documentation

const SpeexMode* EncState::mode

Mode corresponding to the state

int EncState::first

Is this the first frame?

int EncState::frameSize

Size of frames

int EncState::subframeSize

Size of sub-frames

int EncState::nbSubframes

Number of sub-frames

int EncState::windowSize

Analysis (LPC) window length

int EncState::lpcSize

LPC order

int EncState::min_pitch

Minimum pitch value allowed

int EncState::max_pitch

Maximum pitch value allowed

spx_word32_t EncState::cumul_gain

Product of previously used pitch gains (Q10)

int EncState::bounded_pitch

Next frame should not rely on previous frames for pitch

int EncState::ol_pitch

Open-loop pitch

int EncState::ol_voiced

Open-loop voiced/non-voiced decision

spx_word16_t EncState::gamma1

Perceptual filter: A(z/gamma1)

spx_word16_t EncState::gamma2

Perceptual filter: A(z/gamma2)

spx_word16_t EncState::lpc_floor

Noise floor multiplier for A[0] in LPC analysis

char* EncState::stack

Pseudo-stack allocation for temporary memory

spx_word16_t* EncState::winBuf

Input buffer (original signal)

spx_word16_t* EncState::excBuf

Excitation buffer

spx_word16_t* EncState::exc

Start of excitation frame

spx_word16_t* EncState::swBuf

Weighted signal buffer

spx_word16_t* EncState::sw

Start of weighted signal frame

const spx_word16_t* EncState::window

Temporary (Hanning) window

const spx_word16_t* EncState::lagWindow

Window applied to auto-correlation

spx_lsp_t* EncState::old_lsp

LSPs for previous frame

spx_lsp_t* EncState::old_qlsp

Quantized LSPs for previous 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)

spx_mem_t* EncState::mem_exc

Filter memory for excitation (whole frame)

spx_mem_t* EncState::mem_exc2

Filter memory for excitation (whole frame)

spx_mem_t EncState::mem_hp[2]

High-pass filter memory

spx_word32_t* EncState::pi_gain

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

spx_word16_t* EncState::innov_rms_save

If non-NULL, innovation RMS is copied here

VBRState* EncState::vbr

State of the VBR data

float EncState::vbr_quality

Quality setting for VBR encoding

float EncState::relative_quality

Relative quality that will be needed by VBR

spx_int32_t EncState::vbr_enabled

1 for enabling VBR, 0 otherwise

spx_int32_t EncState::vbr_max

Max bit-rate allowed in VBR mode

int EncState::vad_enabled

1 for enabling VAD, 0 otherwise

int EncState::dtx_enabled

1 for enabling DTX, 0 otherwise

int EncState::dtx_count

Number of consecutive DTX frames

spx_int32_t EncState::abr_enabled

ABR setting (in bps), 0 if off

int EncState::complexity

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

const SpeexSubmode* const* EncState::submodes

Sub-mode data

int EncState::submodeID

Activated sub-mode

int EncState::submodeSelect

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

int EncState::isWideband

Is this used as part of the embedded wideband codec

int EncState::highpass_enabled

Is the input filter enabled

The documentation for this struct was generated from the following file:

- /home/rakkar/raknet-trunk/export/DependentExtensions/speex-1.2beta3/libspeex/nb_celp.h