[libpng16] Improved pngstest speed by not doing redundant tests and add const

to the background parameter of png_image_finish_read. The --background
option is now done automagically only when required, so that commandline
option no longer exists.
This commit is contained in:
John Bowler
2012-01-28 23:19:42 -06:00
committed by Glenn Randers-Pehrson
parent 05cbe5ae28
commit 40ca77a721
6 changed files with 181 additions and 59 deletions

View File

@@ -1191,7 +1191,7 @@ typedef struct
png_voidp buffer;
png_int_32 row_stride;
png_voidp colormap;
png_colorp background;
png_const_colorp background;
/* Local variables: */
png_bytep local_row;
png_bytep first_row;
@@ -3882,8 +3882,8 @@ png_image_read_direct(png_voidp argument)
}
int PNGAPI
png_image_finish_read(png_imagep image, png_colorp background, void *buffer,
png_int_32 row_stride, void *colormap)
png_image_finish_read(png_imagep image, png_const_colorp background,
void *buffer, png_int_32 row_stride, void *colormap)
{
if (image != NULL && image->version == PNG_IMAGE_VERSION)
{