[libpng14] Imported from libpng-1.4.11.tar

This commit is contained in:
Glenn Randers-Pehrson
2012-03-29 00:02:43 -05:00
parent 7d76ba7393
commit b157898378
37 changed files with 129 additions and 116 deletions

View File

@@ -1,8 +1,8 @@
/* pngrtran.c - transforms the data in a row for PNG readers
*
* Last changed in libpng 1.4.8 [July 7, 2011]
* Copyright (c) 1998-2011 Glenn Randers-Pehrson
* Last changed in libpng 1.4.11 [March 29, 2012]
* Copyright (c) 1998-2012 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
*
@@ -1159,6 +1159,7 @@ png_init_read_transformations(png_structp png_ptr)
#ifdef PNG_READ_SHIFT_SUPPORTED
if ((png_ptr->transformations & PNG_SHIFT) &&
!(png_ptr->transformations & PNG_EXPAND) &&
(color_type == PNG_COLOR_TYPE_PALETTE))
{
png_uint_16 i;
@@ -1179,6 +1180,8 @@ png_init_read_transformations(png_structp png_ptr)
png_ptr->palette[i].green >>= sg;
png_ptr->palette[i].blue >>= sb;
}
png_ptr->transformations &= ~PNG_SHIFT;
}
#endif /* PNG_READ_SHIFT_SUPPORTED */
}