2011-07-07 08:21:25 +00:00
|
|
|
/*
|
2012-04-05 08:30:10 +00:00
|
|
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
2011-07-07 08:21:25 +00:00
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#ifndef MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_
|
|
|
|
|
#define MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2018-10-23 12:03:01 +02:00
|
|
|
#include <stdint.h>
|
2012-05-03 14:07:23 +00:00
|
|
|
#include <vector>
|
2018-10-23 12:03:01 +02:00
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#include "modules/rtp_rtcp/source/rtcp_packet/tmmb_item.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
2016-08-05 03:37:38 -07:00
|
|
|
class TMMBRHelp {
|
|
|
|
|
public:
|
2016-08-16 03:21:38 -07:00
|
|
|
static std::vector<rtcp::TmmbItem> FindBoundingSet(
|
|
|
|
|
std::vector<rtcp::TmmbItem> candidates);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2016-08-10 11:29:50 +02:00
|
|
|
static bool IsOwner(const std::vector<rtcp::TmmbItem>& bounding,
|
|
|
|
|
uint32_t ssrc);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2016-08-16 03:21:38 -07:00
|
|
|
static uint64_t CalcMinBitrateBps(
|
|
|
|
|
const std::vector<rtcp::TmmbItem>& candidates);
|
2011-07-07 08:21:25 +00:00
|
|
|
};
|
2013-07-03 15:12:26 +00:00
|
|
|
} // namespace webrtc
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#endif // MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_
|