OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 <algorithm> | 10 #include <algorithm> |
11 #include <list> | 11 #include <list> |
12 #include <map> | 12 #include <map> |
13 #include <memory> | 13 #include <memory> |
14 #include <sstream> | 14 #include <sstream> |
15 #include <string> | 15 #include <string> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
| 18 #include "webrtc/api/optional.h" |
18 #include "webrtc/api/video_codecs/video_encoder.h" | 19 #include "webrtc/api/video_codecs/video_encoder.h" |
19 #include "webrtc/call/call.h" | 20 #include "webrtc/call/call.h" |
20 #include "webrtc/common_video/include/frame_callback.h" | 21 #include "webrtc/common_video/include/frame_callback.h" |
21 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" | 22 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" |
22 #include "webrtc/media/base/fakevideorenderer.h" | 23 #include "webrtc/media/base/fakevideorenderer.h" |
23 #include "webrtc/media/base/mediaconstants.h" | 24 #include "webrtc/media/base/mediaconstants.h" |
24 #include "webrtc/media/engine/internalencoderfactory.h" | 25 #include "webrtc/media/engine/internalencoderfactory.h" |
25 #include "webrtc/media/engine/simulcast_encoder_adapter.h" | 26 #include "webrtc/media/engine/simulcast_encoder_adapter.h" |
26 #include "webrtc/media/engine/webrtcvideoencoderfactory.h" | 27 #include "webrtc/media/engine/webrtcvideoencoderfactory.h" |
27 #include "webrtc/modules/include/module_common_types.h" | 28 #include "webrtc/modules/include/module_common_types.h" |
28 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | 29 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
29 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 30 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
30 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/nack.h" | 31 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/nack.h" |
31 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/rapid_resync_request.h" | 32 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/rapid_resync_request.h" |
32 #include "webrtc/modules/rtp_rtcp/source/rtp_format.h" | 33 #include "webrtc/modules/rtp_rtcp/source/rtp_format.h" |
33 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" | 34 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" |
34 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" | 35 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" |
35 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" | 36 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" |
36 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9.h" | 37 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9.h" |
37 #include "webrtc/modules/video_coding/include/video_coding_defines.h" | 38 #include "webrtc/modules/video_coding/include/video_coding_defines.h" |
38 #include "webrtc/rtc_base/checks.h" | 39 #include "webrtc/rtc_base/checks.h" |
39 #include "webrtc/rtc_base/event.h" | 40 #include "webrtc/rtc_base/event.h" |
40 #include "webrtc/rtc_base/file.h" | 41 #include "webrtc/rtc_base/file.h" |
41 #include "webrtc/rtc_base/optional.h" | |
42 #include "webrtc/rtc_base/ptr_util.h" | 42 #include "webrtc/rtc_base/ptr_util.h" |
43 #include "webrtc/rtc_base/random.h" | 43 #include "webrtc/rtc_base/random.h" |
44 #include "webrtc/rtc_base/rate_limiter.h" | 44 #include "webrtc/rtc_base/rate_limiter.h" |
45 #include "webrtc/system_wrappers/include/metrics.h" | 45 #include "webrtc/system_wrappers/include/metrics.h" |
46 #include "webrtc/system_wrappers/include/metrics_default.h" | 46 #include "webrtc/system_wrappers/include/metrics_default.h" |
47 #include "webrtc/system_wrappers/include/sleep.h" | 47 #include "webrtc/system_wrappers/include/sleep.h" |
48 #include "webrtc/test/call_test.h" | 48 #include "webrtc/test/call_test.h" |
49 #include "webrtc/test/direct_transport.h" | 49 #include "webrtc/test/direct_transport.h" |
50 #include "webrtc/test/encoder_settings.h" | 50 #include "webrtc/test/encoder_settings.h" |
51 #include "webrtc/test/fake_decoder.h" | 51 #include "webrtc/test/fake_decoder.h" |
(...skipping 4964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5016 std::unique_ptr<VideoEncoder> encoder_; | 5016 std::unique_ptr<VideoEncoder> encoder_; |
5017 std::unique_ptr<VideoDecoder> decoder_; | 5017 std::unique_ptr<VideoDecoder> decoder_; |
5018 rtc::CriticalSection crit_; | 5018 rtc::CriticalSection crit_; |
5019 int recorded_frames_ GUARDED_BY(crit_); | 5019 int recorded_frames_ GUARDED_BY(crit_); |
5020 } test(this); | 5020 } test(this); |
5021 | 5021 |
5022 RunBaseTest(&test); | 5022 RunBaseTest(&test); |
5023 } | 5023 } |
5024 | 5024 |
5025 } // namespace webrtc | 5025 } // namespace webrtc |
OLD | NEW |