Lines Matching defs:avctx
57 * @param[in] avctx ptr to the AVCodecContext
60 static int decode_gop_header(IVI45DecContext *ctx, AVCodecContext *avctx)
76 av_log(avctx, AV_LOG_ERROR, "Invalid tile size: %d\n", tile_size);
86 av_log(avctx, AV_LOG_ERROR, "Scalability: unsupported subdivision! Luma bands: %d, chroma bands: %d\n",
101 avpriv_report_missing_feature(avctx, "YV12 picture format");
117 result = ff_ivi_init_planes(avctx, ctx->planes, &pic_conf, 0);
119 av_log(avctx, AV_LOG_ERROR, "Couldn't reallocate color planes!\n");
138 av_log(avctx, AV_LOG_ERROR, "4x4 luma blocks are unsupported!\n");
149 avpriv_report_missing_feature(avctx, "Extended transform info");
195 av_log(avctx, AV_LOG_ERROR, "transform and block size mismatch (%d != %d)\n", band->transform_size, band->blk_size);
208 av_log(avctx, AV_LOG_ERROR, "quant_mat %d too large!\n", quant_mat);
223 av_log(avctx, AV_LOG_ERROR, "End marker missing!\n");
255 av_log(avctx, AV_LOG_ERROR,
263 av_log(avctx, AV_LOG_ERROR, "Alignment bits are not zero!\n");
312 * @param[in] avctx ptr to the AVCodecContext
315 static int decode_pic_hdr(IVI45DecContext *ctx, AVCodecContext *avctx)
320 av_log(avctx, AV_LOG_ERROR, "Invalid picture start code!\n");
327 av_log(avctx, AV_LOG_ERROR, "Invalid frame type: %d \n", ctx->frame_type);
335 if ((ret = decode_gop_header(ctx, avctx)) < 0) {
336 av_log(avctx, AV_LOG_ERROR, "Invalid GOP header, skipping frames.\n");
344 av_log(avctx, AV_LOG_ERROR, "Scalable inter frame in non scalable stream\n");
362 IVI_MB_HUFF, &ctx->mb_vlc, avctx);
380 * @param[in] avctx ptr to the AVCodecContext
384 AVCodecContext *avctx)
408 av_log(avctx, AV_LOG_ERROR, "Too many corrections: %d\n",
423 &band->blk_vlc, avctx);
452 * @param[in] avctx ptr to the AVCodecContext
456 IVITile *tile, AVCodecContext *avctx)
472 av_log(avctx, AV_LOG_ERROR, "Allocated tile size %d mismatches parameters %d\n",
491 av_log(avctx, AV_LOG_ERROR, "Empty macroblock in an INTRA picture!\n");
570 av_log(avctx, AV_LOG_ERROR, "motion vector %d %d outside reference\n", x*s + mb->mv_x, y*s + mb->mv_y);
641 static av_cold int decode_init(AVCodecContext *avctx)
643 IVI45DecContext *ctx = avctx->priv_data;
656 ctx->pic_conf.pic_width = avctx->width;
657 ctx->pic_conf.pic_height = avctx->height;
658 ctx->pic_conf.chroma_width = (avctx->width + 3) >> 2;
659 ctx->pic_conf.chroma_height = (avctx->height + 3) >> 2;
660 ctx->pic_conf.tile_width = avctx->width;
661 ctx->pic_conf.tile_height = avctx->height;
664 result = ff_ivi_init_planes(avctx, ctx->planes, &ctx->pic_conf, 0);
666 av_log(avctx, AV_LOG_ERROR, "Couldn't allocate color planes!\n");
681 avctx->pix_fmt = AV_PIX_FMT_YUV410P;