Added image characteristic hint for the codec.
This image type hint is used by codec to apply appropriate set of transform filters to the image. Change-Id: Ibb24e47ba14c40fa7f9f2c50ae86e03f2b29e9a6
This commit is contained in:
		@@ -45,6 +45,7 @@ int WebPConfigInitInternal(WebPConfig* const config,
 | 
			
		||||
  config->alpha_filtering = 1;
 | 
			
		||||
  config->alpha_quality = 100;
 | 
			
		||||
  config->lossless = 0;
 | 
			
		||||
  config->image_hint = WEBP_HINT_DEFAULT;
 | 
			
		||||
 | 
			
		||||
  // TODO(skal): tune.
 | 
			
		||||
  switch (preset) {
 | 
			
		||||
@@ -119,6 +120,8 @@ int WebPValidateConfig(const WebPConfig* const config) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  if (config->lossless < 0 || config->lossless > 1)
 | 
			
		||||
    return 0;
 | 
			
		||||
  if (config->image_hint > WEBP_HINT_PHOTO)
 | 
			
		||||
    return 0;
 | 
			
		||||
  return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user