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.
This commit is contained in:
Arttu Ylä-Outinen 2017-07-19 10:33:43 +03:00
parent 217202ca5f
commit e90bde5c62
2 changed files with 2 additions and 2 deletions

View file

@ -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],

View file

@ -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);