Lines Matching defs:avctx
59 AVCodecContext *avctx;
136 static av_cold int encode_end(AVCodecContext *avctx)
138 NellyMoserEncodeContext *s = avctx->priv_data;
168 static av_cold int encode_init(AVCodecContext *avctx)
171 NellyMoserEncodeContext *s = avctx->priv_data;
174 if (avctx->sample_rate != 8000 && avctx->sample_rate != 16000 &&
175 avctx->sample_rate != 11025 &&
176 avctx->sample_rate != 22050 && avctx->sample_rate != 44100 &&
177 avctx->strict_std_compliance >= FF_COMPLIANCE_NORMAL) {
178 av_log(avctx, AV_LOG_ERROR, "Nellymoser works only with 8000, 16000, 11025, 22050 and 44100 sample rate\n");
182 avctx->frame_size = NELLY_SAMPLES;
183 avctx->initial_padding = NELLY_BUF_LEN;
184 ff_af_queue_init(avctx, &s->afq);
185 s->avctx = avctx;
188 s->fdsp = avpriv_float_dsp_alloc(avctx->flags & AV_CODEC_FLAG_BITEXACT);
192 if (s->avctx->trellis) {
328 if (s->avctx->trellis) {
378 static int encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
381 NellyMoserEncodeContext *s = avctx->priv_data;
404 if ((ret = ff_get_encode_buffer(avctx, avpkt, NELLY_BLOCK_LEN, 0)) < 0)
409 ff_af_queue_remove(&s->afq, avctx->frame_size, &avpkt->pts,