Lines Matching refs:avctx
40 static av_cold int bethsoftvid_decode_init(AVCodecContext *avctx)
42 BethsoftvidContext *vid = avctx->priv_data;
46 avctx->pix_fmt = PIX_FMT_PAL8;
65 static int bethsoftvid_decode_frame(AVCodecContext *avctx,
69 BethsoftvidContext * vid = avctx->priv_data;
73 int remaining = avctx->width; // number of bytes remaining on a line
74 const int wrap_to_next_line = vid->frame.linesize[0] - avctx->width;
78 if (avctx->reget_buffer(avctx, &vid->frame)) {
79 av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n");
85 frame_end = vid->frame.data[0] + vid->frame.linesize[0] * avctx->height;
93 if(yoffset >= avctx->height)
110 remaining = avctx->width;
131 static av_cold int bethsoftvid_decode_end(AVCodecContext *avctx)
133 BethsoftvidContext * vid = avctx->priv_data;
135 avctx->release_buffer(avctx, &vid->frame);