Lines Matching refs:enc_state
79 void *enc_state; ///< libspeex encoder state
149 s->enc_state = speex_encoder_init(mode);
150 if (!s->enc_state) {
160 speex_encoder_ctl(s->enc_state, SPEEX_SET_VBR, &s->header.vbr);
163 speex_encoder_ctl(s->enc_state, SPEEX_SET_VBR_QUALITY, &s->vbr_quality);
169 speex_encoder_ctl(s->enc_state, SPEEX_SET_ABR,
171 speex_encoder_ctl(s->enc_state, SPEEX_GET_ABR,
174 speex_encoder_ctl(s->enc_state, SPEEX_SET_BITRATE,
176 speex_encoder_ctl(s->enc_state, SPEEX_GET_BITRATE,
181 speex_encoder_ctl(s->enc_state, SPEEX_SET_QUALITY,
183 speex_encoder_ctl(s->enc_state, SPEEX_GET_BITRATE,
194 speex_encoder_ctl(s->enc_state, SPEEX_SET_COMPLEXITY, &complexity);
196 speex_encoder_ctl(s->enc_state, SPEEX_GET_COMPLEXITY, &complexity);
204 speex_encoder_ctl(s->enc_state, SPEEX_GET_LOOKAHEAD, &s->lookahead);
217 speex_encoder_destroy(s->enc_state);
244 speex_encode_int(s->enc_state, samples, &s->bits);
283 speex_encoder_destroy(s->enc_state);