Fix vpxenc per frame psnr and ssim print
authorJingning Han <jingning@google.com>
Mon, 1 Oct 2018 22:26:00 +0000 (15:26 -0700)
committerJingning Han <jingning@google.com>
Mon, 1 Oct 2018 22:31:07 +0000 (15:31 -0700)
Fix compiler error and make the encoder properly log the psnr and
ssim.

Change-Id: I7b35541131acaa60117bb1e458508b82a4b4677e

vp9/encoder/vp9_encoder.c

index ee7ba80..4d461c1 100644 (file)
@@ -6473,8 +6473,8 @@ int vp9_get_compressed_data(VP9_COMP *cpi, unsigned int *frame_flags,
           {
             FILE *f = fopen("q_used.stt", "a");
             fprintf(f, "%5d : Y%f7.3:U%f7.3:V%f7.3:F%f7.3:S%7.3f\n",
-                    cpi->common.current_video_frame, y2, u2, v2,
-                    frame_psnr2, frame_ssim2);
+                    cpi->common.current_video_frame, psnr2.psnr[1],
+                    psnr2.psnr[2], psnr2.psnr[3], psnr2.psnr[0], frame_ssim2);
             fclose(f);
           }
 #endif