Lines Matching defs:avctx
306 static int xpm_decode_frame(AVCodecContext *avctx, AVFrame *p,
309 XPMDecContext *x = avctx->priv_data;
316 avctx->pix_fmt = AV_PIX_FMT_BGRA;
330 av_log(avctx, AV_LOG_ERROR, "missing signature\n");
337 av_log(avctx, AV_LOG_ERROR, "missing image parameters\n");
341 if ((ret = ff_set_dimensions(avctx, width, height)) < 0)
345 av_log(avctx, AV_LOG_ERROR, "unsupported/invalid number of chars per pixel: %d\n", cpp);
354 av_log(avctx, AV_LOG_ERROR, "invalid number of colors: %d\n", ncolors);
367 if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
402 for (i = 0; i < avctx->height; i++) {
410 for (j = 0; j < avctx->width; j++) {
431 static av_cold int xpm_decode_close(AVCodecContext *avctx)
433 XPMDecContext *x = avctx->priv_data;