Lines Matching defs:mode
40 * used to set the encoding mode.
43 * VBR mode is turned on by setting CODEC_FLAG_QSCALE in avctx->flags.
45 * For CBR mode, avctx->bit_rate can be used to set the constant bitrate.
48 * For ABR mode, set avctx->bit_rate and set the 'abr' option to 1.
117 switch (s->header.mode) {
122 av_log(avctx, AV_LOG_DEBUG, "mode: %s\n", mode_str);
148 const SpeexMode *mode;
160 /* sample rate and encoding mode */
162 case 8000: mode = &speex_nb_mode; break;
163 case 16000: mode = &speex_wb_mode; break;
164 case 32000: mode = &speex_uwb_mode; break;
172 s->enc_state = speex_encoder_init(mode);
177 speex_init_header(&s->header, avctx->sample_rate, avctx->channels, mode);