aboutsummaryrefslogtreecommitdiff
path: root/unit_test/unit_test.cc
diff options
context:
space:
mode:
authorfbarchard@google.com <fbarchard@google.com@16f28f9a-4ce2-e073-06de-1de4eb20be90>2012-10-24 17:43:51 +0000
committerfbarchard@google.com <fbarchard@google.com@16f28f9a-4ce2-e073-06de-1de4eb20be90>2012-10-24 17:43:51 +0000
commit75f90ac3157dfe22570f40fcb28ab5304bac8c6c (patch)
treed31e0938f652bc6850c8df0ed41d5edd791208de /unit_test/unit_test.cc
parentffeec746ebb4d77840bf339130a6a187ea140e18 (diff)
downloadlibyuv-75f90ac3157dfe22570f40fcb28ab5304bac8c6c.tar.gz
Add unittest environment variables to set conversion width and height
BUG=none TEST=convert_test Review URL: https://webrtc-codereview.appspot.com/932004 git-svn-id: http://libyuv.googlecode.com/svn/trunk@439 16f28f9a-4ce2-e073-06de-1de4eb20be90
Diffstat (limited to 'unit_test/unit_test.cc')
-rw-r--r--unit_test/unit_test.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/unit_test/unit_test.cc b/unit_test/unit_test.cc
index 007c81f0..b3ceb8f0 100644
--- a/unit_test/unit_test.cc
+++ b/unit_test/unit_test.cc
@@ -25,6 +25,14 @@ libyuvTest::libyuvTest() : rotate_max_w_(128), rotate_max_h_(128),
if (repeat) {
benchmark_iterations_ = atoi(repeat); // NOLINT
}
+ const char* width = getenv("LIBYUV_WIDTH");
+ if (width) {
+ benchmark_width_ = atoi(width); // NOLINT
+ }
+ const char* height = getenv("LIBYUV_HEIGHT");
+ if (height) {
+ benchmark_height_ = atoi(height); // NOLINT
+ }
}
int main(int argc, char** argv) {