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/base/checks.h" | |
22 #include "webrtc/base/cpu_time.h" | |
23 #include "webrtc/base/event.h" | |
24 #include "webrtc/base/format_macros.h" | |
25 #include "webrtc/base/memory_usage.h" | |
26 #include "webrtc/base/optional.h" | |
27 #include "webrtc/base/platform_file.h" | |
28 #include "webrtc/base/timeutils.h" | |
29 #include "webrtc/call/call.h" | 21 #include "webrtc/call/call.h" |
30 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 22 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
31 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" | 23 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" |
32 #include "webrtc/media/engine/webrtcvideoengine.h" | 24 #include "webrtc/media/engine/webrtcvideoengine.h" |
33 #include "webrtc/modules/audio_mixer/audio_mixer_impl.h" | 25 #include "webrtc/modules/audio_mixer/audio_mixer_impl.h" |
34 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" | 26 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |
35 #include "webrtc/modules/rtp_rtcp/source/rtp_format.h" | 27 #include "webrtc/modules/rtp_rtcp/source/rtp_format.h" |
36 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" | 28 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" |
37 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" | 29 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" |
38 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" | 30 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" |
39 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8_common_types.h" | 31 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8_common_types.h" |
40 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9.h" | 32 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9.h" |
| 33 #include "webrtc/rtc_base/checks.h" |
| 34 #include "webrtc/rtc_base/cpu_time.h" |
| 35 #include "webrtc/rtc_base/event.h" |
| 36 #include "webrtc/rtc_base/format_macros.h" |
| 37 #include "webrtc/rtc_base/memory_usage.h" |
| 38 #include "webrtc/rtc_base/optional.h" |
| 39 #include "webrtc/rtc_base/platform_file.h" |
| 40 #include "webrtc/rtc_base/timeutils.h" |
41 #include "webrtc/system_wrappers/include/cpu_info.h" | 41 #include "webrtc/system_wrappers/include/cpu_info.h" |
42 #include "webrtc/system_wrappers/include/field_trial.h" | 42 #include "webrtc/system_wrappers/include/field_trial.h" |
43 #include "webrtc/test/gtest.h" | 43 #include "webrtc/test/gtest.h" |
44 #include "webrtc/test/layer_filtering_transport.h" | 44 #include "webrtc/test/layer_filtering_transport.h" |
45 #include "webrtc/test/run_loop.h" | 45 #include "webrtc/test/run_loop.h" |
46 #include "webrtc/test/statistics.h" | 46 #include "webrtc/test/statistics.h" |
47 #include "webrtc/test/testsupport/fileutils.h" | 47 #include "webrtc/test/testsupport/fileutils.h" |
48 #include "webrtc/test/vcm_capturer.h" | 48 #include "webrtc/test/vcm_capturer.h" |
49 #include "webrtc/test/video_renderer.h" | 49 #include "webrtc/test/video_renderer.h" |
50 #include "webrtc/voice_engine/include/voe_base.h" | 50 #include "webrtc/voice_engine/include/voe_base.h" |
(...skipping 1968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2019 if (!params_.video.encoded_frame_base_path.empty()) { | 2019 if (!params_.video.encoded_frame_base_path.empty()) { |
2020 std::ostringstream str; | 2020 std::ostringstream str; |
2021 str << receive_logs_++; | 2021 str << receive_logs_++; |
2022 std::string path = | 2022 std::string path = |
2023 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; | 2023 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; |
2024 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), | 2024 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), |
2025 10000000); | 2025 10000000); |
2026 } | 2026 } |
2027 } | 2027 } |
2028 } // namespace webrtc | 2028 } // namespace webrtc |
OLD | NEW |