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

Side by Side Diff: webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h

Issue 2996643002: BWE allocation strategy
Patch Set: BWE allocation strategy Created 3 years, 4 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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 // while we are paused. 444 // while we are paused.
445 445
446 // Returns true if we send the packet now, else it will add the packet 446 // Returns true if we send the packet now, else it will add the packet
447 // information to the queue and call TimeToSendPacket when it's time to send. 447 // information to the queue and call TimeToSendPacket when it's time to send.
448 virtual void InsertPacket(Priority priority, 448 virtual void InsertPacket(Priority priority,
449 uint32_t ssrc, 449 uint32_t ssrc,
450 uint16_t sequence_number, 450 uint16_t sequence_number,
451 int64_t capture_time_ms, 451 int64_t capture_time_ms,
452 size_t bytes, 452 size_t bytes,
453 bool retransmission) = 0; 453 bool retransmission) = 0;
454
455 // Currently audio traffic is not accounted by pacer and passed through.
456 // With the introduction of audio BWE audio traffic will be accounted for
457 // the pacer budget calculation. The audio traffic still will be injected
458 // at high priority.
459 virtual void AccountForAudioPackets(bool account_for_audio) = 0;
stefan-webrtc 2017/08/14 07:46:03 SetAccountForAudioPackets
alexnarest 2017/08/15 06:02:36 Done.
454 }; 460 };
455 461
456 class TransportSequenceNumberAllocator { 462 class TransportSequenceNumberAllocator {
457 public: 463 public:
458 TransportSequenceNumberAllocator() {} 464 TransportSequenceNumberAllocator() {}
459 virtual ~TransportSequenceNumberAllocator() {} 465 virtual ~TransportSequenceNumberAllocator() {}
460 466
461 virtual uint16_t AllocateSequenceNumber() = 0; 467 virtual uint16_t AllocateSequenceNumber() = 0;
462 }; 468 };
463 469
464 } // namespace webrtc 470 } // namespace webrtc
465 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ 471 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698