Home
last modified time | relevance | path

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

/external/webrtc/webrtc/modules/audio_coding/neteq/
Dpayload_splitter_unittest.cc172 PacketList packet_list; in TEST() local
173 packet_list.push_back(packet); in TEST()
175 EXPECT_EQ(PayloadSplitter::kOK, splitter.SplitRed(&packet_list)); in TEST()
176 ASSERT_EQ(2u, packet_list.size()); in TEST()
178 packet = packet_list.front(); in TEST()
183 packet_list.pop_front(); in TEST()
185 packet = packet_list.front(); in TEST()
199 PacketList packet_list; in TEST() local
200 packet_list.push_back(packet); in TEST()
206 packet_list.push_back(packet); in TEST()
[all …]
Dpayload_splitter.cc27 int PayloadSplitter::SplitRed(PacketList* packet_list) { in SplitRed() argument
29 PacketList::iterator it = packet_list->begin(); in SplitRed()
30 while (it != packet_list->end()) { in SplitRed()
111 packet_list->splice(it, new_packets, new_packets.begin(), in SplitRed()
119 it = packet_list->erase(it); in SplitRed()
124 int PayloadSplitter::SplitFec(PacketList* packet_list, in SplitFec() argument
126 PacketList::iterator it = packet_list->begin(); in SplitFec()
128 while (it != packet_list->end()) { in SplitFec()
173 packet_list->insert(it, new_packet); in SplitFec()
187 int PayloadSplitter::CheckRedPayloads(PacketList* packet_list, in CheckRedPayloads() argument
[all …]
Dneteq_impl.cc477 PacketList packet_list; in InsertPacketInternal() local
502 packet_list.push_back(packet); in InsertPacketInternal()
543 if (payload_splitter_->SplitRed(&packet_list) != PayloadSplitter::kOK) { in InsertPacketInternal()
544 PacketBuffer::DeleteAllPackets(&packet_list); in InsertPacketInternal()
549 payload_splitter_->CheckRedPayloads(&packet_list, *decoder_database_); in InsertPacketInternal()
552 memcpy(&main_header, &packet_list.front()->header, sizeof(main_header)); in InsertPacketInternal()
556 if (decoder_database_->CheckPayloadTypes(packet_list) == in InsertPacketInternal()
558 PacketBuffer::DeleteAllPackets(&packet_list); in InsertPacketInternal()
563 timestamp_scaler_->ToInternal(&packet_list); in InsertPacketInternal()
567 PacketList::iterator it = packet_list.begin(); in InsertPacketInternal()
[all …]
Dpacket_buffer.cc107 int PacketBuffer::InsertPacketList(PacketList* packet_list, in InsertPacketList() argument
112 while (!packet_list->empty()) { in InsertPacketList()
113 Packet* packet = packet_list->front(); in InsertPacketList()
134 packet_list->pop_front(); in InsertPacketList()
140 DeleteAllPackets(packet_list); in InsertPacketList()
278 bool PacketBuffer::DeleteFirstPacket(PacketList* packet_list) { in DeleteFirstPacket() argument
279 if (packet_list->empty()) { in DeleteFirstPacket()
282 Packet* first_packet = packet_list->front(); in DeleteFirstPacket()
285 packet_list->pop_front(); in DeleteFirstPacket()
289 void PacketBuffer::DeleteAllPackets(PacketList* packet_list) { in DeleteAllPackets() argument
[all …]
Ddecoder_database_unittest.cc165 PacketList packet_list; in TEST() local
171 packet_list.push_back(packet); in TEST()
176 db.CheckPayloadTypes(packet_list)); in TEST()
178 delete packet_list.back(); in TEST()
179 packet_list.pop_back(); // Remove the unknown one. in TEST()
181 EXPECT_EQ(DecoderDatabase::kOK, db.CheckPayloadTypes(packet_list)); in TEST()
184 PacketList::iterator it = packet_list.begin(); in TEST()
185 while (it != packet_list.end()) { in TEST()
186 delete packet_list.front(); in TEST()
187 it = packet_list.erase(it); in TEST()
Dpayload_splitter.h49 virtual int SplitRed(PacketList* packet_list);
54 virtual int SplitFec(PacketList* packet_list,
60 virtual int CheckRedPayloads(PacketList* packet_list,
67 virtual int SplitAudio(PacketList* packet_list,
Dtimestamp_scaler.cc31 void TimestampScaler::ToInternal(PacketList* packet_list) { in ToInternal() argument
33 for (it = packet_list->begin(); it != packet_list->end(); ++it) { in ToInternal()
Dpacket_buffer.h62 virtual int InsertPacketList(PacketList* packet_list,
128 static bool DeleteFirstPacket(PacketList* packet_list);
132 static void DeleteAllPackets(PacketList* packet_list);
Dneteq_impl.h232 PacketList* packet_list,
242 int Decode(PacketList* packet_list,
254 int DecodeLoop(PacketList* packet_list,
295 int DoRfc3389Cng(PacketList* packet_list, bool play_dtmf)
322 int ExtractPackets(size_t required_samples, PacketList* packet_list)
Dtimestamp_scaler_unittest.cc212 PacketList packet_list; in TEST() local
213 packet_list.push_back(&packet1); in TEST()
214 packet_list.push_back(&packet2); in TEST()
216 scaler.ToInternal(&packet_list); in TEST()
Ddecoder_database.cc248 int DecoderDatabase::CheckPayloadTypes(const PacketList& packet_list) const { in CheckPayloadTypes()
250 for (it = packet_list.begin(); it != packet_list.end(); ++it) { in CheckPayloadTypes()
Dtimestamp_scaler.h46 virtual void ToInternal(PacketList* packet_list);
Ddecoder_database.h150 virtual int CheckPayloadTypes(const PacketList& packet_list) const;
Dneteq_impl_unittest.cc49 int DeletePacketsAndReturnOk(PacketList* packet_list) { in DeletePacketsAndReturnOk() argument
50 PacketBuffer::DeleteAllPackets(packet_list); in DeletePacketsAndReturnOk()
/external/webrtc/webrtc/modules/audio_coding/neteq/mock/
Dmock_payload_splitter.h23 int(PacketList* packet_list));
25 int(PacketList* packet_list, DecoderDatabase* decoder_database));
27 int(PacketList* packet_list, const DecoderDatabase& decoder_database));
29 int(PacketList* packet_list, const DecoderDatabase& decoder_database));
Dmock_packet_buffer.h33 int(PacketList* packet_list,
Dmock_decoder_database.h64 int(const PacketList& packet_list));
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Drtp_fec_unittest.cc81 void ReceivedPackets(const PacketList& packet_list, int* loss_mask,
852 void RtpFecTest::ReceivedPackets(const PacketList& packet_list, int* loss_mask, in ReceivedPackets() argument
859 PacketList::const_iterator packet_list_item = packet_list.begin(); in ReceivedPackets()
861 while (packet_list_item != packet_list.end()) { in ReceivedPackets()