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

Side by Side Diff: webrtc/common_types.cc

Issue 3006343002: Add explicit copy constructors to RTPHeader and RTPHeaderExtension (Closed)
Patch Set: Created 3 years, 3 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/common_types.h ('K') | « webrtc/common_types.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) 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 transportSequenceNumber(0), 50 transportSequenceNumber(0),
51 hasAudioLevel(false), 51 hasAudioLevel(false),
52 voiceActivity(false), 52 voiceActivity(false),
53 audioLevel(0), 53 audioLevel(0),
54 hasVideoRotation(false), 54 hasVideoRotation(false),
55 videoRotation(kVideoRotation_0), 55 videoRotation(kVideoRotation_0),
56 hasVideoContentType(false), 56 hasVideoContentType(false),
57 videoContentType(VideoContentType::UNSPECIFIED), 57 videoContentType(VideoContentType::UNSPECIFIED),
58 has_video_timing(false) {} 58 has_video_timing(false) {}
59 59
60 RTPHeaderExtension::RTPHeaderExtension(const RTPHeaderExtension&) = default;
61
60 RTPHeader::RTPHeader() 62 RTPHeader::RTPHeader()
61 : markerBit(false), 63 : markerBit(false),
62 payloadType(0), 64 payloadType(0),
63 sequenceNumber(0), 65 sequenceNumber(0),
64 timestamp(0), 66 timestamp(0),
65 ssrc(0), 67 ssrc(0),
66 numCSRCs(0), 68 numCSRCs(0),
67 arrOfCSRCs(), 69 arrOfCSRCs(),
68 paddingLength(0), 70 paddingLength(0),
69 headerLength(0), 71 headerLength(0),
70 payload_type_frequency(0), 72 payload_type_frequency(0),
71 extension() {} 73 extension() {}
72 74
75 RTPHeader::RTPHeader(const RTPHeader& other) = default;
76
73 VideoCodec::VideoCodec() 77 VideoCodec::VideoCodec()
74 : codecType(kVideoCodecUnknown), 78 : codecType(kVideoCodecUnknown),
75 plName(), 79 plName(),
76 plType(0), 80 plType(0),
77 width(0), 81 width(0),
78 height(0), 82 height(0),
79 startBitrate(0), 83 startBitrate(0),
80 maxBitrate(0), 84 maxBitrate(0),
81 minBitrate(0), 85 minBitrate(0),
82 targetBitrate(0), 86 targetBitrate(0),
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 oss << " ]"; 263 oss << " ]";
260 return oss.str(); 264 return oss.str();
261 } 265 }
262 266
263 std::ostream& BitrateAllocation::operator<<(std::ostream& os) const { 267 std::ostream& BitrateAllocation::operator<<(std::ostream& os) const {
264 os << ToString(); 268 os << ToString();
265 return os; 269 return os;
266 } 270 }
267 271
268 } // namespace webrtc 272 } // namespace webrtc
OLDNEW
« webrtc/common_types.h ('K') | « webrtc/common_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698