From e0eddd1269cc81a6e3b685adb2080b4208489e7c Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Sun, 15 Jul 2007 19:23:55 +0000 Subject: hardly anything in PNGContext is shared; split it Originally committed as revision 9689 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/png.h | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'libavcodec/png.h') diff --git a/libavcodec/png.h b/libavcodec/png.h index fb5ec06122..c407efd802 100644 --- a/libavcodec/png.h +++ b/libavcodec/png.h @@ -48,40 +48,6 @@ #define NB_PASSES 7 -#define IOBUF_SIZE 4096 - -typedef struct PNGContext { - uint8_t *bytestream; - uint8_t *bytestream_start; - uint8_t *bytestream_end; - AVFrame picture; - - int state; - int width, height; - int bit_depth; - int color_type; - int compression_type; - int interlace_type; - int filter_type; - int channels; - int bits_per_pixel; - int bpp; - - uint8_t *image_buf; - int image_linesize; - uint32_t palette[256]; - uint8_t *crow_buf; - uint8_t *last_row; - uint8_t *tmp_row; - int pass; - int crow_size; /* compressed row size (include filter type) */ - int row_size; /* decompressed row size */ - int pass_row_size; /* decompress row size of the current pass */ - int y; - z_stream zstream; - uint8_t buf[IOBUF_SIZE]; -} PNGContext; - extern const uint8_t ff_pngsig[8]; /* Mask to determine which y pixels are valid in a pass */ @@ -106,6 +72,4 @@ extern int ff_png_get_nb_channels(int color_type); /* compute the row size of an interleaved pass */ extern int ff_png_pass_row_size(int pass, int bits_per_pixel, int width); -extern int ff_png_common_init(AVCodecContext *avctx); - #endif -- cgit v1.2.3