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

Side by Side Diff: webrtc/call/flexfec_receive_stream_impl.cc

Issue 2826263004: Move responsibility for RTP header extensions on video receive. (Closed)
Patch Set: Created 3 years, 8 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) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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 25 matching lines...) Expand all
36 ss << "{payload_type: " << payload_type; 36 ss << "{payload_type: " << payload_type;
37 ss << ", remote_ssrc: " << remote_ssrc; 37 ss << ", remote_ssrc: " << remote_ssrc;
38 ss << ", local_ssrc: " << local_ssrc; 38 ss << ", local_ssrc: " << local_ssrc;
39 ss << ", protected_media_ssrcs: ["; 39 ss << ", protected_media_ssrcs: [";
40 size_t i = 0; 40 size_t i = 0;
41 for (; i + 1 < protected_media_ssrcs.size(); ++i) 41 for (; i + 1 < protected_media_ssrcs.size(); ++i)
42 ss << protected_media_ssrcs[i] << ", "; 42 ss << protected_media_ssrcs[i] << ", ";
43 if (!protected_media_ssrcs.empty()) 43 if (!protected_media_ssrcs.empty())
44 ss << protected_media_ssrcs[i]; 44 ss << protected_media_ssrcs[i];
45 ss << "], transport_cc: " << (transport_cc ? "on" : "off"); 45 ss << "], transport_cc: " << (transport_cc ? "on" : "off");
46 ss << ", rtp_header_extensions: ["; 46 ss << "}";
47 i = 0;
48 for (; i + 1 < rtp_header_extensions.size(); ++i)
49 ss << rtp_header_extensions[i].ToString() << ", ";
50 if (!rtp_header_extensions.empty())
51 ss << rtp_header_extensions[i].ToString();
52 ss << "]}";
53 return ss.str(); 47 return ss.str();
54 } 48 }
55 49
56 bool FlexfecReceiveStream::Config::IsCompleteAndEnabled() const { 50 bool FlexfecReceiveStream::Config::IsCompleteAndEnabled() const {
57 // Check if FlexFEC is enabled. 51 // Check if FlexFEC is enabled.
58 if (payload_type < 0) 52 if (payload_type < 0)
59 return false; 53 return false;
60 // Do we have the necessary SSRC information? 54 // Do we have the necessary SSRC information?
61 if (remote_ssrc == 0) 55 if (remote_ssrc == 0)
62 return false; 56 return false;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 started_ = false; 176 started_ = false;
183 } 177 }
184 178
185 // TODO(brandtr): Implement this member function when we have designed the 179 // TODO(brandtr): Implement this member function when we have designed the
186 // stats for FlexFEC. 180 // stats for FlexFEC.
187 FlexfecReceiveStreamImpl::Stats FlexfecReceiveStreamImpl::GetStats() const { 181 FlexfecReceiveStreamImpl::Stats FlexfecReceiveStreamImpl::GetStats() const {
188 return FlexfecReceiveStream::Stats(); 182 return FlexfecReceiveStream::Stats();
189 } 183 }
190 184
191 } // namespace webrtc 185 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698