summaryrefslogtreecommitdiffstats
path: root/libavcodec/png.h
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-07-15 19:23:55 +0000
committerMåns Rullgård <mans@mansr.com>2007-07-15 19:23:55 +0000
commite0eddd1269cc81a6e3b685adb2080b4208489e7c (patch)
treeabcf1a58de17a20a17549af5b9cf1ea71240e713 /libavcodec/png.h
parent9a5a05d0b37b7a9345e928290c54af20528ac27f (diff)
downloadffmpeg-streaming-e0eddd1269cc81a6e3b685adb2080b4208489e7c.zip
ffmpeg-streaming-e0eddd1269cc81a6e3b685adb2080b4208489e7c.tar.gz
hardly anything in PNGContext is shared; split it
Originally committed as revision 9689 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/png.h')
-rw-r--r--libavcodec/png.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/libavcodec/png.h b/libavcodec/png.h
index fb5ec06..c407efd 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
OpenPOWER on IntegriCloud