Lines Matching defs:avctx
76 static av_cold int cdg_decode_init(AVCodecContext *avctx)
78 CDGraphicsContext *cc = avctx->priv_data;
87 avctx->pix_fmt = AV_PIX_FMT_PAL8;
88 return ff_set_dimensions(avctx, CDG_FULL_WIDTH, CDG_FULL_HEIGHT);
265 static int cdg_decode_frame(AVCodecContext *avctx, AVFrame *frame,
273 CDGraphicsContext *cc = avctx->priv_data;
276 av_log(avctx, AV_LOG_ERROR, "buffer too small for decoder\n");
280 av_log(avctx, AV_LOG_ERROR, "buffer too big for decoder\n");
286 if ((ret = ff_reget_buffer(avctx, cc->frame, 0)) < 0)
289 memset(cc->frame->data[0], 0, cc->frame->linesize[0] * avctx->height);
310 av_log(avctx, AV_LOG_ERROR, "buffer too small for loading palette\n");
322 av_log(avctx, AV_LOG_ERROR, "buffer too small for drawing tile\n");
328 av_log(avctx, AV_LOG_ERROR, "tile is out of range\n");
335 av_log(avctx, AV_LOG_ERROR, "buffer too small for scrolling\n");
339 if ((ret = ff_get_buffer(avctx, frame, AV_GET_BUFFER_FLAG_REF)) < 0)
369 static void cdg_decode_flush(AVCodecContext *avctx)
371 CDGraphicsContext *cc = avctx->priv_data;
376 memset(cc->frame->data[0], 0, cc->frame->linesize[0] * avctx->height);
377 if (!avctx->frame_number)
381 static av_cold int cdg_decode_end(AVCodecContext *avctx)
383 CDGraphicsContext *cc = avctx->priv_data;