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

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

Issue 1687333002: Extract send-side ViEReceiver calls. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « webrtc/video/video_send_stream.cc ('k') | webrtc/video/vie_channel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 int SetSendTransportSequenceNumber(bool enable, int id); 99 int SetSendTransportSequenceNumber(bool enable, int id);
100 100
101 // Sets SSRC for outgoing stream. 101 // Sets SSRC for outgoing stream.
102 int32_t SetSSRC(const uint32_t SSRC, 102 int32_t SetSSRC(const uint32_t SSRC,
103 const StreamType usage, 103 const StreamType usage,
104 const unsigned char simulcast_idx); 104 const unsigned char simulcast_idx);
105 105
106 // Gets SSRC for outgoing stream number |idx|. 106 // Gets SSRC for outgoing stream number |idx|.
107 int32_t GetLocalSSRC(uint8_t idx, unsigned int* ssrc); 107 int32_t GetLocalSSRC(uint8_t idx, unsigned int* ssrc);
108 108
109 // Gets SSRC for the incoming stream.
110 uint32_t GetRemoteSSRC();
111
112 int SetRtxSendPayloadType(int payload_type, int associated_payload_type); 109 int SetRtxSendPayloadType(int payload_type, int associated_payload_type);
113 110
114 void SetRtpStateForSsrc(uint32_t ssrc, const RtpState& rtp_state); 111 void SetRtpStateForSsrc(uint32_t ssrc, const RtpState& rtp_state);
115 RtpState GetRtpStateForSsrc(uint32_t ssrc) const; 112 RtpState GetRtpStateForSsrc(uint32_t ssrc) const;
116 113
117 // Sets the CName for the outgoing stream on the channel. 114 // Sets the CName for the outgoing stream on the channel.
118 int32_t SetRTCPCName(const char* rtcp_cname); 115 int32_t SetRTCPCName(const char* rtcp_cname);
119 116
120 // Gets the CName of the incoming stream. 117 // Gets the CName of the incoming stream.
121 int32_t GetRemoteRTCPCName(char rtcp_cname[]); 118 int32_t GetRemoteRTCPCName(char rtcp_cname[]);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 const uint32_t rate) override; 160 const uint32_t rate) override;
164 void OnIncomingSSRCChanged(const uint32_t ssrc) override; 161 void OnIncomingSSRCChanged(const uint32_t ssrc) override;
165 void OnIncomingCSRCChanged(const uint32_t CSRC, const bool added) override; 162 void OnIncomingCSRCChanged(const uint32_t CSRC, const bool added) override;
166 163
167 int32_t StartSend(); 164 int32_t StartSend();
168 int32_t StopSend(); 165 int32_t StopSend();
169 bool Sending(); 166 bool Sending();
170 void StartReceive(); 167 void StartReceive();
171 void StopReceive(); 168 void StopReceive();
172 169
173 int32_t ReceivedRTPPacket(const void* rtp_packet,
174 const size_t rtp_packet_length,
175 const PacketTime& packet_time);
176 int32_t ReceivedRTCPPacket(const void* rtcp_packet,
177 const size_t rtcp_packet_length);
178
179 // Sets the maximum transfer unit size for the network link, i.e. including 170 // Sets the maximum transfer unit size for the network link, i.e. including
180 // IP, UDP and RTP headers. 171 // IP, UDP and RTP headers.
181 int32_t SetMTU(uint16_t mtu); 172 int32_t SetMTU(uint16_t mtu);
182 173
183 // Gets the modules used by the channel. 174 // Gets the modules used by the channel.
184 RtpRtcp* rtp_rtcp(); 175 RtpRtcp* rtp_rtcp();
185 ViEReceiver* vie_receiver(); 176 ViEReceiver* vie_receiver();
186 VCMProtectionCallback* vcm_protection_callback(); 177 VCMProtectionCallback* vcm_protection_callback();
187 178
188 179
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 size_t num_rtts_ GUARDED_BY(crit_); 397 size_t num_rtts_ GUARDED_BY(crit_);
407 398
408 // RtpRtcp modules, declared last as they use other members on construction. 399 // RtpRtcp modules, declared last as they use other members on construction.
409 const std::vector<RtpRtcp*> rtp_rtcp_modules_; 400 const std::vector<RtpRtcp*> rtp_rtcp_modules_;
410 size_t num_active_rtp_rtcp_modules_ GUARDED_BY(crit_); 401 size_t num_active_rtp_rtcp_modules_ GUARDED_BY(crit_);
411 }; 402 };
412 403
413 } // namespace webrtc 404 } // namespace webrtc
414 405
415 #endif // WEBRTC_VIDEO_VIE_CHANNEL_H_ 406 #endif // WEBRTC_VIDEO_VIE_CHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/video/video_send_stream.cc ('k') | webrtc/video/vie_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698