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/main/interface/video_processing.h" | 15 #include "webrtc/modules/video_processing/main/interface/video_processing.h" |
16 #include "webrtc/modules/video_processing/main/test/unit_test/video_processing_u
nittest.h" | 16 #include "webrtc/modules/video_processing/main/test/unit_test/video_processing_u
nittest.h" |
17 #include "webrtc/system_wrappers/interface/tick_util.h" | 17 #include "webrtc/system_wrappers/interface/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" |
19 | 20 |
20 namespace webrtc { | 21 namespace webrtc { |
21 | 22 |
22 TEST_F(VideoProcessingModuleTest, Deflickering) | 23 TEST_F(VideoProcessingModuleTest, DISABLED_ON_IOS(Deflickering)) |
23 { | 24 { |
24 enum { NumRuns = 30 }; | 25 enum { NumRuns = 30 }; |
25 uint32_t frameNum = 0; | 26 uint32_t frameNum = 0; |
26 const uint32_t frame_rate = 15; | 27 const uint32_t frame_rate = 15; |
27 | 28 |
28 int64_t min_runtime = 0; | 29 int64_t min_runtime = 0; |
29 int64_t avg_runtime = 0; | 30 int64_t avg_runtime = 0; |
30 | 31 |
31 // Close automatically opened Foreman. | 32 // Close automatically opened Foreman. |
32 fclose(source_file_); | 33 fclose(source_file_); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 ASSERT_EQ(0, fclose(deflickerFile)); | 91 ASSERT_EQ(0, fclose(deflickerFile)); |
91 // TODO(kjellander): Add verification of deflicker output file. | 92 // TODO(kjellander): Add verification of deflicker output file. |
92 | 93 |
93 printf("\nAverage run time = %d us / frame\n", | 94 printf("\nAverage run time = %d us / frame\n", |
94 static_cast<int>(avg_runtime / frameNum / NumRuns)); | 95 static_cast<int>(avg_runtime / frameNum / NumRuns)); |
95 printf("Min run time = %d us / frame\n\n", | 96 printf("Min run time = %d us / frame\n\n", |
96 static_cast<int>(min_runtime / frameNum)); | 97 static_cast<int>(min_runtime / frameNum)); |
97 } | 98 } |
98 | 99 |
99 } // namespace webrtc | 100 } // namespace webrtc |
OLD | NEW |