aboutsummaryrefslogtreecommitdiff
path: root/unit_test/unit_test.cc
diff options
context:
space:
mode:
authorfbarchard@google.com <fbarchard@google.com@16f28f9a-4ce2-e073-06de-1de4eb20be90>2013-08-09 02:02:52 +0000
committerfbarchard@google.com <fbarchard@google.com@16f28f9a-4ce2-e073-06de-1de4eb20be90>2013-08-09 02:02:52 +0000
commit4b4b50fb445a166ce08e24d016157776b5df65cb (patch)
tree6a61ea678fbcfa2b7feace26d5e6254ef49b6047 /unit_test/unit_test.cc
parent0d41aee26b1e6a01e7beb2197e0edff25085ef59 (diff)
downloadlibyuv-4b4b50fb445a166ce08e24d016157776b5df65cb.tar.gz
Make unittests to 1280 pixels for simple planar tests, to get more realistic performance metrics than 256 pixels.
BUG=253 TEST=planar tests R=nfullagar@google.com Review URL: https://webrtc-codereview.appspot.com/1994004 git-svn-id: http://libyuv.googlecode.com/svn/trunk@753 16f28f9a-4ce2-e073-06de-1de4eb20be90
Diffstat (limited to 'unit_test/unit_test.cc')
-rw-r--r--unit_test/unit_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/unit_test/unit_test.cc b/unit_test/unit_test.cc
index d98874f7..3c00fc8b 100644
--- a/unit_test/unit_test.cc
+++ b/unit_test/unit_test.cc
@@ -43,6 +43,10 @@ libyuvTest::libyuvTest() : rotate_max_w_(128), rotate_max_h_(128),
static_cast<double>(Abs(benchmark_width_)) *
static_cast<double>(Abs(benchmark_height_)) *
static_cast<double>(benchmark_iterations_) + 255.0) / 256.0);
+ benchmark_pixels_div1280_ = static_cast<int>((
+ static_cast<double>(Abs(benchmark_width_)) *
+ static_cast<double>(Abs(benchmark_height_)) *
+ static_cast<double>(benchmark_iterations_) + 1279.0) / 1280.0);
}
int main(int argc, char** argv) {