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
diff --git a/examples/cwebp.c b/examples/cwebp.c
index d94ac53..1458926 100644
--- a/examples/cwebp.c
+++ b/examples/cwebp.c
@@ -1049,7 +1049,7 @@
// 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 @@
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)) {