Lines Matching refs:avctx
49 AVCodecContext *avctx;
55 static av_cold int mm_decode_init(AVCodecContext *avctx)
57 MmContext *s = avctx->priv_data;
59 s->avctx = avctx;
61 avctx->pix_fmt = PIX_FMT_PAL8;
93 if (y >= s->avctx->height)
114 if (x >= s->avctx->width) {
147 if (y + half_vert >= s->avctx->height)
175 static int mm_decode_frame(AVCodecContext *avctx,
181 MmContext *s = avctx->priv_data;
191 if (avctx->reget_buffer(avctx, &s->frame) < 0) {
192 av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n");
219 static av_cold int mm_decode_end(AVCodecContext *avctx)
221 MmContext *s = avctx->priv_data;
224 avctx->release_buffer(avctx, &s->frame);