Lines Matching defs:opts
55 LibopusEncOpts opts;
113 LibopusEncOpts *opts)
132 OPUS_SET_COMPLEXITY(opts->complexity));
137 ret = opus_multistream_encoder_ctl(enc, OPUS_SET_VBR(!!opts->vbr));
143 OPUS_SET_VBR_CONSTRAINT(opts->vbr == 2));
149 OPUS_SET_PACKET_LOSS_PERC(opts->packet_loss));
156 OPUS_SET_INBAND_FEC(opts->fec));
164 OPUS_SET_MAX_BANDWIDTH(opts->max_bandwidth));
172 OPUS_SET_PHASE_INVERSION_DISABLED(!opts->apply_phase_inv));
269 frame_size = opus->opts.frame_duration * 48000 / 1000;
273 if (opus->opts.application != OPUS_APPLICATION_RESTRICTED_LOWDELAY)
280 opus->opts.application = OPUS_APPLICATION_RESTRICTED_LOWDELAY;
290 opus->opts.packet_size =
301 opus->opts.frame_duration);
309 opus->opts.complexity = 10;
311 opus->opts.complexity = avctx->compression_level;
317 opus->opts.max_bandwidth = OPUS_BANDWIDTH_NARROWBAND;
320 opus->opts.max_bandwidth = OPUS_BANDWIDTH_MEDIUMBAND;
323 opus->opts.max_bandwidth = OPUS_BANDWIDTH_WIDEBAND;
326 opus->opts.max_bandwidth = OPUS_BANDWIDTH_SUPERWIDEBAND;
329 opus->opts.max_bandwidth = OPUS_BANDWIDTH_FULLBAND;
341 av_ret = libopus_validate_layout_and_get_channel_map(avctx, opus->opts.mapping_family,
347 if (opus->opts.mapping_family == -1) {
363 opus->opts.application, &ret);
368 mapping_family = opus->opts.mapping_family;
372 opus->opts.application, &ret);
397 ret = libopus_configure_encoder(avctx, enc, &opus->opts);
475 } else if (frame->nb_samples < opus->opts.packet_size) {
484 memset(audio, 0, opus->opts.packet_size * sample_size);
495 opus->opts.packet_size,
499 opus->opts.packet_size,
510 ff_af_queue_remove(&opus->afq, opus->opts.packet_size,
513 discard_padding = opus->opts.packet_size - avpkt->duration;
515 if ((discard_padding < opus->opts.packet_size) != (avpkt->duration > 0)) {
548 #define OFFSET(x) offsetof(LibopusEncContext, opts.x)