cwebp,get_disto: report bpp

Change-Id: Iefbd834baa4f70eb862071a8e4b87f7d30736aa3
This commit is contained in:
James Zern
2018-02-19 13:33:45 -08:00
parent 9df64e28dd
commit e26fe06680
2 changed files with 9 additions and 5 deletions

View File

@ -290,9 +290,10 @@ int main(int argc, const char *argv[]) {
fprintf(stderr, "Error while computing the distortion.\n");
goto End;
}
printf("%u %.2f %.2f %.2f %.2f %.2f\n",
printf("%u %.2f %.2f %.2f %.2f %.2f [ %.2f bpp ]\n",
(unsigned int)size1,
disto[4], disto[0], disto[1], disto[2], disto[3]);
disto[4], disto[0], disto[1], disto[2], disto[3],
1.f * size1 / pic1.width / pic1.height);
if (output != NULL) {
uint8_t* data = NULL;