Lines Matching defs:avctx
56 AVCodecContext *avctx;
76 static av_cold int xan_decode_end(AVCodecContext *avctx)
78 XanContext *s = avctx->priv_data;
89 static av_cold int xan_decode_init(AVCodecContext *avctx)
91 XanContext *s = avctx->priv_data;
93 s->avctx = avctx;
96 avctx->pix_fmt = AV_PIX_FMT_PAL8;
98 s->buffer1_size = avctx->width * avctx->height;
102 s->buffer2_size = avctx->width * avctx->height;
216 int width = s->avctx->width;
248 int width = s->avctx->width;
251 if (y + motion_y < 0 || y + motion_y >= s->avctx->height ||
252 x + motion_x < 0 || x + motion_x >= s->avctx->width)
267 avpriv_request_sample(s->avctx, "Overlapping copy");
300 int width = s->avctx->width;
301 int height = s->avctx->height;
392 av_log(s->avctx, AV_LOG_ERROR, "size_segment overread\n");
401 av_log(s->avctx, AV_LOG_ERROR, "size_segment overread\n");
410 av_log(s->avctx, AV_LOG_ERROR, "size_segment overread\n");
436 av_log(s->avctx, AV_LOG_ERROR, "vector_segment overread\n");
541 static int xan_decode_frame(AVCodecContext *avctx, AVFrame *frame,
546 XanContext *s = avctx->priv_data;
559 av_log(avctx, AV_LOG_ERROR, "Invalid tag size %d\n", size);
596 av_log(avctx, AV_LOG_ERROR, "Invalid palette selected\n");
608 av_log(s->avctx, AV_LOG_ERROR, "No palette found\n");
612 if ((ret = ff_get_buffer(avctx, frame, AV_GET_BUFFER_FLAG_REF)) < 0)
616 s->frame_size = frame->linesize[0] * s->avctx->height;