OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC 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 |
11 #include <stdio.h> | 11 #include <stdio.h> |
12 #include <stdlib.h> | 12 #include <stdlib.h> |
13 | 13 |
14 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 14 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
15 #include "webrtc/modules/video_processing/include/video_processing.h" | 15 #include "webrtc/modules/video_processing/include/video_processing.h" |
16 #include "webrtc/modules/video_processing/test/video_processing_unittest.h" | 16 #include "webrtc/modules/video_processing/test/video_processing_unittest.h" |
17 #include "webrtc/system_wrappers/include/tick_util.h" | 17 #include "webrtc/system_wrappers/include/tick_util.h" |
18 #include "webrtc/test/testsupport/fileutils.h" | 18 #include "webrtc/test/testsupport/fileutils.h" |
19 #include "webrtc/test/testsupport/gtest_disable.h" | |
20 | 19 |
21 namespace webrtc { | 20 namespace webrtc { |
22 | 21 |
23 TEST_F(VideoProcessingTest, DISABLED_ON_IOS(Deflickering)) { | 22 #if defined(WEBRTC_IOS) |
| 23 TEST_F(VideoProcessingTest, DISABLED_Deflickering) { |
| 24 #else |
| 25 TEST_F(VideoProcessingTest, Deflickering) { |
| 26 #endif |
24 enum { NumRuns = 30 }; | 27 enum { NumRuns = 30 }; |
25 uint32_t frameNum = 0; | 28 uint32_t frameNum = 0; |
26 const uint32_t frame_rate = 15; | 29 const uint32_t frame_rate = 15; |
27 | 30 |
28 int64_t min_runtime = 0; | 31 int64_t min_runtime = 0; |
29 int64_t avg_runtime = 0; | 32 int64_t avg_runtime = 0; |
30 | 33 |
31 // Close automatically opened Foreman. | 34 // Close automatically opened Foreman. |
32 fclose(source_file_); | 35 fclose(source_file_); |
33 const std::string input_file = | 36 const std::string input_file = |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 ASSERT_EQ(0, fclose(deflickerFile)); | 89 ASSERT_EQ(0, fclose(deflickerFile)); |
87 // TODO(kjellander): Add verification of deflicker output file. | 90 // TODO(kjellander): Add verification of deflicker output file. |
88 | 91 |
89 printf("\nAverage run time = %d us / frame\n", | 92 printf("\nAverage run time = %d us / frame\n", |
90 static_cast<int>(avg_runtime / frameNum / NumRuns)); | 93 static_cast<int>(avg_runtime / frameNum / NumRuns)); |
91 printf("Min run time = %d us / frame\n\n", | 94 printf("Min run time = %d us / frame\n\n", |
92 static_cast<int>(min_runtime / frameNum)); | 95 static_cast<int>(min_runtime / frameNum)); |
93 } | 96 } |
94 | 97 |
95 } // namespace webrtc | 98 } // namespace webrtc |
OLD | NEW |