Lines Matching defs:avctx

220     int channels   = tctx->avctx->ch_layout.nb_channels;
384 int channels = tctx->avctx->ch_layout.nb_channels;
419 int channels = tctx->avctx->ch_layout.nb_channels;
478 int ff_twinvq_decode_frame(AVCodecContext *avctx, AVFrame *frame,
483 TwinVQContext *tctx = avctx->priv_data;
491 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
496 if (buf_size < avctx->block_align) {
497 av_log(avctx, AV_LOG_ERROR,
502 if ((ret = tctx->read_bitstream(avctx, tctx, buf, buf_size)) < 0)
526 if (buf_size == avctx->block_align + 1)
528 return avctx->block_align;
540 int channels = tctx->avctx->ch_layout.nb_channels;
649 size = tctx->avctx->ch_layout.nb_channels;
652 size = tctx->avctx->ch_layout.nb_channels * mtab->fmode[ftype].sub;
670 int n_ch = tctx->avctx->ch_layout.nb_channels;
671 int total_fr_bits = tctx->avctx->bit_rate * mtab->size /
672 tctx->avctx->sample_rate;
742 av_cold int ff_twinvq_decode_close(AVCodecContext *avctx)
744 TwinVQContext *tctx = avctx->priv_data;
761 av_cold int ff_twinvq_decode_init(AVCodecContext *avctx)
764 TwinVQContext *tctx = avctx->priv_data;
767 tctx->avctx = avctx;
768 avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
770 if (!avctx->block_align) {
771 avctx->block_align = tctx->frame_size + 7 >> 3;
773 frames_per_packet = avctx->block_align * 8LL / tctx->frame_size;
775 av_log(avctx, AV_LOG_ERROR, "Block align is %"PRId64" bits, expected %d\n",
776 avctx->block_align * (int64_t)8, tctx->frame_size);
780 av_log(avctx, AV_LOG_ERROR, "Too many frames per packet (%"PRId64")\n",
786 tctx->fdsp = avpriv_float_dsp_alloc(avctx->flags & AV_CODEC_FLAG_BITEXACT);
790 av_log(avctx, AV_LOG_ERROR, "Error initializing MDCT\n");