Lines Matching defs:avctx
30 AVCodecContext *avctx;
64 av_log(s->avctx, AV_LOG_ERROR, "Invalid pixel count.\n");
102 av_log(s->avctx, AV_LOG_ERROR, "Invalid pixel count.\n");
202 static int decode_frame(AVCodecContext *avctx, AVFrame *p,
205 SgiState *s = avctx->priv_data;
212 av_log(avctx, AV_LOG_ERROR, "buf_size too small (%d)\n", avpkt->size);
218 av_log(avctx, AV_LOG_ERROR, "bad magic number\n");
230 av_log(avctx, AV_LOG_ERROR, "wrong channel number\n");
236 av_log(avctx, AV_LOG_ERROR, "wrong dimension number\n");
241 avctx->pix_fmt = s->bytes_per_channel == 2 ? AV_PIX_FMT_GRAY16BE : AV_PIX_FMT_GRAY8;
243 avctx->pix_fmt = s->bytes_per_channel == 2 ? AV_PIX_FMT_RGB48BE : AV_PIX_FMT_RGB24;
245 avctx->pix_fmt = s->bytes_per_channel == 2 ? AV_PIX_FMT_RGBA64BE : AV_PIX_FMT_RGBA;
247 av_log(avctx, AV_LOG_ERROR, "wrong picture format\n");
251 ret = ff_set_dimensions(avctx, s->width, s->height);
255 if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
280 static av_cold int sgi_decode_init(AVCodecContext *avctx)
282 SgiState *s = avctx->priv_data;
284 s->avctx = avctx;