Lines Matching defs:avctx
42 static av_cold int bethsoftvid_decode_init(AVCodecContext *avctx)
44 BethsoftvidContext *vid = avctx->priv_data;
45 avctx->pix_fmt = AV_PIX_FMT_PAL8;
70 static int bethsoftvid_decode_frame(AVCodecContext *avctx, AVFrame *rframe,
73 BethsoftvidContext * vid = avctx->priv_data;
77 int remaining = avctx->width; // number of bytes remaining on a line
82 if ((ret = ff_reget_buffer(avctx, vid->frame, 0)) < 0)
84 wrap_to_next_line = vid->frame->linesize[0] - avctx->width;
96 frame_end = vid->frame->data[0] + vid->frame->linesize[0] * avctx->height;
102 av_log(avctx, AV_LOG_ERROR, "error reading palette\n");
109 if(yoffset >= avctx->height)
131 remaining = avctx->width;
154 static av_cold int bethsoftvid_decode_end(AVCodecContext *avctx)
156 BethsoftvidContext * vid = avctx->priv_data;