Lines Matching defs:avctx
43 static av_cold int decode_init(AVCodecContext *avctx)
45 JvContext *s = avctx->priv_data;
47 if (!avctx->width || !avctx->height ||
48 (avctx->width & 7) || (avctx->height & 7)) {
49 av_log(avctx, AV_LOG_ERROR, "Invalid video dimensions: %dx%d\n",
50 avctx->width, avctx->height);
58 avctx->pix_fmt = AV_PIX_FMT_PAL8;
59 ff_blockdsp_init(&s->bdsp, avctx);
147 static int decode_frame(AVCodecContext *avctx, AVFrame *rframe,
150 JvContext *s = avctx->priv_data;
164 av_log(avctx, AV_LOG_ERROR, "video size %d invalid\n", video_size);
172 if ((ret = ff_reget_buffer(avctx, s->frame, 0)) < 0)
175 if (avctx->height/8 * (avctx->width/8) > 4 * video_size) {
176 av_log(avctx, AV_LOG_ERROR, "Insufficient input data for dimensions\n");
180 for (j = 0; j < avctx->height; j += 8)
181 for (i = 0; i < avctx->width; i += 8)
191 if ((ret = ff_get_buffer(avctx, s->frame, AV_GET_BUFFER_FLAG_REF)) < 0)
194 for (j = 0; j < avctx->height; j++)
196 v, avctx->width);
198 av_log(avctx, AV_LOG_WARNING,
228 static av_cold int decode_close(AVCodecContext *avctx)
230 JvContext *s = avctx->priv_data;