Lines Matching refs: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,
206 SgiState *s = avctx->priv_data;
214 av_log(avctx, AV_LOG_ERROR, "buf_size too small (%d)\n", avpkt->size);
220 av_log(avctx, AV_LOG_ERROR, "bad magic number\n");
232 av_log(avctx, AV_LOG_ERROR, "wrong channel number\n");
238 av_log(avctx, AV_LOG_ERROR, "wrong dimension number\n");
243 avctx->pix_fmt = s->bytes_per_channel == 2 ? AV_PIX_FMT_GRAY16BE : AV_PIX_FMT_GRAY8;
245 avctx->pix_fmt = s->bytes_per_channel == 2 ? AV_PIX_FMT_RGB48BE : AV_PIX_FMT_RGB24;
247 avctx->pix_fmt = s->bytes_per_channel == 2 ? AV_PIX_FMT_RGBA64BE : AV_PIX_FMT_RGBA;
249 av_log(avctx, AV_LOG_ERROR, "wrong picture format\n");
253 ret = ff_set_dimensions(avctx, s->width, s->height);
257 if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
282 static av_cold int sgi_decode_init(AVCodecContext *avctx)
284 SgiState *s = avctx->priv_data;
286 s->avctx = avctx;