]> granicus.if.org Git - libvpx/commitdiff
Isolate HBD stats bug change.
authorPaul Wilkins <paulwilkins@google.com>
Tue, 15 Mar 2016 19:24:54 +0000 (12:24 -0700)
committerPaul Wilkins <paulwilkins@google.com>
Tue, 15 Mar 2016 19:24:54 +0000 (12:24 -0700)
Change-Id: Ief453daf5f13f42803cb5122fcdd294e65e613f5

vp9/encoder/vp9_encoder.c

index 41196f4a5a6088f2b8793b06f47580fd6c5a35d9..6454ad65dc87c375f933261e776ada7e83d68e97 100644 (file)
@@ -3079,7 +3079,16 @@ static void output_frame_level_debug_stats(VP9_COMP *cpi) {
 
   vpx_clear_system_state();
 
+#if CONFIG_VP9_HIGHBITDEPTH
+  if (cm->use_highbitdepth) {
+    recon_err = vp9_highbd_get_y_sse(cpi->Source, get_frame_new_buffer(cm));
+  } else {
+    recon_err = vp9_get_y_sse(cpi->Source, get_frame_new_buffer(cm));
+  }
+#else
   recon_err = vp9_get_y_sse(cpi->Source, get_frame_new_buffer(cm));
+#endif  // CONFIG_VP9_HIGHBITDEPTH
+
 
   if (cpi->twopass.total_left_stats.coded_error != 0.0)
     fprintf(f, "%10u %dx%d %10d %10d %d %d %10d %10d %10d %10d"