Lines Matching defs:avctx
122 static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
125 PicContext *s = avctx->priv_data;
146 avpriv_request_sample(avctx, "Unsupported bit depth");
161 avctx->pix_fmt = AV_PIX_FMT_PAL8;
163 if (av_image_check_size(s->width, s->height, 0, avctx) < 0)
165 if (s->width != avctx->width || s->height != avctx->height) {
166 ret = ff_set_dimensions(avctx, s->width, s->height);
171 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
260 if (plane < s->nb_planes && x < avctx->width) {
261 int run = (y + 1) * avctx->width - x;
269 memcpy(frame->data[0] + y * frame->linesize[0], s->g.buffer, FFMIN(avctx->width, bytestream2_get_bytes_left(&s->g)));
270 bytestream2_skip(&s->g, avctx->width);