Lines Matching defs:avctx
143 AVCodecContext *avctx;
167 av_log(ctx->avctx, AV_LOG_ERROR, "Invalid version %d\n", src[0]);
171 av_log(ctx->avctx, AV_LOG_ERROR, "Invalid header size %d\n", src[1]);
178 av_log(ctx->avctx, AV_LOG_ERROR, "Frame size should be %"PRIu32" got %d\n",
182 if (width != ctx->avctx->width || height != ctx->avctx->height) {
183 av_log(ctx->avctx, AV_LOG_ERROR,
185 ctx->avctx->width, ctx->avctx->height, width, height);
327 y_pos = (ctx->avctx->height - 16);
328 c_pos = ((ctx->avctx->height+1)/2 - 8);
384 static int aic_decode_frame(AVCodecContext *avctx, AVFrame *frame,
387 AICContext *ctx = avctx->priv_data;
402 av_log(avctx, AV_LOG_ERROR, "Too small frame\n");
408 av_log(avctx, AV_LOG_ERROR, "Invalid header\n");
412 if ((ret = ff_thread_get_buffer(avctx, ctx->frame, 0)) < 0)
422 av_log(avctx, AV_LOG_ERROR,
429 av_log(avctx, AV_LOG_ERROR,
443 static av_cold int aic_decode_init(AVCodecContext *avctx)
445 AICContext *ctx = avctx->priv_data;
449 ctx->avctx = avctx;
451 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
453 ff_idctdsp_init(&ctx->idsp, avctx);
461 ctx->mb_width = FFALIGN(avctx->width, 16) >> 4;
462 ctx->mb_height = FFALIGN(avctx->height, 16) >> 4;
477 av_log(avctx, AV_LOG_ERROR, "Error allocating slice buffer\n");
489 static av_cold int aic_decode_close(AVCodecContext *avctx)
491 AICContext *ctx = avctx->priv_data;