1 /* 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 3 * 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 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 #ifndef MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_ 12 #define MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_ 13 14 #include <stdint.h> 15 16 #include <vector> 17 18 #include "modules/rtp_rtcp/source/rtcp_packet/tmmb_item.h" 19 20 namespace webrtc { 21 22 class TMMBRHelp { 23 public: 24 static std::vector<rtcp::TmmbItem> FindBoundingSet( 25 std::vector<rtcp::TmmbItem> candidates); 26 27 static bool IsOwner(const std::vector<rtcp::TmmbItem>& bounding, 28 uint32_t ssrc); 29 30 static uint64_t CalcMinBitrateBps( 31 const std::vector<rtcp::TmmbItem>& candidates); 32 }; 33 } // namespace webrtc 34 35 #endif // MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_ 36