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.
96 switch (s->header.mode) {
101 av_log(avctx, AV_LOG_DEBUG, "mode: %s\n", mode_str);
125 const SpeexMode *mode;
137 /* sample rate and encoding mode */
139 case 8000: mode = &speex_nb_mode; break;
140 case 16000: mode = &speex_wb_mode; break;
141 case 32000: mode = &speex_uwb_mode; break;
149 s->enc_state = speex_encoder_init(mode);
154 speex_init_header(&s->header, avctx->sample_rate, avctx->channels, mode);