Lines Matching defs:avctx
31 static int sunrast_decode_frame(AVCodecContext *avctx, AVFrame *p,
45 av_log(avctx, AV_LOG_ERROR, "this is not sunras encoded data\n");
58 avpriv_request_sample(avctx, "TIFF/IFF/EXPERIMENTAL (compression) type");
62 av_log(avctx, AV_LOG_ERROR, "invalid (compression) type\n");
66 avpriv_request_sample(avctx, "Unknown colormap type");
70 av_log(avctx, AV_LOG_ERROR, "invalid colormap type\n");
75 av_log(avctx, AV_LOG_ERROR, "unsupported (compression) type\n");
80 av_log(avctx, AV_LOG_WARNING, "invalid colormap length\n");
87 avctx->pix_fmt = maplength ? AV_PIX_FMT_PAL8 : AV_PIX_FMT_MONOWHITE;
90 avctx->pix_fmt = maplength ? AV_PIX_FMT_PAL8 : AV_PIX_FMT_NONE;
93 avctx->pix_fmt = maplength ? AV_PIX_FMT_PAL8 : AV_PIX_FMT_GRAY8;
96 avctx->pix_fmt = (type == RT_FORMAT_RGB) ? AV_PIX_FMT_RGB24 : AV_PIX_FMT_BGR24;
99 avctx->pix_fmt = (type == RT_FORMAT_RGB) ? AV_PIX_FMT_0RGB : AV_PIX_FMT_0BGR;
102 av_log(avctx, AV_LOG_ERROR, "invalid depth\n");
107 ret = ff_set_dimensions(avctx, w, h);
125 if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
131 av_log(avctx, AV_LOG_WARNING, "useless colormap found or file is corrupted, trying to recover\n");
137 av_log(avctx, AV_LOG_WARNING, "invalid colormap length\n");
193 if (avctx->pix_fmt == AV_PIX_FMT_PAL8 && depth < 8) {