Lines Matching defs:avctx
183 * @param avctx the AV codec context
190 static evrc_packet_rate determine_bitrate(AVCodecContext *avctx,
198 EVRCContext *e = avctx->priv_data;
200 av_log(avctx, AV_LOG_WARNING,
206 av_log(avctx, AV_LOG_ERROR,
213 av_log(avctx, AV_LOG_DEBUG,
221 static void warn_insufficient_frame_quality(AVCodecContext *avctx,
224 av_log(avctx, AV_LOG_WARNING, "Frame #%d, %s\n",
225 avctx->frame_number, message);
233 static av_cold int evrc_decode_init(AVCodecContext *avctx)
235 EVRCContext *e = avctx->priv_data;
239 av_channel_layout_uninit(&avctx->ch_layout);
240 avctx->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
241 avctx->sample_fmt = AV_SAMPLE_FMT_FLT;
744 static int evrc_decode_frame(AVCodecContext *avctx, AVFrame *frame,
748 EVRCContext *e = avctx->priv_data;
755 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
759 if ((e->bitrate = determine_bitrate(avctx, &buf_size, &buf)) == RATE_ERRS) {
760 warn_insufficient_frame_quality(avctx, "bitrate cannot be determined.");
897 av_log(avctx, AV_LOG_WARNING, "frame erasure\n");