mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	Support packing I;16N
This commit is contained in:
		
							parent
							
								
									700a8e98da
								
							
						
					
					
						commit
						e908e10aab
					
				| 
						 | 
				
			
			@ -207,6 +207,9 @@ class TestLibPack:
 | 
			
		|||
                0x01000083,
 | 
			
		||||
            )
 | 
			
		||||
 | 
			
		||||
    def test_I16(self):
 | 
			
		||||
        self.assert_pack("I;16N", "I;16N", 2, 0x0201, 0x0403, 0x0605)
 | 
			
		||||
 | 
			
		||||
    def test_F_float(self):
 | 
			
		||||
        self.assert_pack("F", "F;32F", 4, 1.539989614439558e-36, 4.063216068939723e-34)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -664,6 +664,7 @@ static struct {
 | 
			
		|||
#endif
 | 
			
		||||
    {"I;16B", "I;16B", 16, copy2},
 | 
			
		||||
    {"I;16L", "I;16L", 16, copy2},
 | 
			
		||||
    {"I;16N", "I;16N", 16, copy2},
 | 
			
		||||
    {"I;16", "I;16N", 16, packI16N_I16},  // LibTiff native->image endian.
 | 
			
		||||
    {"I;16L", "I;16N", 16, packI16N_I16},
 | 
			
		||||
    {"I;16B", "I;16N", 16, packI16N_I16B},
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user