[x265-commits] [x265] cli: fix final stat line handling of optional PSNR and SS...

Steve Borho steve at borho.org
Thu Dec 5 07:54:22 CET 2013


details:   http://hg.videolan.org/x265/rev/ee8f2fa7d82a
branches:  
changeset: 5508:ee8f2fa7d82a
user:      Steve Borho <steve at borho.org>
date:      Thu Dec 05 00:53:59 2013 -0600
description:
cli: fix final stat line handling of optional PSNR and SSIM stats

diffstat:

 source/x265.cpp |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r ed7c32d83490 -r ee8f2fa7d82a source/x265.cpp
--- a/source/x265.cpp	Thu Dec 05 11:04:22 2013 +0530
+++ b/source/x265.cpp	Thu Dec 05 00:53:59 2013 -0600
@@ -674,14 +674,16 @@ int main(int argc, char **argv)
 
     if (stats.encodedPictureCount)
     {
-        printf("\nencoded %d frames in %.2fs (%.2f fps), %.2f kb/s, ", stats.encodedPictureCount,
+        printf("\nencoded %d frames in %.2fs (%.2f fps), %.2f kb/s", stats.encodedPictureCount,
                stats.elapsedEncodeTime, stats.encodedPictureCount / stats.elapsedEncodeTime, stats.bitrate);
 
         if (param->bEnablePsnr)
-            printf("Global PSNR: %.3f\n", stats.globalPsnr);
+            printf(", Global PSNR: %.3f", stats.globalPsnr);
 
         if (param->bEnableSsim)
-            printf("Global SSIM: %.3f\n", stats.globalSsim);
+            printf(", Global SSIM: %.3f", stats.globalSsim);
+
+        printf("\n");
     }
     else
     {


More information about the x265-commits mailing list