Lines Matching defs:mode
40 * used to set the encoding mode.
43 * VBR mode is turned on by setting AV_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.
118 switch (s->header.mode) {
123 av_log(avctx, AV_LOG_DEBUG, "mode: %s\n", mode_str);
150 const SpeexMode *mode;
162 /* sample rate and encoding mode */
164 case 8000: mode = speex_lib_get_mode(SPEEX_MODEID_NB); break;
165 case 16000: mode = speex_lib_get_mode(SPEEX_MODEID_WB); break;
166 case 32000: mode = speex_lib_get_mode(SPEEX_MODEID_UWB); break;
174 s->enc_state = speex_encoder_init(mode);
179 speex_init_header(&s->header, avctx->sample_rate, channels, mode);