[libpng15] Reverted previous change; removed png_get_compression_buffer() API.

It is too risky. Exactly how png_ptr->zbuf is used is under control of the
individual chunk implementation and there could easily be significant changes
within a major release.
This commit is contained in:
Glenn Randers-Pehrson
2011-10-13 20:30:02 -05:00
parent d3dcb463d6
commit d58251b47e
9 changed files with 19 additions and 60 deletions

View File

@@ -1068,16 +1068,6 @@ png_get_compression_buffer_size(png_const_structp png_ptr)
return (png_ptr ? png_ptr->zbuf_size : 0);
}
#ifdef PNG_GET_COMPRESSION_BUFFER_SUPPORTED
/* New in libpng-1.5.6 */
png_bytep PNGAPI
png_get_compression_buffer(png_const_structp png_ptr)
{
return (png_ptr ? png_ptr->zbuf : 0);
}
#endif
#ifdef PNG_SET_USER_LIMITS_SUPPORTED
/* These functions were added to libpng 1.2.6 and were enabled
* by default in libpng-1.4.0 */