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

Side by Side Diff: webrtc/voice_engine/channel.h

Issue 2437503004: Set actual transport overhead in rtp_rtcp (Closed)
Patch Set: 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
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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 rtc::CritScope lock(&assoc_send_channel_lock_); 413 rtc::CritScope lock(&assoc_send_channel_lock_);
414 associate_send_channel_ = channel; 414 associate_send_channel_ = channel;
415 } 415 }
416 416
417 // Disassociate a send channel if it was associated. 417 // Disassociate a send channel if it was associated.
418 void DisassociateSendChannel(int channel_id); 418 void DisassociateSendChannel(int channel_id);
419 419
420 // Set a RtcEventLog logging object. 420 // Set a RtcEventLog logging object.
421 void SetRtcEventLog(RtcEventLog* event_log); 421 void SetRtcEventLog(RtcEventLog* event_log);
422 422
423 void SetTransportOverhead(int transport_overhead_per_packet_byte);
424
423 protected: 425 protected:
424 void OnIncomingFractionLoss(int fraction_lost); 426 void OnIncomingFractionLoss(int fraction_lost);
425 427
426 private: 428 private:
427 bool ReceivePacket(const uint8_t* packet, 429 bool ReceivePacket(const uint8_t* packet,
428 size_t packet_length, 430 size_t packet_length,
429 const RTPHeader& header, 431 const RTPHeader& header,
430 bool in_order); 432 bool in_order);
431 bool HandleRtxPacket(const uint8_t* packet, 433 bool HandleRtxPacket(const uint8_t* packet,
432 size_t packet_length, 434 size_t packet_length,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 std::unique_ptr<RateLimiter> retransmission_rate_limiter_; 550 std::unique_ptr<RateLimiter> retransmission_rate_limiter_;
549 551
550 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed. 552 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed.
551 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; 553 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_;
552 }; 554 };
553 555
554 } // namespace voe 556 } // namespace voe
555 } // namespace webrtc 557 } // namespace webrtc
556 558
557 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ 559 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698