Lines Matching defs:avctx
61 static av_cold int sga_decode_init(AVCodecContext *avctx)
63 avctx->pix_fmt = AV_PIX_FMT_PAL8;
201 static int lzss_decompress(AVCodecContext *avctx,
251 static int decode_palmapdata(AVCodecContext *avctx)
253 SGAVideoContext *s = avctx->priv_data;
275 static int decode_tiledata(AVCodecContext *avctx)
277 SGAVideoContext *s = avctx->priv_data;
309 static int sga_decode_frame(AVCodecContext *avctx, AVFrame *frame,
312 SGAVideoContext *s = avctx->priv_data;
327 if ((ret = ff_set_dimensions(avctx,
333 avctx->width * avctx->height);
342 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
353 av_log(avctx, AV_LOG_DEBUG, "type: %X flags: %X nb_tiles: %d\n", type, s->flags, s->nb_tiles);
416 ret = lzss_decompress(avctx, &gb2, s->uncompressed + offset,
445 ret = lzss_decompress(avctx, gb, s->uncompressed + s->metadata_size,
469 ret = decode_tiledata(avctx);
475 ret = decode_palmapdata(avctx);
495 av_log(avctx, AV_LOG_ERROR, "Unknown type: %X\n", type);
509 static av_cold int sga_decode_end(AVCodecContext *avctx)
511 SGAVideoContext *s = avctx->priv_data;