mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 02:24:07 +00:00
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:
parent
217202ca5f
commit
e90bde5c62
|
@ -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],
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue