Lines Matching defs:avctx
51 AVCodecContext *avctx;
57 static av_cold int mm_decode_init(AVCodecContext *avctx)
59 MmContext *s = avctx->priv_data;
61 s->avctx = avctx;
63 avctx->pix_fmt = AV_PIX_FMT_PAL8;
65 if (!avctx->width || !avctx->height ||
66 (avctx->width & 1) || (avctx->height & 1)) {
67 av_log(avctx, AV_LOG_ERROR, "Invalid video dimensions: %dx%d\n",
68 avctx->width, avctx->height);
101 if (y >= s->avctx->height)
115 if (run_length > s->avctx->width - x)
120 if (half_vert && y + half_vert < s->avctx->height)
125 if (x >= s->avctx->width) {
159 if (y + half_vert >= s->avctx->height)
166 if (x + half_horiz >= s->avctx->width)
189 static int mm_decode_frame(AVCodecContext *avctx, AVFrame *rframe,
194 MmContext *s = avctx->priv_data;
204 if ((res = ff_reget_buffer(avctx, s->frame, 0)) < 0)
232 static av_cold int mm_decode_end(AVCodecContext *avctx)
234 MmContext *s = avctx->priv_data;