[master] Imported from libpng-1.4.1beta04.tar

This commit is contained in:
Glenn Randers-Pehrson
2010-01-22 19:30:23 -06:00
parent fb3a1da4bb
commit 86f6c04d84
12 changed files with 152 additions and 38 deletions

View File

@@ -1130,6 +1130,7 @@ png_set_user_limits (png_structp png_ptr, png_uint_32 user_width_max,
png_ptr->user_width_max = user_width_max;
png_ptr->user_height_max = user_height_max;
}
/* This function was added to libpng 1.4.0 */
void PNGAPI
png_set_chunk_cache_max (png_structp png_ptr,
@@ -1143,6 +1144,16 @@ png_set_chunk_cache_max (png_structp png_ptr,
else
png_ptr->user_chunk_cache_max = user_chunk_cache_max + 1;
}
/* This function was added to libpng 1.4.1 */
void PNGAPI
png_set_chunk_malloc_max (png_structp png_ptr,
png_uint_32 user_chunk_malloc_max)
{
if (png_ptr == NULL)
return;
png_ptr->user_chunk_malloc_max = user_chunk_malloc_max;
}
#endif /* ?PNG_SET_USER_LIMITS_SUPPORTED */