silently expose use_delta_palette in the WebPConfig API

is just a placeholder for now, unless WEBP_USE_EXPERIMENTAL_FEATURES
is defined.

Change-Id: I087cb49781560bc1a7fbb01b136d36115c97ef72
This commit is contained in:
Pascal Massimino
2017-01-20 00:01:33 -08:00
parent 668e1dd44f
commit eb1dc89a5f
4 changed files with 14 additions and 22 deletions

View File

@ -53,9 +53,7 @@ int WebPConfigInitInternal(WebPConfig* config,
config->thread_level = 0;
config->low_memory = 0;
config->near_lossless = 100;
#ifdef WEBP_EXPERIMENTAL_FEATURES
config->delta_palettization = 0;
#endif // WEBP_EXPERIMENTAL_FEATURES
config->use_delta_palette = 0;
// TODO(skal): tune.
switch (preset) {
@ -121,11 +119,9 @@ int WebPValidateConfig(const WebPConfig* config) {
if (config->thread_level < 0 || config->thread_level > 1) return 0;
if (config->low_memory < 0 || config->low_memory > 1) return 0;
if (config->exact < 0 || config->exact > 1) return 0;
#ifdef WEBP_EXPERIMENTAL_FEATURES
if (config->delta_palettization < 0 || config->delta_palettization > 1) {
if (config->use_delta_palette < 0 || config->use_delta_palette > 1) {
return 0;
}
#endif // WEBP_EXPERIMENTAL_FEATURES
return 1;
}