Lines Matching refs:avctx
44 static av_cold int mxpeg_decode_init(AVCodecContext *avctx)
46 MXpegDecodeContext *s = avctx->priv_data;
50 return ff_mjpeg_decode_init(avctx);
77 av_log(s->jpg.avctx, AV_LOG_ERROR,
86 av_log(s->jpg.avctx, AV_LOG_ERROR,
94 av_log(s->jpg.avctx, AV_LOG_ERROR,
137 av_log(jpg->avctx, AV_LOG_ERROR,
147 av_log(jpg->avctx, AV_LOG_ERROR,
157 static int mxpeg_decode_frame(AVCodecContext *avctx,
163 MXpegDecodeContext *s = avctx->priv_data;
198 av_log(avctx, AV_LOG_ERROR,
206 av_log(avctx, AV_LOG_ERROR,
221 av_log(avctx, AV_LOG_ERROR,
226 av_log(avctx, AV_LOG_ERROR,
234 av_log(avctx, AV_LOG_WARNING,
240 av_log(avctx, AV_LOG_WARNING,
245 av_log(avctx, AV_LOG_WARNING,
251 avctx->release_buffer(avctx, jpg->picture_ptr);
252 if (avctx->get_buffer(avctx, jpg->picture_ptr) < 0) {
253 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
271 avctx->get_buffer(avctx, reference_ptr) < 0) {
272 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
277 if (ret < 0 && (avctx->err_recognition & AV_EF_EXPLODE))
281 if (ret < 0 && (avctx->err_recognition & AV_EF_EXPLODE))
311 static av_cold int mxpeg_decode_end(AVCodecContext *avctx)
313 MXpegDecodeContext *s = avctx->priv_data;
318 ff_mjpeg_decode_end(avctx);
322 avctx->release_buffer(avctx, &s->picture[i]);