]> granicus.if.org Git - libvpx/commitdiff
Keep metric log only for the displayable frames
authorJingning Han <jingning@google.com>
Mon, 1 Oct 2018 22:31:27 +0000 (15:31 -0700)
committerJingning Han <jingning@google.com>
Mon, 1 Oct 2018 22:31:56 +0000 (15:31 -0700)
The end-to-end reconstruction quality is represented only by the
displayable frames. Drop the coding stats from ARF frames.

Change-Id: Ib8241db448611f4b6477f107930eaa273f960e20

vp9/encoder/vp9_encoder.c

index 4d461c1962b6167e3396c4c2176584ab93788161..a8937aa49c33c0198489e263c5ab435178c2ca93 100644 (file)
@@ -6470,7 +6470,7 @@ int vp9_get_compressed_data(VP9_COMP *cpi, unsigned int *frame_flags,
           cpi->summedp_quality += frame_ssim2 * weight;
           cpi->summedp_weights += weight;
 #if 0
-          {
+          if (cm->show_frame) {
             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, psnr2.psnr[1],