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 | 10 |
11 #ifndef WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ | 11 #ifndef WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ |
12 #define WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ | 12 #define WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "webrtc/call.h" | 17 #include "webrtc/call.h" |
18 #include "webrtc/call/transport_adapter.h" | 18 #include "webrtc/call/transport_adapter.h" |
19 #include "webrtc/common_video/include/incoming_video_stream.h" | 19 #include "webrtc/common_video/include/incoming_video_stream.h" |
20 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 20 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
21 #include "webrtc/modules/video_coding/video_coding_impl.h" | 21 #include "webrtc/modules/video_coding/video_coding_impl.h" |
22 #include "webrtc/system_wrappers/include/clock.h" | 22 #include "webrtc/system_wrappers/include/clock.h" |
23 #include "webrtc/video/encoded_frame_callback_adapter.h" | |
24 #include "webrtc/video/receive_statistics_proxy.h" | 23 #include "webrtc/video/receive_statistics_proxy.h" |
25 #include "webrtc/video/rtp_stream_receiver.h" | 24 #include "webrtc/video/rtp_stream_receiver.h" |
26 #include "webrtc/video/video_stream_decoder.h" | 25 #include "webrtc/video/video_stream_decoder.h" |
27 #include "webrtc/video_receive_stream.h" | 26 #include "webrtc/video_receive_stream.h" |
28 | 27 |
29 namespace webrtc { | 28 namespace webrtc { |
30 | 29 |
31 class CallStats; | 30 class CallStats; |
32 class CongestionController; | 31 class CongestionController; |
33 class IvfFileWriter; | 32 class IvfFileWriter; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 void SendNack(const std::vector<uint16_t>& sequence_numbers) override; | 79 void SendNack(const std::vector<uint16_t>& sequence_numbers) override; |
81 | 80 |
82 // Implements KeyFrameRequestSender. | 81 // Implements KeyFrameRequestSender. |
83 void RequestKeyFrame() override; | 82 void RequestKeyFrame() override; |
84 | 83 |
85 private: | 84 private: |
86 static bool DecodeThreadFunction(void* ptr); | 85 static bool DecodeThreadFunction(void* ptr); |
87 void Decode(); | 86 void Decode(); |
88 | 87 |
89 TransportAdapter transport_adapter_; | 88 TransportAdapter transport_adapter_; |
90 EncodedFrameCallbackAdapter encoded_frame_proxy_; | |
91 const VideoReceiveStream::Config config_; | 89 const VideoReceiveStream::Config config_; |
92 ProcessThread* const process_thread_; | 90 ProcessThread* const process_thread_; |
93 Clock* const clock_; | 91 Clock* const clock_; |
94 | 92 |
95 rtc::PlatformThread decode_thread_; | 93 rtc::PlatformThread decode_thread_; |
96 | 94 |
97 CongestionController* const congestion_controller_; | 95 CongestionController* const congestion_controller_; |
98 CallStats* const call_stats_; | 96 CallStats* const call_stats_; |
99 | 97 |
100 vcm::VideoReceiver video_receiver_; | 98 vcm::VideoReceiver video_receiver_; |
101 std::unique_ptr<rtc::VideoSinkInterface<VideoFrame>> incoming_video_stream_; | 99 std::unique_ptr<rtc::VideoSinkInterface<VideoFrame>> incoming_video_stream_; |
102 ReceiveStatisticsProxy stats_proxy_; | 100 ReceiveStatisticsProxy stats_proxy_; |
103 RtpStreamReceiver rtp_stream_receiver_; | 101 RtpStreamReceiver rtp_stream_receiver_; |
104 std::unique_ptr<VideoStreamDecoder> video_stream_decoder_; | 102 std::unique_ptr<VideoStreamDecoder> video_stream_decoder_; |
105 ViESyncModule vie_sync_; | 103 ViESyncModule vie_sync_; |
106 | 104 |
107 std::unique_ptr<IvfFileWriter> ivf_writer_; | 105 std::unique_ptr<IvfFileWriter> ivf_writer_; |
108 }; | 106 }; |
109 } // namespace internal | 107 } // namespace internal |
110 } // namespace webrtc | 108 } // namespace webrtc |
111 | 109 |
112 #endif // WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ | 110 #endif // WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ |
OLD | NEW |