/external/webrtc/webrtc/modules/audio_coding/neteq/mock/ |
H A D | mock_payload_splitter.h | 23 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));
|
H A D | mock_packet_buffer.h | 33 int(PacketList* packet_list,
|
H A D | mock_decoder_database.h | 64 int(const PacketList& packet_list));
|
/external/webrtc/webrtc/modules/audio_coding/neteq/ |
H A D | payload_splitter_unittest.cc | 172 PacketList packet_list; local 173 packet_list.push_back(packet); 175 EXPECT_EQ(PayloadSplitter::kOK, splitter.SplitRed(&packet_list)); 176 ASSERT_EQ(2u, packet_list.size()); 178 packet = packet_list.front(); 183 packet_list.pop_front(); 185 packet = packet_list.front(); 199 PacketList packet_list; local 200 packet_list.push_back(packet); 206 packet_list 239 PacketList packet_list; local 302 PacketList packet_list; local 344 PacketList packet_list; local 364 PacketList packet_list; local 427 PacketList packet_list; local 523 PacketList packet_list; local 610 PacketList packet_list; local 682 PacketList packet_list; local 714 PacketList packet_list; local 745 PacketList packet_list; local 800 PacketList packet_list; local [all...] |
H A D | payload_splitter.h | 43 // Splits each packet in |packet_list| into its separate RED payloads. Each 45 // |packet_list| are properly deleted, and replaced by the new packets. 46 // Note that all packets in |packet_list| must be RED payloads, i.e., have 49 virtual int SplitRed(PacketList* packet_list); 51 // Iterates through |packet_list| and, duplicate each audio payload that has 54 virtual int SplitFec(PacketList* packet_list, 57 // Checks all packets in |packet_list|. Packets that are DTMF events or 60 virtual int CheckRedPayloads(PacketList* packet_list, 63 // Iterates through |packet_list| and, if possible, splits each audio payload 64 // into suitable size chunks. The result is written back to |packet_list| a [all...] |
H A D | payload_splitter.cc | 23 // When the first packet in |packet_list| has been processed, the orignal packet 24 // is replaced by the new ones in |new_packets|, so that |packet_list| becomes: 27 int PayloadSplitter::SplitRed(PacketList* packet_list) { argument 29 PacketList::iterator it = packet_list->begin(); 30 while (it != packet_list->end()) { 111 packet_list->splice(it, new_packets, new_packets.begin(), 119 it = packet_list->erase(it); 124 int PayloadSplitter::SplitFec(PacketList* packet_list, argument 126 PacketList::iterator it = packet_list->begin(); 127 // Iterate through all packets in |packet_list| 187 CheckRedPayloads(PacketList* packet_list, const DecoderDatabase& decoder_database) argument 219 SplitAudio(PacketList* packet_list, const DecoderDatabase& decoder_database) argument [all...] |
H A D | packet_buffer.h | 62 virtual int InsertPacketList(PacketList* packet_list, 126 // array, in |packet_list|. Returns false if |packet_list| already was empty, 128 static bool DeleteFirstPacket(PacketList* packet_list); 131 // in |packet_list|. 132 static void DeleteAllPackets(PacketList* packet_list);
|
H A D | timestamp_scaler.cc | 31 void TimestampScaler::ToInternal(PacketList* packet_list) { argument 33 for (it = packet_list->begin(); it != packet_list->end(); ++it) {
|
H A D | packet_buffer.cc | 107 int PacketBuffer::InsertPacketList(PacketList* packet_list, argument 112 while (!packet_list->empty()) { 113 Packet* packet = packet_list->front(); 134 packet_list->pop_front(); 140 DeleteAllPackets(packet_list); 278 bool PacketBuffer::DeleteFirstPacket(PacketList* packet_list) { argument 279 if (packet_list->empty()) { 282 Packet* first_packet = packet_list->front(); 285 packet_list->pop_front(); 289 void PacketBuffer::DeleteAllPackets(PacketList* packet_list) { argument [all...] |
H A D | timestamp_scaler.h | 44 // Scale the timestamp for all packets in |packet_list| from external to 46 virtual void ToInternal(PacketList* packet_list);
|
H A D | neteq_impl.cc | 477 PacketList packet_list; local 502 packet_list.push_back(packet); 543 if (payload_splitter_->SplitRed(&packet_list) != PayloadSplitter::kOK) { 544 PacketBuffer::DeleteAllPackets(&packet_list); 549 payload_splitter_->CheckRedPayloads(&packet_list, *decoder_database_); 552 memcpy(&main_header, &packet_list.front()->header, sizeof(main_header)); 556 if (decoder_database_->CheckPayloadTypes(packet_list) == 558 PacketBuffer::DeleteAllPackets(&packet_list); 563 timestamp_scaler_->ToInternal(&packet_list); 567 PacketList::iterator it = packet_list 748 PacketList packet_list; local 935 GetDecision(Operations* operation, PacketList* packet_list, DtmfEvent* dtmf_event, bool* play_dtmf) argument 1197 Decode(PacketList* packet_list, Operations* operation, int* decoded_length, AudioDecoder::SpeechType* speech_type) argument 1344 DecodeLoop(PacketList* packet_list, const Operations& operation, AudioDecoder* decoder, int* decoded_length, AudioDecoder::SpeechType* speech_type) argument 1648 DoRfc3389Cng(PacketList* packet_list, bool play_dtmf) argument 1843 ExtractPackets(size_t required_samples, PacketList* packet_list) argument [all...] |
H A D | decoder_database_unittest.cc | 165 PacketList packet_list; local 171 packet_list.push_back(packet); 176 db.CheckPayloadTypes(packet_list)); 178 delete packet_list.back(); 179 packet_list.pop_back(); // Remove the unknown one. 181 EXPECT_EQ(DecoderDatabase::kOK, db.CheckPayloadTypes(packet_list)); 184 PacketList::iterator it = packet_list.begin(); 185 while (it != packet_list.end()) { 186 delete packet_list.front(); 187 it = packet_list [all...] |
H A D | neteq_impl.h | 228 // |packet_list|, and a DTMF event to play is written to |dtmf_event|. When 232 PacketList* packet_list, 236 // Decodes the speech packets in |packet_list|, and writes the results to 240 // to |speech_type|. If |packet_list| contains any SID frames for RFC 3389 242 int Decode(PacketList* packet_list, 254 int DecodeLoop(PacketList* packet_list, 292 // noise. |packet_list| can either contain one SID frame to update the 295 int DoRfc3389Cng(PacketList* packet_list, bool play_dtmf) 319 // |required_samples| samples. The packets are inserted into |packet_list|. 322 int ExtractPackets(size_t required_samples, PacketList* packet_list) [all...] |
H A D | timestamp_scaler_unittest.cc | 191 // Make sure that the method ToInternal(PacketList* packet_list) is wired up 212 PacketList packet_list; local 213 packet_list.push_back(&packet1); 214 packet_list.push_back(&packet2); 216 scaler.ToInternal(&packet_list);
|
H A D | decoder_database.cc | 248 int DecoderDatabase::CheckPayloadTypes(const PacketList& packet_list) const { 250 for (it = packet_list.begin(); it != packet_list.end(); ++it) {
|
H A D | decoder_database.h | 148 // Returns kOK if all packets in |packet_list| carry payload types that are 150 virtual int CheckPayloadTypes(const PacketList& packet_list) const;
|
H A D | neteq_impl_unittest.cc | 49 int DeletePacketsAndReturnOk(PacketList* packet_list) { argument 50 PacketBuffer::DeleteAllPackets(packet_list);
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
H A D | rtp_fec_unittest.cc | 77 // Add packet from |packet_list| to list of received packets, using the 79 // The |packet_list| may be a media packet list (is_fec = false), or a 81 void ReceivedPackets(const PacketList& packet_list, int* loss_mask, 852 void RtpFecTest::ReceivedPackets(const PacketList& packet_list, int* loss_mask, argument 859 PacketList::const_iterator packet_list_item = packet_list.begin(); 861 while (packet_list_item != packet_list.end()) {
|