shithub: libvpx

Download patch

ref: 2c17d54681bf6f529fac713d37075e8060e0c72a
parent: 9c9d92ae3a7c70adff71e04bae14a1e1394693f5
author: James Zern <jzern@google.com>
date: Fri Aug 5 16:21:02 EDT 2016

*_perf_test.cc: correct DoDecode signature

+ delete unused kMaxPsnr from decode_perf_test.cc

Change-Id: Id93347631e7870491069a8b7c5bb1f6b2828425f

--- a/test/decode_perf_test.cc
+++ b/test/decode_perf_test.cc
@@ -28,7 +28,6 @@
 #define VIDEO_NAME 0
 #define THREADS 1
 
-const int kMaxPsnr = 100;
 const double kUsecsInSec = 1000000.0;
 const char kNewEncodeOutputFile[] = "new_encode.ivf";
 
@@ -176,7 +175,7 @@
               pkt->data.frame.sz);
   }
 
-  virtual bool DoDecode() { return false; }
+  virtual bool DoDecode() const { return false; }
 
   void set_speed(unsigned int speed) { speed_ = speed; }
 
--- a/test/encode_perf_test.cc
+++ b/test/encode_perf_test.cc
@@ -105,7 +105,7 @@
   }
 
   // for performance reasons don't decode
-  virtual bool DoDecode() { return 0; }
+  virtual bool DoDecode() const { return false; }
 
   double min_psnr() const { return min_psnr_; }