mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[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:
committed by
Glenn Randers-Pehrson
parent
05cbe5ae28
commit
40ca77a721
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user