add a very crude progress report for lossless

better than nothing. Removed the warning in cwebp.c
(and silenced the warning in quiet mode too)

Change-Id: I85bbeaf77e0f60ead798886043dc053e6b44def5
This commit is contained in:
Pascal Massimino
2012-06-20 09:20:34 +00:00
committed by James Zern
parent ce156afccf
commit 0275159143
2 changed files with 14 additions and 5 deletions

View File

@ -1049,7 +1049,7 @@ int main(int argc, const char *argv[]) {
// Check for unsupported command line options for lossless mode and log
// warning for such options.
if (config.lossless == 1) {
if (!quiet && config.lossless == 1) {
if (config.target_size > 0 || config.target_PSNR > 0) {
fprintf(stderr, "Encoding for specified size or PSNR is not supported"
" for lossless encoding. Ignoring such option(s)!\n");
@ -1058,10 +1058,6 @@ int main(int argc, const char *argv[]) {
fprintf(stderr, "Partition limit option is not required for lossless"
" encoding. Ignoring this option!\n");
}
if (show_progress) {
fprintf(stderr, "Progress reporting option is not supported for lossless"
" encoding. Ignoring this option!\n");
}
}
if (!WebPValidateConfig(&config)) {