cwebp,get_disto: fix bpp output

bits-per-pixel were intended, not bytes-per-pixel

Change-Id: I023349013ac5956154ab4526bd1e195dfe95b8ab
This commit is contained in:
James Zern 2018-04-10 15:51:23 -07:00
parent 1c8f358df4
commit e122e511cf
2 changed files with 3 additions and 3 deletions

View File

@ -188,7 +188,7 @@ static void PrintExtraInfoLossless(const WebPPicture* const pic,
fprintf(stderr, "File: %s\n", file_name);
fprintf(stderr, "Dimension: %d x %d\n", pic->width, pic->height);
fprintf(stderr, "Output: %d bytes (%.2f bpp)\n", stats->coded_size,
1.f * stats->coded_size / pic->width / pic->height);
8.f * stats->coded_size / pic->width / pic->height);
PrintFullLosslessInfo(stats, "ARGB");
}
}
@ -213,7 +213,7 @@ static void PrintExtraInfoLossy(const WebPPicture* const pic, int short_output,
" (%.2f bpp)\n",
stats->coded_size,
stats->PSNR[0], stats->PSNR[1], stats->PSNR[2], stats->PSNR[3],
1.f * stats->coded_size / pic->width / pic->height);
8.f * stats->coded_size / pic->width / pic->height);
if (total > 0) {
int totals[4] = { 0, 0, 0, 0 };
fprintf(stderr, "block count: intra4: %6d (%.2f%%)\n"

View File

@ -293,7 +293,7 @@ int main(int argc, const char *argv[]) {
printf("%u %.2f %.2f %.2f %.2f %.2f [ %.2f bpp ]\n",
(unsigned int)size1,
disto[4], disto[0], disto[1], disto[2], disto[3],
1.f * size1 / pic1.width / pic1.height);
8.f * size1 / pic1.width / pic1.height);
if (output != NULL) {
uint8_t* data = NULL;