mirror of
				https://github.com/webmproject/libwebp.git
				synced 2025-10-31 10:25:46 +01:00 
			
		
		
		
	Merge "Fix bug in FromLinearLog100." into main
This commit is contained in:
		
				
					committed by
					
						 Gerrit Code Review
						Gerrit Code Review
					
				
			
			
				
	
			
			
			
					commit
					e7b78d4375
				
			| @@ -212,8 +212,8 @@ static float ToLinearLog100Sqrt10(float gamma) { | |||||||
| static float FromLinearLog100Sqrt10(float linear) { | static float FromLinearLog100Sqrt10(float linear) { | ||||||
|   // The function is non-bijective so choose the middle of [0, 0.00316227766f[. |   // The function is non-bijective so choose the middle of [0, 0.00316227766f[. | ||||||
|   const float mid_interval = 0.00316227766f / 2.f; |   const float mid_interval = 0.00316227766f / 2.f; | ||||||
|   return (linear < 0.0f) ? mid_interval |   return (linear <= 0.0f) ? mid_interval | ||||||
|                          : Powf(10.0f, 2.5f * (MIN(linear, 1.f) - 1.0f)); |                           : Powf(10.0f, 2.5f * (MIN(linear, 1.f) - 1.0f)); | ||||||
| } | } | ||||||
|  |  | ||||||
| static float ToLinearIec61966(float gamma) { | static float ToLinearIec61966(float gamma) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user