mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng17] Removed #ifdef PNG_16BIT_SUPPORTED/#endif around png_product2(); it is
needed by png_reciprocal2().
Added #ifdef PNG_16BIT_SUPPORTED/#endif around png_log16bit() and
png_do_swap().
This commit is contained in:
8
ANNOUNCE
8
ANNOUNCE
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Libpng 1.7.0beta41 - November 6, 2014
|
Libpng 1.7.0beta41 - November 7, 2014
|
||||||
|
|
||||||
This is not intended to be a public release. It will be replaced
|
This is not intended to be a public release. It will be replaced
|
||||||
within a few weeks by a public version or by another test version.
|
within a few weeks by a public version or by another test version.
|
||||||
@@ -643,7 +643,11 @@ Version 1.7.0beta40 [November 6, 2014]
|
|||||||
numeric constant. This adds appropriate, safe, casts to make the
|
numeric constant. This adds appropriate, safe, casts to make the
|
||||||
warnings go away.
|
warnings go away.
|
||||||
|
|
||||||
Version 1.7.0beta41 [November 6, 2014]
|
Version 1.7.0beta41 [November 7, 2014]
|
||||||
|
Removed #ifdef PNG_16BIT_SUPPORTED/#endif around png_product2(); it is
|
||||||
|
needed by png_reciprocal2().
|
||||||
|
Added #ifdef PNG_16BIT_SUPPORTED/#endif around png_log16bit() and
|
||||||
|
png_do_swap().
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
|||||||
6
CHANGES
6
CHANGES
@@ -4932,7 +4932,11 @@ Version 1.7.0beta40 [November 6, 2014]
|
|||||||
numeric constant. This adds appropriate, safe, casts to make the
|
numeric constant. This adds appropriate, safe, casts to make the
|
||||||
warnings go away.
|
warnings go away.
|
||||||
|
|
||||||
Version 1.7.0beta41 [November 6, 2014]
|
Version 1.7.0beta41 [November 7, 2014]
|
||||||
|
Removed #ifdef PNG_16BIT_SUPPORTED/#endif around png_product2(); it is
|
||||||
|
needed by png_reciprocal2().
|
||||||
|
Added #ifdef PNG_16BIT_SUPPORTED/#endif around png_log16bit() and
|
||||||
|
png_do_swap().
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
|||||||
10
png.c
10
png.c
@@ -691,13 +691,13 @@ png_get_copyright(png_const_structrp png_ptr)
|
|||||||
#else
|
#else
|
||||||
# ifdef __STDC__
|
# ifdef __STDC__
|
||||||
return PNG_STRING_NEWLINE \
|
return PNG_STRING_NEWLINE \
|
||||||
"libpng version 1.7.0beta41 - November 6, 2014" PNG_STRING_NEWLINE \
|
"libpng version 1.7.0beta41 - November 7, 2014" PNG_STRING_NEWLINE \
|
||||||
"Copyright (c) 1998-2014 Glenn Randers-Pehrson" PNG_STRING_NEWLINE \
|
"Copyright (c) 1998-2014 Glenn Randers-Pehrson" PNG_STRING_NEWLINE \
|
||||||
"Copyright (c) 1996-1997 Andreas Dilger" PNG_STRING_NEWLINE \
|
"Copyright (c) 1996-1997 Andreas Dilger" PNG_STRING_NEWLINE \
|
||||||
"Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc." \
|
"Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc." \
|
||||||
PNG_STRING_NEWLINE;
|
PNG_STRING_NEWLINE;
|
||||||
# else
|
# else
|
||||||
return "libpng version 1.7.0beta41 - November 6, 2014\
|
return "libpng version 1.7.0beta41 - November 7, 2014\
|
||||||
Copyright (c) 1998-2014 Glenn Randers-Pehrson\
|
Copyright (c) 1998-2014 Glenn Randers-Pehrson\
|
||||||
Copyright (c) 1996-1997 Andreas Dilger\
|
Copyright (c) 1996-1997 Andreas Dilger\
|
||||||
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.";
|
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.";
|
||||||
@@ -3277,7 +3277,7 @@ png_gamma_significant(png_fixed_point gamma_val)
|
|||||||
|
|
||||||
#ifdef PNG_READ_GAMMA_SUPPORTED
|
#ifdef PNG_READ_GAMMA_SUPPORTED
|
||||||
/* A local convenience routine. */
|
/* A local convenience routine. */
|
||||||
#ifndef PNG_FLOATING_ARITHMETIC_SUPPORTED
|
#if defined(PNG_16BIT_SUPPORTED) || !defined(PNG_FLOATING_ARITHMETIC_SUPPORTED)
|
||||||
static png_fixed_point
|
static png_fixed_point
|
||||||
png_product2(png_fixed_point a, png_fixed_point b)
|
png_product2(png_fixed_point a, png_fixed_point b)
|
||||||
{
|
{
|
||||||
@@ -3298,7 +3298,7 @@ png_product2(png_fixed_point a, png_fixed_point b)
|
|||||||
|
|
||||||
return 0; /* overflow */
|
return 0; /* overflow */
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* PNG_16BIT_SUPPORTED || !PNG_FLOATING_ARITHMETIC_SUPPORTED */
|
||||||
|
|
||||||
/* The inverse of the above. */
|
/* The inverse of the above. */
|
||||||
png_fixed_point
|
png_fixed_point
|
||||||
@@ -3450,6 +3450,7 @@ png_log8bit(unsigned int x)
|
|||||||
* Zero (257): 0
|
* Zero (257): 0
|
||||||
* End (258): 23499
|
* End (258): 23499
|
||||||
*/
|
*/
|
||||||
|
#ifdef PNG_16BIT_SUPPORTED
|
||||||
static png_int_32
|
static png_int_32
|
||||||
png_log16bit(png_uint_32 x)
|
png_log16bit(png_uint_32 x)
|
||||||
{
|
{
|
||||||
@@ -3500,6 +3501,7 @@ png_log16bit(png_uint_32 x)
|
|||||||
/* Safe, because the result can't have more than 20 bits: */
|
/* Safe, because the result can't have more than 20 bits: */
|
||||||
return (png_int_32)((lg2 + 2048) >> 12);
|
return (png_int_32)((lg2 + 2048) >> 12);
|
||||||
}
|
}
|
||||||
|
#endif /* 16BIT */
|
||||||
|
|
||||||
/* The 'exp()' case must invert the above, taking a 20-bit fixed point
|
/* The 'exp()' case must invert the above, taking a 20-bit fixed point
|
||||||
* logarithmic value and returning a 16 or 8-bit number as appropriate. In
|
* logarithmic value and returning a 16 or 8-bit number as appropriate. In
|
||||||
|
|||||||
@@ -538,9 +538,11 @@ png_do_write_transformations(png_structrp png_ptr, png_row_infop row_info)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PNG_WRITE_SWAP_SUPPORTED
|
#ifdef PNG_WRITE_SWAP_SUPPORTED
|
||||||
|
# ifdef PNG_16BIT_SUPPORTED
|
||||||
if ((png_ptr->transformations & PNG_SWAP_BYTES) != 0)
|
if ((png_ptr->transformations & PNG_SWAP_BYTES) != 0)
|
||||||
png_do_swap(row_info, png_ptr->row_buf + 1);
|
png_do_swap(row_info, png_ptr->row_buf + 1);
|
||||||
# endif
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef PNG_WRITE_SHIFT_SUPPORTED
|
#ifdef PNG_WRITE_SHIFT_SUPPORTED
|
||||||
if ((png_ptr->transformations & PNG_SHIFT) != 0)
|
if ((png_ptr->transformations & PNG_SHIFT) != 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user