Lines Matching defs:avctx

454 static int svq1_decode_delta_block(AVCodecContext *avctx, HpelDSPContext *hdsp,
487 ff_dlog(avctx, "Error in svq1_motion_inter_block %i\n", result);
498 ff_dlog(avctx, "Error in svq1_motion_inter_4v_block %i\n", result);
527 static int svq1_decode_frame_header(AVCodecContext *avctx, AVFrame *frame)
529 SVQ1Context *s = avctx->priv_data;
549 av_log(avctx, AV_LOG_ERROR, "Invalid frame type.\n");
560 ff_dlog(avctx, "%s checksum (%02x) for packet data\n",
569 av_log(avctx, AV_LOG_INFO,
620 static int svq1_decode_frame(AVCodecContext *avctx, AVFrame *cur,
625 SVQ1Context *s = avctx->priv_data;
646 av_log(avctx, AV_LOG_ERROR, "Input packet too small\n");
667 result = svq1_decode_frame_header(avctx, cur);
669 ff_dlog(avctx, "Error in svq1_decode_frame_header %i\n", result);
673 result = ff_set_dimensions(avctx, s->width, s->height);
677 if ((avctx->skip_frame >= AVDISCARD_NONREF && s->nonref) ||
678 (avctx->skip_frame >= AVDISCARD_NONKEY &&
680 avctx->skip_frame >= AVDISCARD_ALL)
683 result = ff_get_buffer(avctx, cur, s->nonref ? 0 : AV_GET_BUFFER_FLAG_REF);
698 if (avctx->flags & AV_CODEC_FLAG_GRAY)
713 av_log(avctx, AV_LOG_ERROR,
726 av_log(avctx, AV_LOG_ERROR, "Missing reference frame.\n");
734 result = svq1_decode_delta_block(avctx, &s->hdsp,
739 ff_dlog(avctx,
806 static av_cold int svq1_decode_init(AVCodecContext *avctx)
809 SVQ1Context *s = avctx->priv_data;
815 s->width = avctx->width + 3 & ~3;
816 s->height = avctx->height + 3 & ~3;
817 avctx->pix_fmt = AV_PIX_FMT_YUV410P;
819 ff_hpeldsp_init(&s->hdsp, avctx->flags);
826 static av_cold int svq1_decode_end(AVCodecContext *avctx)
828 SVQ1Context *s = avctx->priv_data;
839 static void svq1_flush(AVCodecContext *avctx)
841 SVQ1Context *s = avctx->priv_data;