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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_sender.h

Issue 1512493002: [rtp_rtcp] lint whitespace warning removed from most source/ files (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years 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) 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 const RTPFragmentationHeader* fragmentation, 156 const RTPFragmentationHeader* fragmentation,
157 const RTPVideoHeader* rtp_hdr = NULL); 157 const RTPVideoHeader* rtp_hdr = NULL);
158 158
159 // RTP header extension 159 // RTP header extension
160 int32_t SetTransmissionTimeOffset(int32_t transmission_time_offset); 160 int32_t SetTransmissionTimeOffset(int32_t transmission_time_offset);
161 int32_t SetAbsoluteSendTime(uint32_t absolute_send_time); 161 int32_t SetAbsoluteSendTime(uint32_t absolute_send_time);
162 void SetVideoRotation(VideoRotation rotation); 162 void SetVideoRotation(VideoRotation rotation);
163 int32_t SetTransportSequenceNumber(uint16_t sequence_number); 163 int32_t SetTransportSequenceNumber(uint16_t sequence_number);
164 164
165 int32_t RegisterRtpHeaderExtension(RTPExtensionType type, uint8_t id); 165 int32_t RegisterRtpHeaderExtension(RTPExtensionType type, uint8_t id);
166 virtual bool IsRtpHeaderExtensionRegistered(RTPExtensionType type) override; 166 bool IsRtpHeaderExtensionRegistered(RTPExtensionType type) override;
167 int32_t DeregisterRtpHeaderExtension(RTPExtensionType type); 167 int32_t DeregisterRtpHeaderExtension(RTPExtensionType type);
168 168
169 size_t RtpHeaderExtensionTotalLength() const; 169 size_t RtpHeaderExtensionTotalLength() const;
170 170
171 uint16_t BuildRTPHeaderExtension(uint8_t* data_buffer, bool marker_bit) const; 171 uint16_t BuildRTPHeaderExtension(uint8_t* data_buffer, bool marker_bit) const;
172 172
173 uint8_t BuildTransmissionTimeOffsetExtension(uint8_t *data_buffer) const; 173 uint8_t BuildTransmissionTimeOffsetExtension(uint8_t *data_buffer) const;
174 uint8_t BuildAudioLevelExtension(uint8_t* data_buffer) const; 174 uint8_t BuildAudioLevelExtension(uint8_t* data_buffer) const;
175 uint8_t BuildAbsoluteSendTimeExtension(uint8_t* data_buffer) const; 175 uint8_t BuildAbsoluteSendTimeExtension(uint8_t* data_buffer) const;
176 uint8_t BuildVideoRotationExtension(uint8_t* data_buffer) const; 176 uint8_t BuildVideoRotationExtension(uint8_t* data_buffer) const;
(...skipping 18 matching lines...) Expand all
195 size_t extension_length_bytes, 195 size_t extension_length_bytes,
196 size_t* extension_offset) const 196 size_t* extension_offset) const
197 EXCLUSIVE_LOCKS_REQUIRED(send_critsect_.get()); 197 EXCLUSIVE_LOCKS_REQUIRED(send_critsect_.get());
198 198
199 bool UpdateAudioLevel(uint8_t* rtp_packet, 199 bool UpdateAudioLevel(uint8_t* rtp_packet,
200 size_t rtp_packet_length, 200 size_t rtp_packet_length,
201 const RTPHeader& rtp_header, 201 const RTPHeader& rtp_header,
202 bool is_voiced, 202 bool is_voiced,
203 uint8_t dBov) const; 203 uint8_t dBov) const;
204 204
205 virtual bool UpdateVideoRotation(uint8_t* rtp_packet, 205 bool UpdateVideoRotation(uint8_t* rtp_packet,
206 size_t rtp_packet_length, 206 size_t rtp_packet_length,
207 const RTPHeader& rtp_header, 207 const RTPHeader& rtp_header,
208 VideoRotation rotation) const override; 208 VideoRotation rotation) const override;
209 209
210 bool TimeToSendPacket(uint16_t sequence_number, int64_t capture_time_ms, 210 bool TimeToSendPacket(uint16_t sequence_number, int64_t capture_time_ms,
211 bool retransmission); 211 bool retransmission);
212 size_t TimeToSendPadding(size_t bytes); 212 size_t TimeToSendPadding(size_t bytes);
213 213
214 // NACK. 214 // NACK.
215 int SelectiveRetransmissions() const; 215 int SelectiveRetransmissions() const;
216 int SetSelectiveRetransmissions(uint8_t settings); 216 int SetSelectiveRetransmissions(uint8_t settings);
217 void OnReceivedNACK(const std::list<uint16_t>& nack_sequence_numbers, 217 void OnReceivedNACK(const std::list<uint16_t>& nack_sequence_numbers,
218 int64_t avg_rtt); 218 int64_t avg_rtt);
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 // SetTargetBitrateKbps or GetTargetBitrateKbps. Also remember 461 // SetTargetBitrateKbps or GetTargetBitrateKbps. Also remember
462 // that by the time the function returns there is no guarantee 462 // that by the time the function returns there is no guarantee
463 // that the target bitrate is still valid. 463 // that the target bitrate is still valid.
464 rtc::scoped_ptr<CriticalSectionWrapper> target_bitrate_critsect_; 464 rtc::scoped_ptr<CriticalSectionWrapper> target_bitrate_critsect_;
465 uint32_t target_bitrate_ GUARDED_BY(target_bitrate_critsect_); 465 uint32_t target_bitrate_ GUARDED_BY(target_bitrate_critsect_);
466 }; 466 };
467 467
468 } // namespace webrtc 468 } // namespace webrtc
469 469
470 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ 470 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_rtcp_config.h ('k') | webrtc/modules/rtp_rtcp/source/rtp_sender_audio.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698