Commit 75f90ac3 authored by fbarchard@google.com's avatar fbarchard@google.com

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
parent ffeec746
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 438
Version: 439
License: BSD
License File: LICENSE
......
......@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 438
#define LIBYUV_VERSION 439
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
This diff is collapsed.
......@@ -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) {
......
......@@ -66,9 +66,9 @@ class libyuvTest : public ::testing::Test {
const int rotate_max_w_;
const int rotate_max_h_;
int benchmark_iterations_;
const int benchmark_width_;
const int benchmark_height_;
int benchmark_iterations_; // Default 1. Use 1000 for benchmarking.
int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA.
int benchmark_height_; // Default 720. Use 360 for benchmarking VGA.
};
#endif // UNIT_TEST_UNIT_TEST_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment