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

Unified Diff: webrtc/video_receive_stream.h

Issue 2654163006: Reland of Make RTX pt/apt reconfigurable by calling WebRtcVideoChannel2::SetRecvParameters. (Closed)
Patch Set: Update transition code. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/video/video_receive_stream.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video_receive_stream.h
diff --git a/webrtc/video_receive_stream.h b/webrtc/video_receive_stream.h
index 87d70af49fb46886c2073255dd0c40d9e84c685a..26f8597b764e2df0bca3b2b8c84dcbe92fb9015d 100644
--- a/webrtc/video_receive_stream.h
+++ b/webrtc/video_receive_stream.h
@@ -117,6 +117,7 @@ class VideoReceiveStream {
// Synchronization source (stream identifier) to be received.
uint32_t remote_ssrc = 0;
+
// Sender SSRC used for sending RTCP (such as receiver reports).
uint32_t local_ssrc = 0;
@@ -142,27 +143,18 @@ class VideoReceiveStream {
// See UlpfecConfig for description.
UlpfecConfig ulpfec;
- // RTX settings for incoming video payloads that may be received. RTX is
- // disabled if there's no config present.
- struct Rtx {
- // SSRCs to use for the RTX streams.
- uint32_t ssrc = 0;
-
- // Payload type to use for the RTX stream.
- int payload_type = 0;
- };
+ // SSRC for retransmissions.
+ uint32_t rtx_ssrc = 0;
- // Map from video RTP payload type -> RTX config.
- typedef std::map<int, Rtx> RtxMap;
- RtxMap rtx;
+ // Map from video payload type (apt) -> RTX payload type (pt).
+ // For RTX to be enabled, both an SSRC and this mapping are needed.
+ std::map<int, int> rtx_payload_types;
// TODO(brandtr): Remove this member function when internal project has
// been updated.
- void AddRtxInfo(int media_pt, int rtx_pt, uint32_t rtx_ssrc) {
- Rtx r;
- r.ssrc = rtx_ssrc;
- r.payload_type = rtx_pt;
- rtx[media_pt] = r;
+ void AddRtxInfo(int media_pt, int rtx_pt, uint32_t new_rtx_ssrc) {
+ rtx_ssrc = new_rtx_ssrc;
+ rtx_payload_types[media_pt] = rtx_pt;
}
// RTP header extensions used for the received stream.
« no previous file with comments | « webrtc/video/video_receive_stream.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698