Lines Matching defs:avctx
40 AVCodecContext *avctx;
91 av_log(s->avctx, AV_LOG_ERROR, "inflate returned error %d\n", ret);
102 av_log(s->avctx, AV_LOG_WARNING,
110 static int decode_frame_lscr(AVCodecContext *avctx, AVFrame *rframe,
113 LSCRContext *const s = avctx->priv_data;
129 ret = ff_reget_buffer(avctx, frame,
151 if (w <= 0 || x < 0 || x >= avctx->width || w + x > avctx->width ||
152 h <= 0 || y < 0 || y >= avctx->height || h + y > avctx->height)
158 (w == avctx->width) &&
159 (h == avctx->height) &&
185 s->image_buf = frame->data[0] + (avctx->height - y - 1) * frame->linesize[0] + x * 3;
212 static int lscr_decode_close(AVCodecContext *avctx)
214 LSCRContext *s = avctx->priv_data;
224 static int lscr_decode_init(AVCodecContext *avctx)
226 LSCRContext *s = avctx->priv_data;
228 avctx->color_range = AVCOL_RANGE_JPEG;
229 avctx->pix_fmt = AV_PIX_FMT_BGR24;
231 s->avctx = avctx;
238 return ff_inflate_init(&s->zstream, avctx);
241 static void lscr_decode_flush(AVCodecContext *avctx)
243 LSCRContext *s = avctx->priv_data;