mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng17 Updated the documentation about CRC and ADLER32 handling.
This commit is contained in:
parent
1757736115
commit
2127ecd0fa
1
ANNOUNCE
1
ANNOUNCE
@ -1409,6 +1409,7 @@ Version 1.7.0beta84 [September 26, 2016]
|
|||||||
Add tests/badcrc.png and tests/badadler.png to tests/pngtest.
|
Add tests/badcrc.png and tests/badadler.png to tests/pngtest.
|
||||||
|
|
||||||
Version 1.7.0beta85 [September 26, 2016]
|
Version 1.7.0beta85 [September 26, 2016]
|
||||||
|
Updated the documentation about CRC and ADLER32 handling.
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
1
CHANGES
1
CHANGES
@ -5709,6 +5709,7 @@ Version 1.7.0beta84 [September 26, 2016]
|
|||||||
Add tests/badcrc.png and tests/badadler.png to tests/pngtest.
|
Add tests/badcrc.png and tests/badadler.png to tests/pngtest.
|
||||||
|
|
||||||
Version 1.7.0beta85 [September 26, 2016]
|
Version 1.7.0beta85 [September 26, 2016]
|
||||||
|
Updated the documentation about CRC and ADLER32 handling.
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
@ -471,8 +471,9 @@ the default, use
|
|||||||
|
|
||||||
The values for png_set_crc_action() say how libpng is to handle CRC errors in
|
The values for png_set_crc_action() say how libpng is to handle CRC errors in
|
||||||
ancillary and critical chunks, and whether to use the data contained
|
ancillary and critical chunks, and whether to use the data contained
|
||||||
therein. Note that it is impossible to "discard" data in a critical
|
therein. Starting with libpng-1.6.26, this also governs how an ADLER32 error
|
||||||
chunk.
|
is handled while reading the IDAT chunk. Note that it is impossible to
|
||||||
|
"discard" data in a critical chunk.
|
||||||
|
|
||||||
Choices for (int) crit_action are
|
Choices for (int) crit_action are
|
||||||
PNG_CRC_DEFAULT 0 error/quit
|
PNG_CRC_DEFAULT 0 error/quit
|
||||||
@ -489,6 +490,9 @@ Choices for (int) ancil_action are
|
|||||||
PNG_CRC_QUIET_USE 4 quiet/use data
|
PNG_CRC_QUIET_USE 4 quiet/use data
|
||||||
PNG_CRC_NO_CHANGE 5 use the current value
|
PNG_CRC_NO_CHANGE 5 use the current value
|
||||||
|
|
||||||
|
When the setting for crit_action is PNG_CRC_QUIET_USE, the CRC and ADLER32
|
||||||
|
checksums are not only ignored, but they are not evaluated.
|
||||||
|
|
||||||
Setting up callback code
|
Setting up callback code
|
||||||
|
|
||||||
You can set up a callback function to handle any unknown chunks in the
|
You can set up a callback function to handle any unknown chunks in the
|
||||||
|
|||||||
8
libpng.3
8
libpng.3
@ -971,8 +971,9 @@ the default, use
|
|||||||
|
|
||||||
The values for png_set_crc_action() say how libpng is to handle CRC errors in
|
The values for png_set_crc_action() say how libpng is to handle CRC errors in
|
||||||
ancillary and critical chunks, and whether to use the data contained
|
ancillary and critical chunks, and whether to use the data contained
|
||||||
therein. Note that it is impossible to "discard" data in a critical
|
therein. Starting with libpng-1.6.26, this also governs how an ADLER32 error
|
||||||
chunk.
|
is handled while reading the IDAT chunk. Note that it is impossible to
|
||||||
|
"discard" data in a critical chunk.
|
||||||
|
|
||||||
Choices for (int) crit_action are
|
Choices for (int) crit_action are
|
||||||
PNG_CRC_DEFAULT 0 error/quit
|
PNG_CRC_DEFAULT 0 error/quit
|
||||||
@ -989,6 +990,9 @@ Choices for (int) ancil_action are
|
|||||||
PNG_CRC_QUIET_USE 4 quiet/use data
|
PNG_CRC_QUIET_USE 4 quiet/use data
|
||||||
PNG_CRC_NO_CHANGE 5 use the current value
|
PNG_CRC_NO_CHANGE 5 use the current value
|
||||||
|
|
||||||
|
When the setting for crit_action is PNG_CRC_QUIET_USE, the CRC and ADLER32
|
||||||
|
checksums are not only ignored, but they are not evaluated.
|
||||||
|
|
||||||
.SS Setting up callback code
|
.SS Setting up callback code
|
||||||
|
|
||||||
You can set up a callback function to handle any unknown chunks in the
|
You can set up a callback function to handle any unknown chunks in the
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user