tmmbr_help.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  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. #ifndef MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_
  11. #define MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_
  12. #include <stdint.h>
  13. #include <vector>
  14. #include "modules/rtp_rtcp/source/rtcp_packet/tmmb_item.h"
  15. namespace webrtc {
  16. class TMMBRHelp {
  17. public:
  18. static std::vector<rtcp::TmmbItem> FindBoundingSet(
  19. std::vector<rtcp::TmmbItem> candidates);
  20. static bool IsOwner(const std::vector<rtcp::TmmbItem>& bounding,
  21. uint32_t ssrc);
  22. static uint64_t CalcMinBitrateBps(
  23. const std::vector<rtcp::TmmbItem>& candidates);
  24. };
  25. } // namespace webrtc
  26. #endif // MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_