mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-13 06:24:27 +02:00
change default filtering parameters:
* type is now 'strong' * strength is now '60' These help with gradients and blocking Change-Id: Ie1c8265c557306ef5e9ccefacf43e10946e55370
This commit is contained in:
@ -537,7 +537,9 @@ static void HelpLong(void) {
|
||||
printf(" -f <int> ............... filter strength (0=off..100)\n");
|
||||
printf(" -sharpness <int> ....... "
|
||||
"filter sharpness (0:most .. 7:least sharp)\n");
|
||||
printf(" -strong ................ use strong filter instead of simple.\n");
|
||||
printf(" -strong ................ use strong filter instead "
|
||||
"of simple (default).\n");
|
||||
printf(" -nostrong .............. use simple filter instead of strong.\n");
|
||||
printf(" -partition_limit <int> . limit quality to fit the 512k limit on\n");
|
||||
printf(" "
|
||||
"the first partition (0=no degradation ... 100=full)\n");
|
||||
@ -724,6 +726,8 @@ int main(int argc, const char *argv[]) {
|
||||
config.emulate_jpeg_size = 1;
|
||||
} else if (!strcmp(argv[c], "-strong")) {
|
||||
config.filter_type = 1;
|
||||
} else if (!strcmp(argv[c], "-nostrong")) {
|
||||
config.filter_type = 0;
|
||||
} else if (!strcmp(argv[c], "-sharpness") && c < argc - 1) {
|
||||
config.filter_sharpness = strtol(argv[++c], NULL, 0);
|
||||
} else if (!strcmp(argv[c], "-pass") && c < argc - 1) {
|
||||
|
Reference in New Issue
Block a user