Lines Matching defs:mode
34 int mode;
38 //not AV_OPT_FLAG_DECODING_PARAM since mode should come from the demuxer
39 //1300 (aka FreeDV 1600) is the most common mode on-the-air, default to it here as well
40 CODEC2_AVOPTIONS("codec2 mode", LibCodec2Context, 0, 4 /*CODEC2_MODE_1300*/, AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_ENCODING_PARAM),
51 static av_cold int libcodec2_init_common(AVCodecContext *avctx, int mode)
54 //Grab mode name from options, unless it's some weird number.
55 const char *modename = mode >= 0 && mode <= CODEC2_MODE_MAX ? options[mode+1].name : "?";
57 c2->codec = codec2_create(mode);
59 //Out of memory or unsupported mode. The latter seems most likely,
69 //example is -mode 700C on libcodec2 0.4
82 mode, modename);
120 codec2_make_extradata(avctx->extradata, c2->mode);
122 return libcodec2_init_common(avctx, c2->mode);