OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. | 2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 class LibYUVColorTest : public ::testing::Test { | 75 class LibYUVColorTest : public ::testing::Test { |
76 protected: | 76 protected: |
77 LibYUVColorTest(); | 77 LibYUVColorTest(); |
78 | 78 |
79 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking. | 79 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking. |
80 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA. | 80 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA. |
81 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA. | 81 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA. |
82 int benchmark_pixels_div256_; // Total pixels to benchmark / 256. | 82 int benchmark_pixels_div256_; // Total pixels to benchmark / 256. |
83 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280. | 83 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280. |
84 int disable_cpu_flags_; // Default 0. Use -1 for benchmarking. | 84 int disable_cpu_flags_; // Default 0. Use -1 for benchmarking. |
| 85 int benchmark_cpu_info_; // Default -1. Use 1 to disable SIMD. |
85 }; | 86 }; |
86 | 87 |
87 class LibYUVConvertTest : public ::testing::Test { | 88 class LibYUVConvertTest : public ::testing::Test { |
88 protected: | 89 protected: |
89 LibYUVConvertTest(); | 90 LibYUVConvertTest(); |
90 | 91 |
91 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking. | 92 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking. |
92 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA. | 93 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA. |
93 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA. | 94 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA. |
94 int benchmark_pixels_div256_; // Total pixels to benchmark / 256. | 95 int benchmark_pixels_div256_; // Total pixels to benchmark / 256. |
95 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280. | 96 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280. |
96 int disable_cpu_flags_; // Default 0. Use -1 for benchmarking. | 97 int disable_cpu_flags_; // Default 0. Use -1 for benchmarking. |
| 98 int benchmark_cpu_info_; // Default -1. Use 1 to disable SIMD. |
97 }; | 99 }; |
98 | 100 |
99 class LibYUVScaleTest : public ::testing::Test { | 101 class LibYUVScaleTest : public ::testing::Test { |
100 protected: | 102 protected: |
101 LibYUVScaleTest(); | 103 LibYUVScaleTest(); |
102 | 104 |
103 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking. | 105 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking. |
104 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA. | 106 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA. |
105 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA. | 107 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA. |
106 int benchmark_pixels_div256_; // Total pixels to benchmark / 256. | 108 int benchmark_pixels_div256_; // Total pixels to benchmark / 256. |
107 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280. | 109 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280. |
108 int disable_cpu_flags_; // Default 0. Use -1 for benchmarking. | 110 int disable_cpu_flags_; // Default 0. Use -1 for benchmarking. |
| 111 int benchmark_cpu_info_; // Default -1. Use 1 to disable SIMD. |
109 }; | 112 }; |
110 | 113 |
111 class LibYUVRotateTest : public ::testing::Test { | 114 class LibYUVRotateTest : public ::testing::Test { |
112 protected: | 115 protected: |
113 LibYUVRotateTest(); | 116 LibYUVRotateTest(); |
114 | 117 |
115 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking. | 118 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking. |
116 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA. | 119 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA. |
117 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA. | 120 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA. |
118 int benchmark_pixels_div256_; // Total pixels to benchmark / 256. | 121 int benchmark_pixels_div256_; // Total pixels to benchmark / 256. |
119 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280. | 122 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280. |
120 int disable_cpu_flags_; // Default 0. Use -1 for benchmarking. | 123 int disable_cpu_flags_; // Default 0. Use -1 for benchmarking. |
| 124 int benchmark_cpu_info_; // Default -1. Use 1 to disable SIMD. |
121 }; | 125 }; |
122 | 126 |
123 class LibYUVPlanarTest : public ::testing::Test { | 127 class LibYUVPlanarTest : public ::testing::Test { |
124 protected: | 128 protected: |
125 LibYUVPlanarTest(); | 129 LibYUVPlanarTest(); |
126 | 130 |
127 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking. | 131 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking. |
128 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA. | 132 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA. |
129 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA. | 133 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA. |
130 int benchmark_pixels_div256_; // Total pixels to benchmark / 256. | 134 int benchmark_pixels_div256_; // Total pixels to benchmark / 256. |
131 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280. | 135 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280. |
132 int disable_cpu_flags_; // Default 0. Use -1 for benchmarking. | 136 int disable_cpu_flags_; // Default 0. Use -1 for benchmarking. |
| 137 int benchmark_cpu_info_; // Default -1. Use 1 to disable SIMD. |
133 }; | 138 }; |
134 | 139 |
135 class LibYUVBaseTest : public ::testing::Test { | 140 class LibYUVBaseTest : public ::testing::Test { |
136 protected: | 141 protected: |
137 LibYUVBaseTest(); | 142 LibYUVBaseTest(); |
138 | 143 |
139 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking. | 144 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking. |
140 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA. | 145 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA. |
141 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA. | 146 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA. |
142 int benchmark_pixels_div256_; // Total pixels to benchmark / 256. | 147 int benchmark_pixels_div256_; // Total pixels to benchmark / 256. |
143 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280. | 148 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280. |
144 int disable_cpu_flags_; // Default 0. Use -1 for benchmarking. | 149 int disable_cpu_flags_; // Default 0. Use -1 for benchmarking. |
| 150 int benchmark_cpu_info_; // Default -1. Use 1 to disable SIMD. |
145 }; | 151 }; |
146 | 152 |
147 #endif // UNIT_TEST_UNIT_TEST_H_ NOLINT | 153 #endif // UNIT_TEST_UNIT_TEST_H_ NOLINT |
OLD | NEW |