Lines Matching defs:avctx
39 static void decode_flush(AVCodecContext *avctx)
41 KgvContext * const c = avctx->priv_data;
47 static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
52 KgvContext * const c = avctx->priv_data;
68 if (w != avctx->width || h != avctx->height) {
71 if ((res = ff_set_dimensions(avctx, w, h)) < 0)
76 c->frame_buffer = av_mallocz(avctx->width * avctx->height * 2);
77 c->last_frame_buffer = av_mallocz(avctx->width * avctx->height * 2);
79 decode_flush(avctx);
86 if ((res = ff_get_buffer(avctx, frame, 0)) < 0)
124 av_log(avctx, AV_LOG_ERROR,
154 av_log(avctx, AV_LOG_DEBUG, "frame finished with %d diff\n", outcnt - maxcnt);
157 (const uint8_t*)c->frame_buffer, avctx->width * 2,
158 avctx->width * 2, avctx->height);
166 static av_cold int decode_init(AVCodecContext *avctx)
168 avctx->pix_fmt = AV_PIX_FMT_RGB555;
173 static av_cold int decode_end(AVCodecContext *avctx)
175 decode_flush(avctx);