Lines Matching defs:avctx
90 static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
93 MWSCContext *s = avctx->priv_data;
104 av_log(avctx, AV_LOG_ERROR, "Inflate reset error: %d\n", ret);
113 av_log(avctx, AV_LOG_ERROR, "Inflate error: %d\n", ret);
117 if ((ret = ff_get_buffer(avctx, frame, AV_GET_BUFFER_FLAG_REF)) < 0)
121 bytestream2_init(&gbp, s->prev_frame->data[0], avctx->height * s->prev_frame->linesize[0]);
122 bytestream2_init_writer(&pb, frame->data[0], avctx->height * frame->linesize[0]);
124 frame->key_frame = rle_uncompress(&gb, &pb, &gbp, avctx->width, avctx->height, avctx->width * 3,
138 static av_cold int decode_init(AVCodecContext *avctx)
140 MWSCContext *s = avctx->priv_data;
143 avctx->pix_fmt = AV_PIX_FMT_BGR24;
145 size = 32LL * avctx->height * avctx->width;
156 return ff_inflate_init(&s->zstream, avctx);
159 static av_cold int decode_close(AVCodecContext *avctx)
161 MWSCContext *s = avctx->priv_data;