mirror of
				https://git.code.sf.net/p/libpng/code.git
				synced 2025-07-10 18:04:09 +02:00 
			
		
		
		
	[master] Relocated png_do_chop() to its original position in pngrtran.c
The change in version 1.2.41beta08 caused transparency to be handled wrong in some 16-bit datastreams (Yusaku Sugai).
This commit is contained in:
		
							parent
							
								
									f174f27096
								
							
						
					
					
						commit
						4cf1ca4338
					
				
							
								
								
									
										3
									
								
								ANNOUNCE
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								ANNOUNCE
									
									
									
									
									
								
							@ -54,6 +54,9 @@ version 1.2.42beta01 [December 4, 2009]
 | 
			
		||||
 | 
			
		||||
version 1.2.42beta02 [December 11, 2009]
 | 
			
		||||
  Removed leftover "-DPNG_CONFIGURE_LIBPNG" from contrib/pngminim/*/makefile
 | 
			
		||||
  Relocated png_do_chop() to its original position in pngrtran.c; the
 | 
			
		||||
    change in version 1.2.41beta08 caused transparency to be handled wrong
 | 
			
		||||
    in some 16-bit datastreams (Yusaku Sugai).
 | 
			
		||||
 | 
			
		||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										3
									
								
								CHANGES
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								CHANGES
									
									
									
									
									
								
							@ -2617,6 +2617,9 @@ version 1.2.42beta01 [December 4, 2009]
 | 
			
		||||
 | 
			
		||||
version 1.2.42beta02 [December 11, 2009]
 | 
			
		||||
  Removed leftover "-DPNG_CONFIGURE_LIBPNG" from contrib/pngminim/*/makefile
 | 
			
		||||
  Relocated png_do_chop() to its original position in pngrtran.c; the
 | 
			
		||||
    change in version 1.2.41beta08 caused transparency to be handled wrong
 | 
			
		||||
    in some 16-bit datastreams (Yusaku Sugai).
 | 
			
		||||
 | 
			
		||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
 | 
			
		||||
(subscription required; visit
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										10
									
								
								pngrtran.c
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								pngrtran.c
									
									
									
									
									
								
							@ -1437,11 +1437,6 @@ png_do_read_transformations(png_structp png_ptr)
 | 
			
		||||
      png_do_gray_to_rgb(&(png_ptr->row_info), png_ptr->row_buf + 1);
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef PNG_READ_16_TO_8_SUPPORTED
 | 
			
		||||
   if (png_ptr->transformations & PNG_16_TO_8)
 | 
			
		||||
      png_do_chop(&(png_ptr->row_info), png_ptr->row_buf + 1);
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef PNG_READ_BACKGROUND_SUPPORTED
 | 
			
		||||
   if ((png_ptr->transformations & PNG_BACKGROUND) &&
 | 
			
		||||
      ((png_ptr->num_trans != 0 ) ||
 | 
			
		||||
@ -1471,6 +1466,11 @@ png_do_read_transformations(png_structp png_ptr)
 | 
			
		||||
          png_ptr->gamma_shift);
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef PNG_READ_16_TO_8_SUPPORTED
 | 
			
		||||
   if (png_ptr->transformations & PNG_16_TO_8)
 | 
			
		||||
      png_do_chop(&(png_ptr->row_info), png_ptr->row_buf + 1);
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef PNG_READ_DITHER_SUPPORTED
 | 
			
		||||
   if (png_ptr->transformations & PNG_DITHER)
 | 
			
		||||
   {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user