Home
last modified time | relevance | path

Searched refs:TmmbItem (Results 1 – 21 of 21) sorted by relevance

/external/webrtc/modules/rtp_rtcp/source/rtcp_packet/
Dtmmbr.cc54 if (packet.payload_size_bytes() < kCommonFeedbackLength + TmmbItem::kLength) { in Parse()
60 if (items_size_bytes % TmmbItem::kLength != 0) { in Parse()
68 size_t number_of_items = items_size_bytes / TmmbItem::kLength; in Parse()
70 for (TmmbItem& item : items_) { in Parse()
73 next_item += TmmbItem::kLength; in Parse()
78 void Tmmbr::AddTmmbr(const TmmbItem& item) { in AddTmmbr()
84 TmmbItem::kLength * items_.size(); in BlockLength()
103 for (const TmmbItem& item : items_) { in Create()
105 *index += TmmbItem::kLength; in Create()
Dtmmbn.cc59 if (items_size_bytes % TmmbItem::kLength != 0) { in Parse()
67 size_t number_of_items = items_size_bytes / TmmbItem::kLength; in Parse()
69 for (TmmbItem& item : items_) { in Parse()
72 next_item += TmmbItem::kLength; in Parse()
77 void Tmmbn::AddTmmbr(const TmmbItem& item) { in AddTmmbr()
83 TmmbItem::kLength * items_.size(); in BlockLength()
101 for (const TmmbItem& item : items_) { in Create()
103 *index += TmmbItem::kLength; in Create()
Dtmmb_item.cc19 TmmbItem::TmmbItem(uint32_t ssrc, uint64_t bitrate_bps, uint16_t overhead) in TmmbItem() function in webrtc::rtcp::TmmbItem
31 bool TmmbItem::Parse(const uint8_t* buffer) { in Parse()
52 void TmmbItem::Create(uint8_t* buffer) const { in Create()
66 void TmmbItem::set_packet_overhead(uint16_t overhead) { in set_packet_overhead()
Dtmmbr.h35 void AddTmmbr(const TmmbItem& item);
37 const std::vector<TmmbItem>& requests() const { return items_; } in requests()
50 std::vector<TmmbItem> items_;
Dtmmbn.h35 void AddTmmbr(const TmmbItem& item);
37 const std::vector<TmmbItem>& items() const { return items_; } in items()
51 std::vector<TmmbItem> items_;
Dtmmb_item.h22 class TmmbItem {
26 TmmbItem() : ssrc_(0), bitrate_bps_(0), packet_overhead_(0) {} in TmmbItem() function
27 TmmbItem(uint32_t ssrc, uint64_t bitrate_bps, uint16_t overhead);
Dtmmbr_unittest.cc19 using webrtc::rtcp::TmmbItem;
36 tmmbr.AddTmmbr(TmmbItem(kRemoteSsrc, kBitrateBps, kOverhead)); in TEST()
59 tmmbr.AddTmmbr(TmmbItem(kRemoteSsrc, kBitrateBps, kOverhead)); in TEST()
60 tmmbr.AddTmmbr(TmmbItem(kRemoteSsrc + 1, 4 * kBitrateBps, kOverhead + 1)); in TEST()
Dtmmbn_unittest.cc20 using webrtc::rtcp::TmmbItem;
37 tmmbn.AddTmmbr(TmmbItem(kRemoteSsrc, kBitrateBps, kOverhead)); in TEST()
73 tmmbn.AddTmmbr(TmmbItem(kRemoteSsrc, kBitrateBps, kOverhead)); in TEST()
74 tmmbn.AddTmmbr(TmmbItem(kRemoteSsrc + 1, 4 * kBitrateBps, 40)); in TEST()
/external/webrtc/modules/rtp_rtcp/source/
Dtmmbr_help.cc21 std::vector<rtcp::TmmbItem> TMMBRHelp::FindBoundingSet( in FindBoundingSet()
22 std::vector<rtcp::TmmbItem> candidates) { in FindBoundingSet()
38 [](const rtcp::TmmbItem& lhs, const rtcp::TmmbItem& rhs) { in FindBoundingSet()
81 std::vector<rtcp::TmmbItem> bounding_set; in FindBoundingSet()
113 rtcp::TmmbItem cur_candidate; in FindBoundingSet()
165 bool TMMBRHelp::IsOwner(const std::vector<rtcp::TmmbItem>& bounding, in IsOwner()
167 for (const rtcp::TmmbItem& item : bounding) { in IsOwner()
176 const std::vector<rtcp::TmmbItem>& candidates) { in CalcMinBitrateBps()
179 for (const rtcp::TmmbItem& item : candidates) in CalcMinBitrateBps()
Dtmmbr_help.h24 static std::vector<rtcp::TmmbItem> FindBoundingSet(
25 std::vector<rtcp::TmmbItem> candidates);
27 static bool IsOwner(const std::vector<rtcp::TmmbItem>& bounding,
31 const std::vector<rtcp::TmmbItem>& candidates);
Drtcp_receiver.h38 class TmmbItem; variable
45 virtual void SetTmmbn(std::vector<rtcp::TmmbItem> bounding_set) = 0;
115 std::vector<rtcp::TmmbItem> TmmbrReceived();
118 std::vector<rtcp::TmmbItem> BoundingSet(bool* tmmbr_owner);
Drtcp_receiver.cc122 rtcp::TmmbItem tmmbr_item;
130 std::vector<rtcp::TmmbItem> tmmbn;
703 std::vector<rtcp::TmmbItem> RTCPReceiver::BoundingSet(bool* tmmbr_owner) { in BoundingSet()
707 return std::vector<rtcp::TmmbItem>(); in BoundingSet()
913 for (const rtcp::TmmbItem& request : tmmbr.requests()) { in HandleTmmbr()
919 entry->tmmbr_item = rtcp::TmmbItem(sender_ssrc, request.bitrate_bps(), in HandleTmmbr()
1038 std::vector<rtcp::TmmbItem> bounding = in NotifyTmmbrUpdated()
1191 std::vector<rtcp::TmmbItem> RTCPReceiver::TmmbrReceived() { in TmmbrReceived()
1193 std::vector<rtcp::TmmbItem> candidates; in TmmbrReceived()
Drtcp_sender.cc554 std::vector<rtcp::TmmbItem> candidates = in BuildTMMBR()
571 std::vector<rtcp::TmmbItem> bounding = in BuildTMMBR()
586 rtcp::TmmbItem request; in BuildTMMBR()
599 for (const rtcp::TmmbItem& tmmbr : tmmbn_to_send_) { in BuildTMMBN()
912 void RTCPSender::SetTmmbn(std::vector<rtcp::TmmbItem> bounding_set) { in SetTmmbn()
Drtcp_sender.h139 void SetTmmbn(std::vector<rtcp::TmmbItem> bounding_set)
261 std::vector<rtcp::TmmbItem> tmmbn_to_send_ RTC_GUARDED_BY(mutex_rtcp_sender_);
Drtcp_receiver_unittest.cc117 MOCK_METHOD(void, SetTmmbn, (std::vector<rtcp::TmmbItem>), (override));
1205 tmmbr.AddTmmbr(rtcp::TmmbItem(kReceiverMainSsrc, kBitrateBps, 0)); in TEST()
1219 std::vector<rtcp::TmmbItem> tmmbr_received = receiver.TmmbrReceived(); in TEST()
1233 tmmbr.AddTmmbr(rtcp::TmmbItem(kNotToUsSsrc, kBitrateBps, 0)); in TEST()
1256 tmmbr.AddTmmbr(rtcp::TmmbItem(kReceiverMainSsrc, 0, 0)); in TEST()
1281 tmmbr.AddTmmbr(rtcp::TmmbItem(kReceiverMainSsrc, 30000, 0)); in TEST()
1298 std::vector<rtcp::TmmbItem> candidate_set = receiver.TmmbrReceived(); in TEST()
Drtp_rtcp_impl2.h215 void SetTmmbn(std::vector<rtcp::TmmbItem> bounding_set) override;
Drtp_rtcp_impl.h223 void SetTmmbn(std::vector<rtcp::TmmbItem> bounding_set) override;
Drtcp_sender_unittest.cc576 std::vector<rtcp::TmmbItem> bounding_set; in TEST_F()
580 const rtcp::TmmbItem tmmbn(kSourceSsrc, kBitrateBps, kPacketOh); in TEST_F()
603 std::vector<rtcp::TmmbItem> bounding_set; in TEST_F()
Drtp_rtcp_impl2.cc538 void ModuleRtpRtcpImpl2::SetTmmbn(std::vector<rtcp::TmmbItem> bounding_set) { in SetTmmbn()
Drtp_rtcp_impl.cc634 void ModuleRtpRtcpImpl::SetTmmbn(std::vector<rtcp::TmmbItem> bounding_set) { in SetTmmbn()
/external/webrtc/test/fuzzers/
Drtcp_receiver_fuzzer.cc27 void SetTmmbn(std::vector<rtcp::TmmbItem>) override {} in SetTmmbn() argument