Lines Matching defs:avctx

78 av_cold int ff_wma_init(AVCodecContext *avctx, int flags2)
80 WMACodecContext *s = avctx->priv_data;
81 int channels = avctx->ch_layout.nb_channels;
88 if (avctx->sample_rate <= 0 || avctx->sample_rate > 50000 ||
90 avctx->bit_rate <= 0)
94 if (avctx->codec->id == AV_CODEC_ID_WMAV1)
100 s->frame_len_bits = ff_wma_get_frame_len_bits(avctx->sample_rate,
110 if ((avctx->bit_rate / channels) >= 32000)
121 high_freq = avctx->sample_rate * 0.5;
124 sample_rate1 = avctx->sample_rate;
138 bps = (float) avctx->bit_rate /
139 (float) (channels * avctx->sample_rate);
142 av_log(avctx, AV_LOG_ERROR, "byte_offset_bits %d is too large\n", s->byte_offset_bits);
185 ff_dlog(s->avctx, "flags2=0x%x\n", flags2);
186 ff_dlog(s->avctx, "version=%d channels=%d sample_rate=%d bitrate=%"PRId64" block_align=%d\n",
187 s->version, channels, avctx->sample_rate, avctx->bit_rate,
188 avctx->block_align);
189 ff_dlog(s->avctx, "bps=%f bps1=%f high_freq=%f bitoffset=%d\n",
191 ff_dlog(s->avctx, "use_noise_coding=%d use_exp_vlc=%d nb_block_sizes=%d\n",
210 b = avctx->sample_rate;
227 if (avctx->sample_rate >= 44100)
229 else if (avctx->sample_rate >= 32000)
231 else if (avctx->sample_rate >= 22050)
244 b = avctx->sample_rate;
263 avctx->sample_rate + 0.5);
287 ff_tlog(s->avctx, "%5d: n=%2d:",
291 ff_tlog(s->avctx, " %d", s->exponent_bands[i][j]);
292 ff_tlog(s->avctx, "\n");
329 s->fdsp = avpriv_float_dsp_alloc(avctx->flags & AV_CODEC_FLAG_BITEXACT);
335 if (avctx->sample_rate >= 32000) {
366 int ff_wma_end(AVCodecContext *avctx)
368 WMACodecContext *s = avctx->priv_data;
412 * @param avctx codec context
426 int ff_wma_run_level_decode(AVCodecContext *avctx, GetBitContext *gb,
460 av_log(avctx, AV_LOG_ERROR,
475 av_log(avctx, AV_LOG_ERROR,