OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 #include "webrtc/video/video_quality_test.h" | 10 #include "webrtc/video/video_quality_test.h" |
11 | 11 |
12 #include <stdio.h> | 12 #include <stdio.h> |
13 #include <algorithm> | 13 #include <algorithm> |
14 #include <deque> | 14 #include <deque> |
15 #include <map> | 15 #include <map> |
16 #include <set> | 16 #include <set> |
17 #include <sstream> | 17 #include <sstream> |
18 #include <string> | 18 #include <string> |
19 #include <vector> | 19 #include <vector> |
20 | 20 |
| 21 #include "webrtc/api/optional.h" |
21 #include "webrtc/call/call.h" | 22 #include "webrtc/call/call.h" |
22 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 23 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
23 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" | 24 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" |
24 #include "webrtc/media/engine/webrtcvideoengine.h" | 25 #include "webrtc/media/engine/webrtcvideoengine.h" |
25 #include "webrtc/modules/audio_mixer/audio_mixer_impl.h" | 26 #include "webrtc/modules/audio_mixer/audio_mixer_impl.h" |
26 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" | 27 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |
27 #include "webrtc/modules/rtp_rtcp/source/rtp_format.h" | 28 #include "webrtc/modules/rtp_rtcp/source/rtp_format.h" |
28 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" | 29 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" |
29 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" | 30 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" |
30 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" | 31 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" |
31 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8_common_types.h" | 32 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8_common_types.h" |
32 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9.h" | 33 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9.h" |
33 #include "webrtc/rtc_base/checks.h" | 34 #include "webrtc/rtc_base/checks.h" |
34 #include "webrtc/rtc_base/cpu_time.h" | 35 #include "webrtc/rtc_base/cpu_time.h" |
35 #include "webrtc/rtc_base/event.h" | 36 #include "webrtc/rtc_base/event.h" |
36 #include "webrtc/rtc_base/flags.h" | 37 #include "webrtc/rtc_base/flags.h" |
37 #include "webrtc/rtc_base/format_macros.h" | 38 #include "webrtc/rtc_base/format_macros.h" |
38 #include "webrtc/rtc_base/logging.h" | 39 #include "webrtc/rtc_base/logging.h" |
39 #include "webrtc/rtc_base/memory_usage.h" | 40 #include "webrtc/rtc_base/memory_usage.h" |
40 #include "webrtc/rtc_base/optional.h" | |
41 #include "webrtc/rtc_base/pathutils.h" | 41 #include "webrtc/rtc_base/pathutils.h" |
42 #include "webrtc/rtc_base/platform_file.h" | 42 #include "webrtc/rtc_base/platform_file.h" |
43 #include "webrtc/rtc_base/ptr_util.h" | 43 #include "webrtc/rtc_base/ptr_util.h" |
44 #include "webrtc/rtc_base/timeutils.h" | 44 #include "webrtc/rtc_base/timeutils.h" |
45 #include "webrtc/system_wrappers/include/cpu_info.h" | 45 #include "webrtc/system_wrappers/include/cpu_info.h" |
46 #include "webrtc/system_wrappers/include/field_trial.h" | 46 #include "webrtc/system_wrappers/include/field_trial.h" |
47 #include "webrtc/test/gtest.h" | 47 #include "webrtc/test/gtest.h" |
48 #include "webrtc/test/layer_filtering_transport.h" | 48 #include "webrtc/test/layer_filtering_transport.h" |
49 #include "webrtc/test/run_loop.h" | 49 #include "webrtc/test/run_loop.h" |
50 #include "webrtc/test/statistics.h" | 50 #include "webrtc/test/statistics.h" |
(...skipping 2114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2165 if (!params_.logging.encoded_frame_base_path.empty()) { | 2165 if (!params_.logging.encoded_frame_base_path.empty()) { |
2166 std::ostringstream str; | 2166 std::ostringstream str; |
2167 str << receive_logs_++; | 2167 str << receive_logs_++; |
2168 std::string path = | 2168 std::string path = |
2169 params_.logging.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; | 2169 params_.logging.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; |
2170 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), | 2170 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), |
2171 100000000); | 2171 100000000); |
2172 } | 2172 } |
2173 } | 2173 } |
2174 } // namespace webrtc | 2174 } // namespace webrtc |
OLD | NEW |