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