Lines Matching defs:avctx
37 static av_cold int decode_init(AVCodecContext *avctx)
39 AnmContext *s = avctx->priv_data;
43 if (avctx->extradata_size < 16 * 8 + 4 * 256)
46 avctx->pix_fmt = AV_PIX_FMT_PAL8;
52 bytestream2_init(&gb, avctx->extradata, avctx->extradata_size);
111 static int decode_frame(AVCodecContext *avctx, AVFrame *rframe,
114 AnmContext *s = avctx->priv_data;
123 if ((ret = ff_reget_buffer(avctx, s->frame, 0)) < 0)
126 dst_end = s->frame->data[0] + s->frame->linesize[0]*avctx->height;
131 avpriv_request_sample(avctx, "Unknown record type");
135 avpriv_request_sample(avctx, "Padding bytes");
143 op(&dst, dst_end, (gb), (pixel), (count), &x, avctx->width, s->frame->linesize[0])
164 avpriv_request_sample(avctx, "Unknown opcode");
184 static av_cold int decode_end(AVCodecContext *avctx)
186 AnmContext *s = avctx->priv_data;