Lines Matching refs:avctx
29 static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
44 av_log(avctx, AV_LOG_ERROR, "this is not sunras encoded data\n");
57 avpriv_request_sample(avctx, "TIFF/IFF/EXPERIMENTAL (compression) type");
61 av_log(avctx, AV_LOG_ERROR, "invalid (compression) type\n");
65 avpriv_request_sample(avctx, "Unknown colormap type");
69 av_log(avctx, AV_LOG_ERROR, "invalid colormap type\n");
74 av_log(avctx, AV_LOG_ERROR, "unsupported (compression) type\n");
80 avctx->pix_fmt = maplength ? AV_PIX_FMT_PAL8 : AV_PIX_FMT_MONOWHITE;
83 avctx->pix_fmt = maplength ? AV_PIX_FMT_PAL8 : AV_PIX_FMT_NONE;
86 avctx->pix_fmt = maplength ? AV_PIX_FMT_PAL8 : AV_PIX_FMT_GRAY8;
89 avctx->pix_fmt = (type == RT_FORMAT_RGB) ? AV_PIX_FMT_RGB24 : AV_PIX_FMT_BGR24;
92 avctx->pix_fmt = (type == RT_FORMAT_RGB) ? AV_PIX_FMT_0RGB : AV_PIX_FMT_0BGR;
95 av_log(avctx, AV_LOG_ERROR, "invalid depth\n");
99 ret = ff_set_dimensions(avctx, w, h);
103 if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
112 av_log(avctx, AV_LOG_WARNING, "useless colormap found or file is corrupted, trying to recover\n");
118 av_log(avctx, AV_LOG_WARNING, "invalid colormap length\n");
178 if (avctx->pix_fmt == AV_PIX_FMT_PAL8 && depth < 8) {