Lines Matching defs:avctx
49 AVCodecContext *avctx;
57 static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
62 EightBpsContext * const c = avctx->priv_data;
65 unsigned int height = avctx->height; // Real image height
77 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
85 px_inc = planes + (avctx->pix_fmt == AV_PIX_FMT_0RGB32);
128 if (avctx->bits_per_coded_sample <= 8) {
129 frame->palette_has_changed = ff_copy_palette(c->pal, avpkt, avctx);
140 static av_cold int decode_init(AVCodecContext *avctx)
142 EightBpsContext * const c = avctx->priv_data;
144 c->avctx = avctx;
146 switch (avctx->bits_per_coded_sample) {
148 avctx->pix_fmt = AV_PIX_FMT_PAL8;
153 avctx->pix_fmt = ff_get_format(avctx, pixfmt_rgb24);
160 avctx->pix_fmt = AV_PIX_FMT_RGB32;
165 av_log(avctx, AV_LOG_ERROR, "Error: Unsupported color depth: %u.\n",
166 avctx->bits_per_coded_sample);
170 if (avctx->pix_fmt == AV_PIX_FMT_RGB32) {