Home
last modified time | relevance | path

Searched refs:packet_list (Results 1 – 17 of 17) sorted by relevance

/external/webrtc/modules/audio_coding/neteq/
Dred_payload_splitter_unittest.cc187 PacketList packet_list; in TEST() local
188 packet_list.push_back(CreateRedPayload(2, payload_types, kTimestampOffset)); in TEST()
190 EXPECT_TRUE(splitter.SplitRed(&packet_list)); in TEST()
191 ASSERT_EQ(2u, packet_list.size()); in TEST()
193 VerifyPacket(packet_list.front(), kPayloadLength, payload_types[1], in TEST()
195 packet_list.pop_front(); in TEST()
197 VerifyPacket(packet_list.front(), kPayloadLength, payload_types[0], in TEST()
207 PacketList packet_list; in TEST() local
208 packet_list.push_back(CreateRedPayload(1, payload_types, kTimestampOffset)); in TEST()
215 packet_list.push_back(std::move(packet)); in TEST()
[all …]
Dred_payload_splitter.cc36 bool RedPayloadSplitter::SplitRed(PacketList* packet_list) { in SplitRed() argument
41 PacketList::iterator it = packet_list->begin(); in SplitRed()
42 while (it != packet_list->end()) { in SplitRed()
133 packet_list->splice(it, std::move(new_packets)); in SplitRed()
141 it = packet_list->erase(it); in SplitRed()
147 PacketList* packet_list, in CheckRedPayloads() argument
150 for (auto it = packet_list->begin(); it != packet_list->end(); /* */) { in CheckRedPayloads()
153 it = packet_list->erase(it); in CheckRedPayloads()
167 it = packet_list->erase(it); in CheckRedPayloads()
Dneteq_impl.cc554 PacketList packet_list; in InsertPacketInternal() local
556 packet_list.push_back([&rtp_header, &payload, &receive_time_ms] { in InsertPacketInternal()
578 timestamp_scaler_->ToInternal(&packet_list); in InsertPacketInternal()
583 uint32_t main_timestamp = packet_list.front().timestamp; in InsertPacketInternal()
584 uint8_t main_payload_type = packet_list.front().payload_type; in InsertPacketInternal()
585 uint16_t main_sequence_number = packet_list.front().sequence_number; in InsertPacketInternal()
614 if (!red_payload_splitter_->SplitRed(&packet_list)) { in InsertPacketInternal()
619 red_payload_splitter_->CheckRedPayloads(&packet_list, *decoder_database_); in InsertPacketInternal()
620 if (packet_list.empty()) { in InsertPacketInternal()
626 if (decoder_database_->CheckPayloadTypes(packet_list) == in InsertPacketInternal()
[all …]
Ddecoder_database_unittest.cc154 PacketList packet_list; in TEST() local
160 packet_list.push_back(std::move(packet)); in TEST()
165 db.CheckPayloadTypes(packet_list)); in TEST()
167 packet_list.pop_back(); // Remove the unknown one. in TEST()
169 EXPECT_EQ(DecoderDatabase::kOK, db.CheckPayloadTypes(packet_list)); in TEST()
172 PacketList::iterator it = packet_list.begin(); in TEST()
173 while (it != packet_list.end()) { in TEST()
174 it = packet_list.erase(it); in TEST()
Dtimestamp_scaler_unittest.cc218 PacketList packet_list; in TEST() local
226 packet_list.push_back(std::move(packet1)); in TEST()
227 packet_list.push_back(std::move(packet2)); in TEST()
230 scaler.ToInternal(&packet_list); in TEST()
231 EXPECT_EQ(internal_timestamp, packet_list.front().timestamp); in TEST()
232 packet_list.pop_front(); in TEST()
233 EXPECT_EQ(internal_timestamp + 20, packet_list.front().timestamp); in TEST()
Dtimestamp_scaler.cc30 void TimestampScaler::ToInternal(PacketList* packet_list) { in ToInternal() argument
32 for (it = packet_list->begin(); it != packet_list->end(); ++it) { in ToInternal()
Dred_payload_splitter.h36 virtual bool SplitRed(PacketList* packet_list);
41 virtual void CheckRedPayloads(PacketList* packet_list,
Dpacket_buffer.cc133 PacketList* packet_list, in InsertPacketList() argument
140 for (auto& packet : *packet_list) { in InsertPacketList()
170 packet_list->clear(); in InsertPacketList()
174 packet_list->clear(); in InsertPacketList()
Dneteq_impl.h228 PacketList* packet_list,
240 int Decode(PacketList* packet_list,
253 int DecodeLoop(PacketList* packet_list,
296 int DoRfc3389Cng(PacketList* packet_list, bool play_dtmf)
317 int ExtractPackets(size_t required_samples, PacketList* packet_list)
Ddecoder_database.cc291 int DecoderDatabase::CheckPayloadTypes(const PacketList& packet_list) const { in CheckPayloadTypes()
293 for (it = packet_list.begin(); it != packet_list.end(); ++it) { in CheckPayloadTypes()
Dtimestamp_scaler.h45 virtual void ToInternal(PacketList* packet_list);
Dpacket_buffer.h66 PacketList* packet_list,
Ddecoder_database.h200 int CheckPayloadTypes(const PacketList& packet_list) const;
Dneteq_impl_unittest.cc66 int DeletePacketsAndReturnOk(PacketList* packet_list) { in DeletePacketsAndReturnOk() argument
67 packet_list->clear(); in DeletePacketsAndReturnOk()
/external/webrtc/modules/audio_coding/neteq/mock/
Dmock_red_payload_splitter.h21 MOCK_METHOD(bool, SplitRed, (PacketList * packet_list), (override));
24 (PacketList * packet_list,
Dmock_packet_buffer.h33 (PacketList * packet_list,
/external/webrtc/modules/rtp_rtcp/source/
Drtp_fec_unittest.cc78 void ReceivedPackets(const T& packet_list, int* loss_mask, bool is_fec);
111 const PacketListType& packet_list, in ReceivedPackets() argument
118 for (const auto& packet : packet_list) { in ReceivedPackets()