Lines Matching refs:avctx
40 static av_cold int decode_init(AVCodecContext *avctx)
42 JvContext *s = avctx->priv_data;
43 avctx->pix_fmt = PIX_FMT_PAL8;
44 dsputil_init(&s->dsp, avctx);
131 static int decode_frame(AVCodecContext *avctx,
135 JvContext *s = avctx->priv_data;
146 if (avctx->reget_buffer(avctx, &s->frame) < 0) {
147 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
155 for (j = 0; j < avctx->height; j += 8)
156 for (i = 0; i < avctx->width; i += 8)
164 for (j = 0; j < avctx->height; j++)
165 memset(s->frame.data[0] + j*s->frame.linesize[0], v, avctx->width);
168 av_log(avctx, AV_LOG_WARNING, "unsupported frame type %i\n", video_type);
195 static av_cold int decode_close(AVCodecContext *avctx)
197 JvContext *s = avctx->priv_data;
200 avctx->release_buffer(avctx, &s->frame);