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/video_codecs/video_encoder.h" | 18 #include "webrtc/api/video_codecs/video_encoder.h" |
19 #include "webrtc/base/checks.h" | |
20 #include "webrtc/base/event.h" | |
21 #include "webrtc/base/file.h" | |
22 #include "webrtc/base/optional.h" | |
23 #include "webrtc/base/random.h" | |
24 #include "webrtc/base/rate_limiter.h" | |
25 #include "webrtc/call/call.h" | 19 #include "webrtc/call/call.h" |
26 #include "webrtc/common_video/include/frame_callback.h" | 20 #include "webrtc/common_video/include/frame_callback.h" |
27 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" | 21 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" |
28 #include "webrtc/media/base/fakevideorenderer.h" | 22 #include "webrtc/media/base/fakevideorenderer.h" |
29 #include "webrtc/media/base/mediaconstants.h" | 23 #include "webrtc/media/base/mediaconstants.h" |
30 #include "webrtc/media/engine/internalencoderfactory.h" | 24 #include "webrtc/media/engine/internalencoderfactory.h" |
31 #include "webrtc/media/engine/webrtcvideoencoderfactory.h" | 25 #include "webrtc/media/engine/webrtcvideoencoderfactory.h" |
32 #include "webrtc/modules/include/module_common_types.h" | 26 #include "webrtc/modules/include/module_common_types.h" |
33 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | 27 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
34 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 28 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
35 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/nack.h" | 29 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/nack.h" |
36 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/rapid_resync_request.h" | 30 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/rapid_resync_request.h" |
37 #include "webrtc/modules/rtp_rtcp/source/rtp_format.h" | 31 #include "webrtc/modules/rtp_rtcp/source/rtp_format.h" |
38 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" | 32 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" |
39 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" | 33 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" |
40 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" | 34 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" |
41 #include "webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.h" | 35 #include "webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.h" |
42 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9.h" | 36 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9.h" |
43 #include "webrtc/modules/video_coding/include/video_coding_defines.h" | 37 #include "webrtc/modules/video_coding/include/video_coding_defines.h" |
| 38 #include "webrtc/rtc_base/checks.h" |
| 39 #include "webrtc/rtc_base/event.h" |
| 40 #include "webrtc/rtc_base/file.h" |
| 41 #include "webrtc/rtc_base/optional.h" |
| 42 #include "webrtc/rtc_base/random.h" |
| 43 #include "webrtc/rtc_base/rate_limiter.h" |
44 #include "webrtc/system_wrappers/include/metrics.h" | 44 #include "webrtc/system_wrappers/include/metrics.h" |
45 #include "webrtc/system_wrappers/include/metrics_default.h" | 45 #include "webrtc/system_wrappers/include/metrics_default.h" |
46 #include "webrtc/system_wrappers/include/sleep.h" | 46 #include "webrtc/system_wrappers/include/sleep.h" |
47 #include "webrtc/test/call_test.h" | 47 #include "webrtc/test/call_test.h" |
48 #include "webrtc/test/direct_transport.h" | 48 #include "webrtc/test/direct_transport.h" |
49 #include "webrtc/test/encoder_settings.h" | 49 #include "webrtc/test/encoder_settings.h" |
50 #include "webrtc/test/fake_decoder.h" | 50 #include "webrtc/test/fake_decoder.h" |
51 #include "webrtc/test/fake_encoder.h" | 51 #include "webrtc/test/fake_encoder.h" |
52 #include "webrtc/test/field_trial.h" | 52 #include "webrtc/test/field_trial.h" |
53 #include "webrtc/test/frame_generator.h" | 53 #include "webrtc/test/frame_generator.h" |
(...skipping 4637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4691 std::unique_ptr<VideoEncoder> encoder_; | 4691 std::unique_ptr<VideoEncoder> encoder_; |
4692 std::unique_ptr<VideoDecoder> decoder_; | 4692 std::unique_ptr<VideoDecoder> decoder_; |
4693 rtc::CriticalSection crit_; | 4693 rtc::CriticalSection crit_; |
4694 int recorded_frames_ GUARDED_BY(crit_); | 4694 int recorded_frames_ GUARDED_BY(crit_); |
4695 } test(this); | 4695 } test(this); |
4696 | 4696 |
4697 RunBaseTest(&test); | 4697 RunBaseTest(&test); |
4698 } | 4698 } |
4699 | 4699 |
4700 } // namespace webrtc | 4700 } // namespace webrtc |
OLD | NEW |