Lines Matching defs:avctx
265 AVCodecContext *avctx;
489 static av_cold int decode_init(AVCodecContext *avctx)
491 SANMVideoContext *ctx = avctx->priv_data;
493 ctx->avctx = avctx;
494 ctx->version = !avctx->extradata_size;
496 if (!ctx->version && avctx->extradata_size < 1026) {
497 av_log(avctx, AV_LOG_ERROR, "Not enough extradata.\n");
501 avctx->pix_fmt = ctx->version ? AV_PIX_FMT_RGB565 : AV_PIX_FMT_PAL8;
503 init_sizes(ctx, avctx->width, avctx->height);
505 av_log(avctx, AV_LOG_ERROR, "Error allocating buffers.\n");
515 ctx->subversion = AV_RL16(avctx->extradata);
517 ctx->pal[i] = 0xFFU << 24 | AV_RL32(avctx->extradata + 2 + i * 4);
523 static av_cold int decode_end(AVCodecContext *avctx)
525 SANMVideoContext *ctx = avctx->priv_data;
643 av_log(ctx->avctx, AV_LOG_WARNING, "Decoded size is too large.\n");
655 av_log(ctx->avctx, AV_LOG_ERROR, "Invalid motion base value %d.\n", mvoff);
762 avpriv_report_missing_feature(ctx->avctx,
849 av_log(ctx->avctx, AV_LOG_ERROR, "MV is invalid.\n");
881 av_log(ctx->avctx, AV_LOG_WARNING, "Decoded size is too large.\n");
938 avpriv_report_missing_feature(ctx->avctx,
960 av_log(ctx->avctx, AV_LOG_ERROR, "Dimensions are invalid.\n");
965 int ret = ff_set_dimensions(ctx->avctx, FFMAX(left + w, ctx->width),
972 av_log(ctx->avctx, AV_LOG_ERROR, "Error resizing buffers.\n");
987 avpriv_request_sample(ctx->avctx, "Subcodec %d", codec);
998 av_log(ctx->avctx, AV_LOG_ERROR, "Insufficient data for raw frame.\n");
1011 avpriv_request_sample(ctx->avctx, "Unknown/unsupported compression type");
1053 av_log(ctx->avctx, AV_LOG_ERROR, "Ignoring nonexistent glyph #%u.\n", index);
1137 av_log(ctx->avctx, AV_LOG_ERROR,
1282 av_log(ctx->avctx, AV_LOG_ERROR, "Insufficient data for frame.\n");
1299 av_log(ctx->avctx, AV_LOG_ERROR, "RLE buffer allocation failed.\n");
1325 av_log(ctx->avctx, AV_LOG_ERROR, "Input frame too short (%d bytes).\n",
1335 avpriv_report_missing_feature(ctx->avctx, "Variable size frames");
1375 if ((ret = ff_get_buffer(ctx->avctx, ctx->frame, 0)) < 0)
1390 static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
1393 SANMVideoContext *ctx = avctx->priv_data;
1411 av_log(avctx, AV_LOG_ERROR, "Incorrect chunk size %"PRIu32".\n", size);
1417 av_log(avctx, AV_LOG_ERROR,
1444 av_log(avctx, AV_LOG_ERROR,
1468 av_log(avctx, AV_LOG_DEBUG,
1499 av_log(avctx, AV_LOG_ERROR,
1504 avpriv_request_sample(avctx, "Subcodec %d", header.codec);