Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: webrtc/video/video_send_stream.h

Issue 2685673003: Define RtpTransportControllerSendInterface. (Closed)
Patch Set: Fix dependency problem. Add accessors transport_feedback_observer and packet_sender. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_SEND_STREAM_H_ 11 #ifndef WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_
12 #define WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ 12 #define WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_
13 13
14 #include <map> 14 #include <map>
15 #include <memory> 15 #include <memory>
16 #include <vector> 16 #include <vector>
17 17
18 #include "webrtc/call/bitrate_allocator.h" 18 #include "webrtc/call/bitrate_allocator.h"
19 #include "webrtc/base/criticalsection.h" 19 #include "webrtc/base/criticalsection.h"
20 #include "webrtc/base/event.h" 20 #include "webrtc/base/event.h"
21 #include "webrtc/base/task_queue.h" 21 #include "webrtc/base/task_queue.h"
22 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" 22 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
23 #include "webrtc/modules/video_coding/protection_bitrate_calculator.h" 23 #include "webrtc/modules/video_coding/protection_bitrate_calculator.h"
24 #include "webrtc/video/encoder_rtcp_feedback.h" 24 #include "webrtc/video/encoder_rtcp_feedback.h"
25 #include "webrtc/video/payload_router.h"
26 #include "webrtc/video/send_delay_stats.h" 25 #include "webrtc/video/send_delay_stats.h"
27 #include "webrtc/video/send_statistics_proxy.h" 26 #include "webrtc/video/send_statistics_proxy.h"
28 #include "webrtc/video/vie_encoder.h" 27 #include "webrtc/video/vie_encoder.h"
29 #include "webrtc/video_receive_stream.h" 28 #include "webrtc/video_receive_stream.h"
30 #include "webrtc/video_send_stream.h" 29 #include "webrtc/video_send_stream.h"
31 30
32 namespace webrtc { 31 namespace webrtc {
33 32
34 class BitrateAllocator;
35 class CallStats; 33 class CallStats;
36 class CongestionController; 34 class CongestionController;
37 class IvfFileWriter; 35 class IvfFileWriter;
38 class PacketRouter;
39 class ProcessThread; 36 class ProcessThread;
40 class RtpRtcp; 37 class RtpRtcp;
41 class VieRemb; 38 class RtpTransportControllerSendInterface;
42 class RtcEventLog; 39 class RtcEventLog;
43 40
44 namespace internal { 41 namespace internal {
45 42
46 class VideoSendStreamImpl; 43 class VideoSendStreamImpl;
47 44
48 // VideoSendStream implements webrtc::VideoSendStream. 45 // VideoSendStream implements webrtc::VideoSendStream.
49 // Internally, it delegates all public methods to VideoSendStreamImpl and / or 46 // Internally, it delegates all public methods to VideoSendStreamImpl and / or
50 // VieEncoder. VideoSendStreamInternal is created and deleted on |worker_queue|. 47 // VieEncoder. VideoSendStreamInternal is created and deleted on |worker_queue|.
51 class VideoSendStream : public webrtc::VideoSendStream { 48 class VideoSendStream : public webrtc::VideoSendStream {
52 public: 49 public:
53 VideoSendStream(int num_cpu_cores, 50 VideoSendStream(int num_cpu_cores,
54 ProcessThread* module_process_thread, 51 ProcessThread* module_process_thread,
55 rtc::TaskQueue* worker_queue, 52 rtc::TaskQueue* worker_queue,
56 CallStats* call_stats, 53 CallStats* call_stats,
57 CongestionController* congestion_controller, 54 RtpTransportControllerSendInterface* transport,
58 PacketRouter* packet_router,
59 BitrateAllocator* bitrate_allocator, 55 BitrateAllocator* bitrate_allocator,
60 SendDelayStats* send_delay_stats, 56 SendDelayStats* send_delay_stats,
61 VieRemb* remb,
62 RtcEventLog* event_log, 57 RtcEventLog* event_log,
63 VideoSendStream::Config config, 58 VideoSendStream::Config config,
64 VideoEncoderConfig encoder_config, 59 VideoEncoderConfig encoder_config,
65 const std::map<uint32_t, RtpState>& suspended_ssrcs); 60 const std::map<uint32_t, RtpState>& suspended_ssrcs);
66 61
67 ~VideoSendStream() override; 62 ~VideoSendStream() override;
68 63
69 void SignalNetworkState(NetworkState state); 64 void SignalNetworkState(NetworkState state);
70 bool DeliverRtcp(const uint8_t* packet, size_t length); 65 bool DeliverRtcp(const uint8_t* packet, size_t length);
71 66
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 const VideoSendStream::Config config_; 101 const VideoSendStream::Config config_;
107 const VideoEncoderConfig::ContentType content_type_; 102 const VideoEncoderConfig::ContentType content_type_;
108 std::unique_ptr<VideoSendStreamImpl> send_stream_; 103 std::unique_ptr<VideoSendStreamImpl> send_stream_;
109 std::unique_ptr<ViEEncoder> vie_encoder_; 104 std::unique_ptr<ViEEncoder> vie_encoder_;
110 }; 105 };
111 106
112 } // namespace internal 107 } // namespace internal
113 } // namespace webrtc 108 } // namespace webrtc
114 109
115 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ 110 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698