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

Side by Side Diff: webrtc/config.cc

Issue 2397843005: Add FlexfecReceiveStream. (Closed)
Patch Set: Feedback response 1. Created 4 years, 2 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
« webrtc/call/flexfec_receive_stream.cc ('K') | « webrtc/config.h ('k') | no next file » | 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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 #include "webrtc/config.h" 10 #include "webrtc/config.h"
(...skipping 13 matching lines...) Expand all
24 24
25 std::string UlpfecConfig::ToString() const { 25 std::string UlpfecConfig::ToString() const {
26 std::stringstream ss; 26 std::stringstream ss;
27 ss << "{ulpfec_payload_type: " << ulpfec_payload_type; 27 ss << "{ulpfec_payload_type: " << ulpfec_payload_type;
28 ss << ", red_payload_type: " << red_payload_type; 28 ss << ", red_payload_type: " << red_payload_type;
29 ss << ", red_rtx_payload_type: " << red_rtx_payload_type; 29 ss << ", red_rtx_payload_type: " << red_rtx_payload_type;
30 ss << '}'; 30 ss << '}';
31 return ss.str(); 31 return ss.str();
32 } 32 }
33 33
34 std::string FlexfecConfig::ToString() const {
35 std::stringstream ss;
36 ss << "{flexfec_payload_type: " << flexfec_payload_type;
37 ss << ", flexfec_ssrc: " << flexfec_ssrc;
38 ss << ", protected_media_ssrcs: {";
39 size_t i = 0;
40 for (; i + 1 < protected_media_ssrcs.size(); ++i) {
41 ss << protected_media_ssrcs[i] << ", ";
42 }
43 if (!protected_media_ssrcs.empty())
44 ss << protected_media_ssrcs[i];
45 ss << "}}";
46 return ss.str();
47 }
48
34 std::string RtpExtension::ToString() const { 49 std::string RtpExtension::ToString() const {
35 std::stringstream ss; 50 std::stringstream ss;
36 ss << "{uri: " << uri; 51 ss << "{uri: " << uri;
37 ss << ", id: " << id; 52 ss << ", id: " << id;
38 ss << '}'; 53 ss << '}';
39 return ss.str(); 54 return ss.str();
40 } 55 }
41 56
42 const char* RtpExtension::kAudioLevelUri = 57 const char* RtpExtension::kAudioLevelUri =
43 "urn:ietf:params:rtp-hdrext:ssrc-audio-level"; 58 "urn:ietf:params:rtp-hdrext:ssrc-audio-level";
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 VideoEncoderConfig::Vp9EncoderSpecificSettings::Vp9EncoderSpecificSettings( 205 VideoEncoderConfig::Vp9EncoderSpecificSettings::Vp9EncoderSpecificSettings(
191 const VideoCodecVP9& specifics) 206 const VideoCodecVP9& specifics)
192 : specifics_(specifics) {} 207 : specifics_(specifics) {}
193 208
194 void VideoEncoderConfig::Vp9EncoderSpecificSettings::FillVideoCodecVp9( 209 void VideoEncoderConfig::Vp9EncoderSpecificSettings::FillVideoCodecVp9(
195 VideoCodecVP9* vp9_settings) const { 210 VideoCodecVP9* vp9_settings) const {
196 *vp9_settings = specifics_; 211 *vp9_settings = specifics_;
197 } 212 }
198 213
199 } // namespace webrtc 214 } // namespace webrtc
OLDNEW
« webrtc/call/flexfec_receive_stream.cc ('K') | « webrtc/config.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698