mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng16] Backport recent changes from libpng-1.7.0beta30 and beta31.
This commit is contained in:
committed by
Glenn Randers-Pehrson
parent
685dff485e
commit
414d7b5f7d
22
pngrtran.c
22
pngrtran.c
@@ -1363,12 +1363,12 @@ png_init_read_transformations(png_structrp png_ptr)
|
||||
* 12) PNG_EXPAND_16
|
||||
* 13) PNG_GRAY_TO_RGB iff PNG_BACKGROUND_IS_GRAY
|
||||
* 14) PNG_INVERT_MONO
|
||||
* 15) PNG_SHIFT
|
||||
* 16) PNG_PACK
|
||||
* 17) PNG_BGR
|
||||
* 18) PNG_PACKSWAP
|
||||
* 19) PNG_FILLER (includes PNG_ADD_ALPHA)
|
||||
* 20) PNG_INVERT_ALPHA
|
||||
* 15) PNG_INVERT_ALPHA
|
||||
* 16) PNG_SHIFT
|
||||
* 17) PNG_PACK
|
||||
* 18) PNG_BGR
|
||||
* 19) PNG_PACKSWAP
|
||||
* 20) PNG_FILLER (includes PNG_ADD_ALPHA)
|
||||
* 21) PNG_SWAP_ALPHA
|
||||
* 22) PNG_SWAP_BYTES
|
||||
* 23) PNG_USER_TRANSFORM [must be last]
|
||||
@@ -4907,6 +4907,11 @@ png_do_read_transformations(png_structrp png_ptr, png_row_infop row_info)
|
||||
png_do_invert(row_info, png_ptr->row_buf + 1);
|
||||
#endif
|
||||
|
||||
#ifdef PNG_READ_INVERT_ALPHA_SUPPORTED
|
||||
if (png_ptr->transformations & PNG_INVERT_ALPHA)
|
||||
png_do_read_invert_alpha(row_info, png_ptr->row_buf + 1);
|
||||
#endif
|
||||
|
||||
#ifdef PNG_READ_SHIFT_SUPPORTED
|
||||
if (png_ptr->transformations & PNG_SHIFT)
|
||||
png_do_unshift(row_info, png_ptr->row_buf + 1,
|
||||
@@ -4941,11 +4946,6 @@ png_do_read_transformations(png_structrp png_ptr, png_row_infop row_info)
|
||||
(png_uint_32)png_ptr->filler, png_ptr->flags);
|
||||
#endif
|
||||
|
||||
#ifdef PNG_READ_INVERT_ALPHA_SUPPORTED
|
||||
if (png_ptr->transformations & PNG_INVERT_ALPHA)
|
||||
png_do_read_invert_alpha(row_info, png_ptr->row_buf + 1);
|
||||
#endif
|
||||
|
||||
#ifdef PNG_READ_SWAP_ALPHA_SUPPORTED
|
||||
if (png_ptr->transformations & PNG_SWAP_ALPHA)
|
||||
png_do_read_swap_alpha(row_info, png_ptr->row_buf + 1);
|
||||
|
||||
Reference in New Issue
Block a user