Lines Matching refs:enc_state
100 void *enc_state; ///< libspeex encoder state
172 s->enc_state = speex_encoder_init(mode);
173 if (!s->enc_state) {
184 speex_encoder_ctl(s->enc_state, SPEEX_SET_VBR, &s->header.vbr);
187 speex_encoder_ctl(s->enc_state, SPEEX_SET_VBR_QUALITY, &s->vbr_quality);
193 speex_encoder_ctl(s->enc_state, SPEEX_SET_ABR,
195 speex_encoder_ctl(s->enc_state, SPEEX_GET_ABR,
198 speex_encoder_ctl(s->enc_state, SPEEX_SET_BITRATE,
200 speex_encoder_ctl(s->enc_state, SPEEX_GET_BITRATE,
205 speex_encoder_ctl(s->enc_state, SPEEX_SET_QUALITY,
207 speex_encoder_ctl(s->enc_state, SPEEX_GET_BITRATE,
217 speex_encoder_ctl(s->enc_state, SPEEX_SET_VAD, &s->vad);
221 speex_encoder_ctl(s->enc_state, SPEEX_SET_DTX, &s->dtx);
229 speex_encoder_ctl(s->enc_state, SPEEX_SET_COMPLEXITY, &complexity);
231 speex_encoder_ctl(s->enc_state, SPEEX_GET_COMPLEXITY, &complexity);
239 speex_encoder_ctl(s->enc_state, SPEEX_GET_LOOKAHEAD, &avctx->delay);
251 speex_encoder_destroy(s->enc_state);
279 speex_encode_int(s->enc_state, samples, &s->bits);
318 speex_encoder_destroy(s->enc_state);