From e90bde5c62c20e6c6978ba5ced760db7da7e8447 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arttu=20Yl=C3=A4-Outinen?= Date: Wed, 19 Jul 2017 10:33:43 +0300 Subject: [PATCH] Clarify PSNR output Adds letters Y, U and V to the PSNR output to make it clearer that the printed values are the luma and chroma PSNR. --- src/cli.c | 2 +- src/encmain.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli.c b/src/cli.c index c821b7bb..27402f99 100644 --- a/src/cli.c +++ b/src/cli.c @@ -503,7 +503,7 @@ void print_frame_info(const kvz_frame_info *const info, const double frame_psnr[3], const uint32_t bytes) { - fprintf(stderr, "POC %4d QP %2d (%c-frame) %10d bits PSNR: %2.4f %2.4f %2.4f", + fprintf(stderr, "POC %4d QP %2d (%c-frame) %10d bits PSNR Y %2.4f U %2.4f V %2.4f", info->poc, info->qp, "BPI"[info->slice_type % 3], diff --git a/src/encmain.c b/src/encmain.c index 47c273f5..6334a254 100644 --- a/src/encmain.c +++ b/src/encmain.c @@ -582,7 +582,7 @@ int main(int argc, char *argv[]) frames_done, (long long unsigned int)bitstream_length * 8); if (frames_done > 0) { - fprintf(stderr, " AVG PSNR: %2.4f %2.4f %2.4f", + fprintf(stderr, " AVG PSNR Y %2.4f U %2.4f V %2.4f", psnr_sum[0] / frames_done, psnr_sum[1] / frames_done, psnr_sum[2] / frames_done);