mirror of
				https://github.com/webmproject/libwebp.git
				synced 2025-10-31 10:25:46 +01:00 
			
		
		
		
	WebPIoInitFromOptions: respect incoming bypass_filtering val
if bypass_filtering was set to 1 in the user provided options it shouldn't be reset in the use_scaling pass even if the image satisfies the scaling requirements. Change-Id: I036029907886acb63748872d5f8763954a7c607b
This commit is contained in:
		| @@ -835,8 +835,8 @@ int WebPIoInitFromOptions(const WebPDecoderOptions* const options, | |||||||
|  |  | ||||||
|   if (io->use_scaling) { |   if (io->use_scaling) { | ||||||
|     // disable filter (only for large downscaling ratio). |     // disable filter (only for large downscaling ratio). | ||||||
|     io->bypass_filtering = (io->scaled_width < W * 3 / 4) && |     io->bypass_filtering |= (io->scaled_width < W * 3 / 4) && | ||||||
|                            (io->scaled_height < H * 3 / 4); |                             (io->scaled_height < H * 3 / 4); | ||||||
|     io->fancy_upsampling = 0; |     io->fancy_upsampling = 0; | ||||||
|   } |   } | ||||||
|   return 1; |   return 1; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user