diff png.h @ 5339:a8c48a070cff libavcodec

hardly anything in PNGContext is shared; split it
author mru
date Sun, 15 Jul 2007 19:23:55 +0000
parents 26f4095e35d2
children 6dc4826a38da
line wrap: on
line diff
--- a/png.h	Sun Jul 15 19:03:12 2007 +0000
+++ b/png.h	Sun Jul 15 19:23:55 2007 +0000
@@ -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 @@
 /* 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