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

Side by Side Diff: webrtc/common_types.cc

Issue 3006343002: Add explicit copy constructors to RTPHeader and RTPHeaderExtension (Closed)
Patch Set: Assignment constructors added. 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
« no previous file with comments | « 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& other) =
61 default;
62
63 RTPHeaderExtension& RTPHeaderExtension::operator=(
64 const RTPHeaderExtension& other) = default;
65
60 RTPHeader::RTPHeader() 66 RTPHeader::RTPHeader()
61 : markerBit(false), 67 : markerBit(false),
62 payloadType(0), 68 payloadType(0),
63 sequenceNumber(0), 69 sequenceNumber(0),
64 timestamp(0), 70 timestamp(0),
65 ssrc(0), 71 ssrc(0),
66 numCSRCs(0), 72 numCSRCs(0),
67 arrOfCSRCs(), 73 arrOfCSRCs(),
68 paddingLength(0), 74 paddingLength(0),
69 headerLength(0), 75 headerLength(0),
70 payload_type_frequency(0), 76 payload_type_frequency(0),
71 extension() {} 77 extension() {}
72 78
79 RTPHeader::RTPHeader(const RTPHeader& other) = default;
80
81 RTPHeader& RTPHeader::operator=(const RTPHeader& other) = default;
82
73 VideoCodec::VideoCodec() 83 VideoCodec::VideoCodec()
74 : codecType(kVideoCodecUnknown), 84 : codecType(kVideoCodecUnknown),
75 plName(), 85 plName(),
76 plType(0), 86 plType(0),
77 width(0), 87 width(0),
78 height(0), 88 height(0),
79 startBitrate(0), 89 startBitrate(0),
80 maxBitrate(0), 90 maxBitrate(0),
81 minBitrate(0), 91 minBitrate(0),
82 targetBitrate(0), 92 targetBitrate(0),
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 oss << " ]"; 269 oss << " ]";
260 return oss.str(); 270 return oss.str();
261 } 271 }
262 272
263 std::ostream& BitrateAllocation::operator<<(std::ostream& os) const { 273 std::ostream& BitrateAllocation::operator<<(std::ostream& os) const {
264 os << ToString(); 274 os << ToString();
265 return os; 275 return os;
266 } 276 }
267 277
268 } // namespace webrtc 278 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/common_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698