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

Side by Side Diff: webrtc/modules/audio_coding/neteq/tools/packet.h

Issue 2290593002: Fix Chromium clang plugin warnings (Closed)
Patch Set: Created 4 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
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 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // parser. Note that when the object is constructed using any of these 55 // parser. Note that when the object is constructed using any of these
56 // methods, the header will be parsed using a default RtpHeaderParser object. 56 // methods, the header will be parsed using a default RtpHeaderParser object.
57 // In particular, RTP header extensions won't be parsed. 57 // In particular, RTP header extensions won't be parsed.
58 Packet(uint8_t* packet_memory, size_t allocated_bytes, double time_ms); 58 Packet(uint8_t* packet_memory, size_t allocated_bytes, double time_ms);
59 59
60 Packet(uint8_t* packet_memory, 60 Packet(uint8_t* packet_memory,
61 size_t allocated_bytes, 61 size_t allocated_bytes,
62 size_t virtual_packet_length_bytes, 62 size_t virtual_packet_length_bytes,
63 double time_ms); 63 double time_ms);
64 64
65 virtual ~Packet() {} 65 virtual ~Packet();
66 66
67 // Parses the first bytes of the RTP payload, interpreting them as RED headers 67 // Parses the first bytes of the RTP payload, interpreting them as RED headers
68 // according to RFC 2198. The headers will be inserted into |headers|. The 68 // according to RFC 2198. The headers will be inserted into |headers|. The
69 // caller of the method assumes ownership of the objects in the list, and 69 // caller of the method assumes ownership of the objects in the list, and
70 // must delete them properly. 70 // must delete them properly.
71 bool ExtractRedHeaders(std::list<RTPHeader*>* headers) const; 71 bool ExtractRedHeaders(std::list<RTPHeader*>* headers) const;
72 72
73 // Deletes all RTPHeader objects in |headers|, but does not delete |headers| 73 // Deletes all RTPHeader objects in |headers|, but does not delete |headers|
74 // itself. 74 // itself.
75 static void DeleteRedHeaders(std::list<RTPHeader*>* headers); 75 static void DeleteRedHeaders(std::list<RTPHeader*>* headers);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 size_t virtual_payload_length_bytes_; 113 size_t virtual_payload_length_bytes_;
114 double time_ms_; // Used to denote a packet's arrival time. 114 double time_ms_; // Used to denote a packet's arrival time.
115 bool valid_header_; // Set by the RtpHeaderParser. 115 bool valid_header_; // Set by the RtpHeaderParser.
116 116
117 RTC_DISALLOW_COPY_AND_ASSIGN(Packet); 117 RTC_DISALLOW_COPY_AND_ASSIGN(Packet);
118 }; 118 };
119 119
120 } // namespace test 120 } // namespace test
121 } // namespace webrtc 121 } // namespace webrtc
122 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_PACKET_H_ 122 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_PACKET_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/neteq.gypi ('k') | webrtc/modules/audio_coding/neteq/tools/packet.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698