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 "webrtc/modules/video_coding/codecs/test/stats.h" | 11 #include "webrtc/modules/video_coding/codecs/test/stats.h" |
12 | 12 |
13 #include <stdio.h> | 13 #include <stdio.h> |
14 | 14 |
15 #include <algorithm> // min_element, max_element | 15 #include <algorithm> // min_element, max_element |
16 | 16 |
17 #include "webrtc/rtc_base/checks.h" | 17 #include "webrtc/base/checks.h" |
18 #include "webrtc/rtc_base/format_macros.h" | 18 #include "webrtc/base/format_macros.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 namespace test { | 21 namespace test { |
22 namespace { | 22 namespace { |
23 bool LessForEncodeTime(const FrameStatistic& s1, const FrameStatistic& s2) { | 23 bool LessForEncodeTime(const FrameStatistic& s1, const FrameStatistic& s2) { |
24 return s1.encode_time_in_us < s2.encode_time_in_us; | 24 return s1.encode_time_in_us < s2.encode_time_in_us; |
25 } | 25 } |
26 | 26 |
27 bool LessForDecodeTime(const FrameStatistic& s1, const FrameStatistic& s2) { | 27 bool LessForDecodeTime(const FrameStatistic& s1, const FrameStatistic& s2) { |
28 return s1.decode_time_in_us < s2.decode_time_in_us; | 28 return s1.decode_time_in_us < s2.decode_time_in_us; |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 158 |
159 printf("\n"); | 159 printf("\n"); |
160 printf("Total encoding time : %7d ms.\n", total_encoding_time_in_us / 1000); | 160 printf("Total encoding time : %7d ms.\n", total_encoding_time_in_us / 1000); |
161 printf("Total decoding time : %7d ms.\n", total_decoding_time_in_us / 1000); | 161 printf("Total decoding time : %7d ms.\n", total_decoding_time_in_us / 1000); |
162 printf("Total processing time: %7d ms.\n", | 162 printf("Total processing time: %7d ms.\n", |
163 (total_encoding_time_in_us + total_decoding_time_in_us) / 1000); | 163 (total_encoding_time_in_us + total_decoding_time_in_us) / 1000); |
164 } | 164 } |
165 | 165 |
166 } // namespace test | 166 } // namespace test |
167 } // namespace webrtc | 167 } // namespace webrtc |
OLD | NEW |