Lines Matching defs:avctx
448 static int mss4_decode_frame(AVCodecContext *avctx, AVFrame *rframe,
453 MSS4Context *c = avctx->priv_data;
462 av_log(avctx, AV_LOG_ERROR,
475 if (width > avctx->width ||
476 height != avctx->height) {
477 av_log(avctx, AV_LOG_ERROR, "Invalid frame dimensions %dx%d\n",
481 if (av_image_check_size2(width, height, avctx->max_pixels, AV_PIX_FMT_NONE, 0, avctx) < 0)
485 av_log(avctx, AV_LOG_ERROR, "Invalid quality setting %d\n", quality);
489 av_log(avctx, AV_LOG_ERROR, "Invalid frame type %d\n", frame_type);
494 av_log(avctx, AV_LOG_ERROR,
504 if ((ret = ff_reget_buffer(avctx, c->pic, 0)) < 0)
537 av_log(avctx, AV_LOG_ERROR,
545 av_log(avctx, AV_LOG_ERROR,
553 av_log(avctx, AV_LOG_ERROR, "Skip block in intra frame\n");
574 static av_cold int mss4_decode_end(AVCodecContext *avctx)
576 MSS4Context * const c = avctx->priv_data;
586 static av_cold int mss4_decode_init(AVCodecContext *avctx)
589 MSS4Context * const c = avctx->priv_data;
593 c->dc_stride[i] = FFALIGN(avctx->width, 16) >> (2 + !!i);
596 av_log(avctx, AV_LOG_ERROR, "Cannot allocate buffer\n");
605 avctx->pix_fmt = AV_PIX_FMT_YUV444P;