Lucas CHOLLET 
							
						 
					 
					
						
						
						
						
							
						
						
							75748d93ce 
							
						 
					 
					
						
						
							
							[libpng16] Add support for reading and writing the cICP chunk  
						
						... 
						
						
						
						This chunk was added in the third edition of the PNG specification and
contains Coding Independent Code Points (related to color space
description). It is fairly simple as it only contains four fields of one
byte each: Colour Primaries, Transfer Function, Matrix Coefficients,
Video Full Range Flag.
The test file originally comes from the related WPT test case:
https://github.com/web-platform-tests/wpt/blob/master/png/support/cicp-display-p3.png 
Note that I reencoded the file to make it match libpng's default
encoding parameters (it only modifies the IDAT chunk).
This is a cherry-pick of commit 65925ad4b2cbed934d5d850fe764dc46c4becbcb
from branch 'libpng18'.
Reviewed-by: John Bowler <jbowler@acm.org>
Reviewed-by: Chris Blume <ProgramMax@gmail.com>
Reviewed-by: Cosmin Truta <ctruta@gmail.com>
Signed-off-by: Cosmin Truta <ctruta@gmail.com> 
						
						
					 
					
						2025-01-02 11:15:20 +02:00 
						 
				 
			
				
					
						
							
							
								John Bowler 
							
						 
					 
					
						
						
						
						
							
						
						
							d7d950e8bd 
							
						 
					 
					
						
						
							
							[libpng16] chore: Clean up the leading blank lines from all source files  
						
						... 
						
						
						
						The leading blank lines are apparently an artefact of an older source
control system.  They are not required and they look like accidents,
because starting a source file with a blank line is not a regular habit
of software developers nowadays.
This is a cherry-pick of commit 37cc20add8fb5b83bb5299a26cd3b41e0f776017
from branch 'libpng18'.
Signed-off-by: John Bowler <jbowler@acm.org>
Signed-off-by: Cosmin Truta <ctruta@gmail.com> 
						
						
					 
					
						2024-10-11 11:51:04 +03:00 
						 
				 
			
				
					
						
							
							
								Cosmin Truta 
							
						 
					 
					
						
						
						
						
							
						
						
							27e548af25 
							
						 
					 
					
						
						
							
							chore: Clean up the return statements and update example.c accordingly  
						
						
						
						
					 
					
						2024-01-23 21:25:03 +02:00 
						 
				 
			
				
					
						
							
							
								Cosmin Truta 
							
						 
					 
					
						
						
						
						
							
						
						
							92b2128a75 
							
						 
					 
					
						
						
							
							chore: Add, relocate or rephrase debug statements, for better clarity  
						
						
						
						
					 
					
						2024-01-23 02:33:54 +02:00 
						 
				 
			
				
					
						
							
							
								Wan-Teh Chang 
							
						 
					 
					
						
						
						
						
							
						
						
							8be5c147d5 
							
						 
					 
					
						
						
							
							Don't report a valid tRNS chunk if it was canceled  
						
						... 
						
						
						
						Add special handling of the PNG_INFO_tRNS flag to png_get_valid() to
not report a canceled tRNS chunk as valid.
Fix https://github.com/glennrp/libpng/issues/482 
Signed-off-by: Cosmin Truta <ctruta@gmail.com> 
						
						
					 
					
						2023-06-20 19:20:38 +03:00 
						 
				 
			
				
					
						
							
							
								Ben Bullock 
							
						 
					 
					
						
						
						
						
							
						
						
							a37d483651 
							
						 
					 
					
						
						
							
							Eliminate spaces between function name and (  
						
						
						
						
					 
					
						2021-03-13 02:37:00 -05:00 
						 
				 
			
				
					
						
							
							
								Cosmin Truta 
							
						 
					 
					
						
						
						
						
							
						
						
							a873893279 
							
						 
					 
					
						
						
							
							Remove the "last changed" version information from source comments  
						
						... 
						
						
						
						This information is maintained by the version control system. 
						
						
					 
					
						2018-07-28 18:47:21 -04:00 
						 
				 
			
				
					
						
							
							
								Cosmin Truta 
							
						 
					 
					
						
						
						
						
							
						
						
							46aedd8961 
							
						 
					 
					
						
						
							
							Release libpng version 1.6.35  
						
						
						
						
					 
					
						2018-07-15 23:58:00 -04:00 
						 
				 
			
				
					
						
							
							
								Cosmin Truta 
							
						 
					 
					
						
						
						
						
							
						
						
							a74aa9a002 
							
						 
					 
					
						
						
							
							[libpng16] Replace the remaining uses of png_size_t with size_t  
						
						... 
						
						
						
						In v1.6.0, size_t became a required type. It should be used
consistently. To maintain backwards compatibility, png_size_t
is still maintained in deprecated form. 
						
						
					 
					
						2018-06-17 22:37:44 -04:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							916117d970 
							
						 
					 
					
						
						
							
							[libpng16] Allow compresion-type to be NULL in png_set_iCCP().  
						
						
						
						
					 
					
						2018-03-29 10:37:12 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							7784cd3f6f 
							
						 
					 
					
						
						
							
							[libpng16] Fix png_get_iCCP() to allow null compression-type  
						
						
						
						
					 
					
						2018-03-28 18:02:32 -05:00 
						 
				 
			
				
					
						
							
							
								luz.paz 
							
						 
					 
					
						
						
						
						
							
						
						
							eb91c0e4ed 
							
						 
					 
					
						
						
							
							More misc. typos  
						
						... 
						
						
						
						found via `codespell-q 3`
please review 
						
						
					 
					
						2018-02-09 06:57:29 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							58720d3c06 
							
						 
					 
					
						
						
							
							[libpng16] Fix "last changed" dates  
						
						
						
						
					 
					
						2017-08-29 12:29:03 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							f6ca33d42c 
							
						 
					 
					
						
						
							
							[libpng16] Bump version to 1.6.33beta01  
						
						
						
						
					 
					
						2017-08-25 18:54:30 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							df7e9dae0c 
							
						 
					 
					
						
						
							
							[libpng16] Imported from libpng-1.6.32.tar  
						
						
						
						
					 
					
						2017-08-24 16:39:02 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							554d4400ab 
							
						 
					 
					
						
						
							
							[libpng16] Fix "const" declaration info_ptr argument to png_get_eXIf_1().  
						
						
						
						
					 
					
						2017-08-04 15:38:41 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							d930d36155 
							
						 
					 
					
						
						
							
							[libpng16] Restored png_get_eXIf_1() and png_set_eXIf_1() because strlen(eXIf_buf)  
						
						... 
						
						
						
						does not work (the eXIf chunk data can contain zeroes). 
						
						
					 
					
						2017-08-03 10:29:10 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							3fa1df48a1 
							
						 
					 
					
						
						
							
							[libpng16] Removed png_get_eXIf_1() and png_set_eXIf_1().  
						
						
						
						
					 
					
						2017-08-02 17:27:41 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							7c709f039f 
							
						 
					 
					
						
						
							
							[libpng16] Restored png_get_eXIf() and png_set_eXIf() to maintain API compatability.  
						
						
						
						
					 
					
						2017-08-02 16:48:11 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							3524b0d201 
							
						 
					 
					
						
						
							
							[libpng16] Update "Last changed" dates and some copyright years  
						
						
						
						
					 
					
						2017-07-31 17:03:17 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							3e753f5cbe 
							
						 
					 
					
						
						
							
							[libpng16] Changed name of png_get_eXIF and png_set_eXIf() to png_get_eXIf_1()  
						
						... 
						
						
						
						and png_set_eXIf_1(), respectively, to avoid breaking API compatibility
with libpng-1.6.31. 
						
						
					 
					
						2017-07-31 16:56:30 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							40afb68570 
							
						 
					 
					
						
						
							
							[libpng16] Added calls to png_handle_eXIf(() in pngread.c and png_write_eXIf()  
						
						... 
						
						
						
						in pngwrite.c, and made various other fixes to png_write_eXIf().
Eliminated png_ptr->num_exif member from pngstruct.h and added num_exif
  to arguments for png_get_eXIf() and png_set_eXIf(). 
						
						
					 
					
						2017-07-31 14:21:46 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							68cb0aaee3 
							
						 
					 
					
						
						
							
							[libpng16] Implement eXIf chunk support  
						
						
						
						
					 
					
						2017-07-13 11:22:48 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							0c440812db 
							
						 
					 
					
						
						
							
							[libpng16] Imported from libpng-1.6.26.tar  
						
						
						
						
					 
					
						2016-10-19 19:11:38 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							3875d9af4c 
							
						 
					 
					
						
						
							
							[libpng16] Quieted 45 (out of 86 remaining) -Wconversion compiler warnings  
						
						
						
						
					 
					
						2016-10-02 17:08:46 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							b50d5cea2b 
							
						 
					 
					
						
						
							
							[libpng16] Imported from libpng-1.6.24.tar  
						
						
						
						
					 
					
						2016-08-03 21:32:26 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							dd70604cec 
							
						 
					 
					
						
						
							
							[libpng16] Fixed more indentation  
						
						
						
						
					 
					
						2016-07-15 11:20:46 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							9295264b6f 
							
						 
					 
					
						
						
							
							[libpng16] Update CHANGES and ANNOUNCE  
						
						
						
						
					 
					
						2016-03-07 07:17:28 -06:00 
						 
				 
			
				
					
						
							
							
								Krishnaraj Bhat 
							
						 
					 
					
						
						
						
						
							
						
						
							46c47291e8 
							
						 
					 
					
						
						
							
							gcc6: fix misleading indentation warning  
						
						... 
						
						
						
						Although not a bug in this case, but shows up when -Wall is used 
						
						
					 
					
						2016-03-07 13:56:15 +05:30 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							4d8de33979 
							
						 
					 
					
						
						
							
							[libpng16] Update copyright uears in source files.  
						
						
						
						
					 
					
						2015-12-13 22:41:17 -06:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							c98f7fb4e3 
							
						 
					 
					
						
						
							
							[libpng16] Imported from libpng-1.6.17.tar  
						
						
						
						
					 
					
						2015-03-26 08:11:12 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							c5370ede95 
							
						 
					 
					
						
						
							
							[libpng16] Reverted "& 0xff" additions of version 1.6.17beta01. Libpng passes  
						
						... 
						
						
						
						the Coverity scan without them. 
						
						
					 
					
						2015-03-21 11:54:32 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							7011a8cec3 
							
						 
					 
					
						
						
							
							[libpng16] Added "& 0xff" to things being typecast to "png_byte".  
						
						
						
						
					 
					
						2015-02-27 18:53:44 -06:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							60a7506744 
							
						 
					 
					
						
						
							
							[libpng16]Allow calling png_get_IHDR() with NULL arguments (Reuben Hawkins).  
						
						
						
						
					 
					
						2015-02-18 12:24:46 -06:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							6ef579df50 
							
						 
					 
					
						
						
							
							[libpng16] Imported from libpng-1.6.17beta01.tar  
						
						
						
						
					 
					
						2015-01-28 19:15:16 -06:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							e8ef689cb9 
							
						 
					 
					
						
						
							
							[libpng16] Imported from libpng-1.6.15.tar  
						
						
						
						
					 
					
						2014-11-20 10:22:57 -06:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							cda68df8c1 
							
						 
					 
					
						
						
							
							[libpng16] Changed "#endif /* PNG_FEATURE_SUPPORTED */" to "#endif /* FEATURE */"  
						
						
						
						
					 
					
						2014-11-06 22:11:39 -06:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							b963feeec6 
							
						 
					 
					
						
						
							
							[libpng16] More cosmetic changes  
						
						
						
						
					 
					
						2014-11-01 13:18:36 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							5d713fe123 
							
						 
					 
					
						
						
							
							[libpng16] Changed remaining "if (!x)" to "if (x == 0)" and "if (x)" to  
						
						... 
						
						
						
						"if (x !== 0)" 
						
						
					 
					
						2014-10-31 20:58:40 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							212fd5745d 
							
						 
					 
					
						
						
							
							[libpng16] Bump version to 1.6.13beta01  
						
						
						
						
					 
					
						2014-06-11 21:13:33 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							e429c66cea 
							
						 
					 
					
						
						
							
							[libpng16] Imported from libpng-1.6.12.tar  
						
						
						
						
					 
					
						2014-06-11 20:41:51 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							da7b692ce0 
							
						 
					 
					
						
						
							
							[libpng16] Bump version to 1.6.12beta01  
						
						
						
						
					 
					
						2014-06-06 11:57:30 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							c4e0f3de64 
							
						 
					 
					
						
						
							
							[libpng16] Imported from libpng-1.6.11.tar  
						
						
						
						
					 
					
						2014-06-05 10:00:45 -05:00 
						 
				 
			
				
					
						
							
							
								Cosmin Truta 
							
						 
					 
					
						
						
						
						
							
						
						
							6572c7dab5 
							
						 
					 
					
						
						
							
							[libpng16] Silence 'unused parameter' build warnings (Cosmin).  
						
						
						
						
					 
					
						2014-03-22 09:20:53 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							5087805e7c 
							
						 
					 
					
						
						
							
							[libpng16] Imported from libpng-1.6.1.tar  
						
						
						
						
					 
					
						2013-03-27 20:36:57 -05:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							871b1d0fab 
							
						 
					 
					
						
						
							
							[libpng16] Bump version to 1.6.1beta05  
						
						
						
						
					 
					
						2013-03-02 15:03:15 -06:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							f3af706c2a 
							
						 
					 
					
						
						
							
							[libpng16] Imported from libpng-1.6.0beta05.tar  
						
						
						
						
					 
					
						2013-03-01 21:38:03 -06:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							adb9613699 
							
						 
					 
					
						
						
							
							[libpng16] Imported from libpng-1.6.1beta02.tar  
						
						
						
						
					 
					
						2013-02-18 21:25:47 -06:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							b4ef7c4af2 
							
						 
					 
					
						
						
							
							[libpng16] Use parentheses consistently in "#if defined()" tests.  
						
						... 
						
						
						
						Folded some long lines. 
						
						
					 
					
						2013-02-17 15:41:36 -06:00 
						 
				 
			
				
					
						
							
							
								Glenn Randers-Pehrson 
							
						 
					 
					
						
						
						
						
							
						
						
							c53778ff53 
							
						 
					 
					
						
						
							
							[libpng16] Imported from libpng-1.6.0.tar  
						
						
						
						
					 
					
						2013-02-13 22:53:57 -06:00