Home
last modified time | relevance | path

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

/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/
Dpayload_splitter_unittest.cc167 PacketList packet_list; in TEST() local
168 packet_list.push_back(packet); in TEST()
170 EXPECT_EQ(PayloadSplitter::kOK, splitter.SplitRed(&packet_list)); in TEST()
171 ASSERT_EQ(2u, packet_list.size()); in TEST()
173 packet = packet_list.front(); in TEST()
178 packet_list.pop_front(); in TEST()
180 packet = packet_list.front(); in TEST()
194 PacketList packet_list; in TEST() local
195 packet_list.push_back(packet); in TEST()
201 packet_list.push_back(packet); in TEST()
[all …]
Dpayload_splitter.cc26 int PayloadSplitter::SplitRed(PacketList* packet_list) { in SplitRed() argument
28 PacketList::iterator it = packet_list->begin(); in SplitRed()
29 while (it != packet_list->end()) { in SplitRed()
109 packet_list->splice(it, new_packets, new_packets.begin(), in SplitRed()
117 it = packet_list->erase(it); in SplitRed()
122 int PayloadSplitter::SplitFec(PacketList* packet_list, in SplitFec() argument
124 PacketList::iterator it = packet_list->begin(); in SplitFec()
126 while (it != packet_list->end()) { in SplitFec()
167 packet_list->insert(it, new_packet); in SplitFec()
180 int PayloadSplitter::CheckRedPayloads(PacketList* packet_list, in CheckRedPayloads() argument
[all …]
Dpacket_buffer.cc79 int PacketBuffer::InsertPacketList(PacketList* packet_list, in InsertPacketList() argument
84 while (!packet_list->empty()) { in InsertPacketList()
85 Packet* packet = packet_list->front(); in InsertPacketList()
106 packet_list->pop_front(); in InsertPacketList()
112 DeleteAllPackets(packet_list); in InsertPacketList()
242 bool PacketBuffer::DeleteFirstPacket(PacketList* packet_list) { in DeleteFirstPacket() argument
243 if (packet_list->empty()) { in DeleteFirstPacket()
246 Packet* first_packet = packet_list->front(); in DeleteFirstPacket()
249 packet_list->pop_front(); in DeleteFirstPacket()
253 void PacketBuffer::DeleteAllPackets(PacketList* packet_list) { in DeleteAllPackets() argument
[all …]
Dneteq_impl.cc424 PacketList packet_list; in InsertPacketInternal() local
449 packet_list.push_back(packet); in InsertPacketInternal()
491 if (payload_splitter_->SplitRed(&packet_list) != PayloadSplitter::kOK) { in InsertPacketInternal()
492 LOG_FERR1(LS_WARNING, SplitRed, packet_list.size()); in InsertPacketInternal()
493 PacketBuffer::DeleteAllPackets(&packet_list); in InsertPacketInternal()
498 payload_splitter_->CheckRedPayloads(&packet_list, *decoder_database_); in InsertPacketInternal()
501 memcpy(&main_header, &packet_list.front()->header, sizeof(main_header)); in InsertPacketInternal()
505 if (decoder_database_->CheckPayloadTypes(packet_list) == in InsertPacketInternal()
507 LOG_FERR1(LS_WARNING, CheckPayloadTypes, packet_list.size()); in InsertPacketInternal()
508 PacketBuffer::DeleteAllPackets(&packet_list); in InsertPacketInternal()
[all …]
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,
Ddecoder_database_unittest.cc149 PacketList packet_list; in TEST() local
155 packet_list.push_back(packet); in TEST()
160 db.CheckPayloadTypes(packet_list)); in TEST()
162 delete packet_list.back(); in TEST()
163 packet_list.pop_back(); // Remove the unknown one. in TEST()
165 EXPECT_EQ(DecoderDatabase::kOK, db.CheckPayloadTypes(packet_list)); in TEST()
168 PacketList::iterator it = packet_list.begin(); in TEST()
169 while (it != packet_list.end()) { in TEST()
170 delete packet_list.front(); in TEST()
171 it = packet_list.erase(it); in TEST()
Dpacket_buffer.h62 virtual int InsertPacketList(PacketList* packet_list,
122 static bool DeleteFirstPacket(PacketList* packet_list);
126 static void DeleteAllPackets(PacketList* packet_list);
Dtimestamp_scaler.cc27 void TimestampScaler::ToInternal(PacketList* packet_list) { in ToInternal() argument
29 for (it = packet_list->begin(); it != packet_list->end(); ++it) { in ToInternal()
Dneteq_impl.h231 PacketList* packet_list,
241 int Decode(PacketList* packet_list,
248 int DecodeLoop(PacketList* packet_list,
288 int DoRfc3389Cng(PacketList* packet_list, bool play_dtmf)
314 int ExtractPackets(int required_samples, PacketList* packet_list)
Dtimestamp_scaler_unittest.cc208 PacketList packet_list; in TEST() local
209 packet_list.push_back(&packet1); in TEST()
210 packet_list.push_back(&packet2); in TEST()
212 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.h145 virtual int CheckPayloadTypes(const PacketList& packet_list) const;
Dneteq_impl_unittest.cc44 int DeletePacketsAndReturnOk(PacketList* packet_list) { in DeletePacketsAndReturnOk() argument
45 PacketBuffer::DeleteAllPackets(packet_list); in DeletePacketsAndReturnOk()
/external/chromium_org/third_party/webrtc/modules/pacing/
Dpaced_sender.cc199 paced_sender::PacketList* packet_list = NULL; in SendPacket() local
202 packet_list = high_priority_packets_.get(); in SendPacket()
205 packet_list = normal_priority_packets_.get(); in SendPacket()
208 packet_list = low_priority_packets_.get(); in SendPacket()
211 packet_list->push_back(paced_sender::Packet(ssrc, in SendPacket()
273 paced_sender::PacketList* packet_list; in Process() local
274 while (ShouldSendNextPacket(&packet_list)) { in Process()
275 if (!SendPacketFromList(packet_list)) in Process()
293 bool PacedSender::SendPacketFromList(paced_sender::PacketList* packet_list) in SendPacketFromList() argument
295 paced_sender::Packet packet = GetNextPacketFromList(packet_list); in SendPacketFromList()
[all …]
/external/chromium_org/third_party/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.h60 int(const PacketList& packet_list));
/external/chromium_org/media/midi/
Dmidi_manager_mac.cc127 void MidiManagerMac::ReadMidiDispatch(const MIDIPacketList* packet_list, in ReadMidiDispatch() argument
138 manager->ReadMidi(source, packet_list); in ReadMidiDispatch()
142 const MIDIPacketList* packet_list) { in ReadMidi() argument
150 for (size_t i = 0; i < packet_list->numPackets; i++) { in ReadMidi()
152 const MIDIPacket &packet = packet_list->packet[i]; in ReadMidi()
/external/chromium_org/third_party/webrtc/modules/pacing/include/
Dpaced_sender.h116 bool ShouldSendNextPacket(paced_sender::PacketList** packet_list)
123 bool SendPacketFromList(paced_sender::PacketList* packet_list)
/external/chromium_org/third_party/webrtc/modules/rtp_rtcp/source/
Drtp_fec_unittest.cc76 void ReceivedPackets(const PacketList& packet_list, int* loss_mask,
847 void RtpFecTest::ReceivedPackets(const PacketList& packet_list, int* loss_mask, in ReceivedPackets() argument
854 PacketList::const_iterator packet_list_item = packet_list.begin(); in ReceivedPackets()
856 while (packet_list_item != packet_list.end()) { in ReceivedPackets()