Home
last modified time | relevance | path

Searched refs:media_packets (Results 1 – 5 of 5) sorted by relevance

/external/webrtc/modules/rtp_rtcp/source/
Dflexfec_receiver_unittest.cc72 PacketList* media_packets);
75 std::list<Packet*> EncodeFec(const PacketList& media_packets,
87 PacketList* media_packets) { in PacketizeFrame() argument
92 media_packets->push_back(std::move(next_packet)); in PacketizeFrame()
97 const PacketList& media_packets, in EncodeFec() argument
100 num_fec_packets * 255 / media_packets.size(); in EncodeFec()
106 media_packets, protection_factor, kNumImportantPackets, in EncodeFec()
127 PacketList media_packets; in TEST_F() local
128 PacketizeFrame(kNumMediaPackets, 0, &media_packets); in TEST_F()
129 std::list<Packet*> fec_packets = EncodeFec(media_packets, kNumFecPackets); in TEST_F()
[all …]
Dulpfec_receiver_unittest.cc58 void EncodeFec(const ForwardErrorCorrection::PacketList& media_packets,
95 const ForwardErrorCorrection::PacketList& media_packets, in EncodeFec() argument
99 num_fec_packets * 255 / media_packets.size(); in EncodeFec()
106 0, fec_->EncodeFec(media_packets, protection_factor, kNumImportantPackets, in EncodeFec()
156 ForwardErrorCorrection::PacketList media_packets; in InjectGarbagePacketLength() local
157 PacketizeFrame(2, 0, &augmented_media_packets, &media_packets); in InjectGarbagePacketLength()
159 EncodeFec(media_packets, kNumFecPackets, &fec_packets); in InjectGarbagePacketLength()
190 ForwardErrorCorrection::PacketList media_packets; in TEST_F() local
191 PacketizeFrame(2, 0, &augmented_media_packets, &media_packets); in TEST_F()
193 EncodeFec(media_packets, kNumFecPackets, &fec_packets); in TEST_F()
[all …]
Dforward_error_correction.cc107 int ForwardErrorCorrection::EncodeFec(const PacketList& media_packets, in EncodeFec() argument
113 const size_t num_media_packets = media_packets.size(); in EncodeFec()
129 for (const auto& media_packet : media_packets) { in EncodeFec()
168 int num_mask_bits = InsertZerosInPacketMasks(media_packets, num_fec_packets); in EncodeFec()
178 GenerateFecPayloads(media_packets, num_fec_packets); in EncodeFec()
181 const uint32_t media_ssrc = ParseSsrc(media_packets.front()->data.data()); in EncodeFec()
183 ParseSequenceNumber(media_packets.front()->data.data()); in EncodeFec()
202 const PacketList& media_packets, in GenerateFecPayloads() argument
204 RTC_DCHECK(!media_packets.empty()); in GenerateFecPayloads()
214 auto media_packets_it = media_packets.cbegin(); in GenerateFecPayloads()
[all …]
Dfec_test_helper.cc52 ForwardErrorCorrection::PacketList media_packets; in ConstructMediaPackets() local
86 media_packets.push_back(std::move(media_packet)); in ConstructMediaPackets()
89 ForwardErrorCorrection::Packet* media_packet = media_packets.back().get(); in ConstructMediaPackets()
95 return media_packets; in ConstructMediaPackets()
Dforward_error_correction.h192 int EncodeFec(const PacketList& media_packets,
254 int InsertZerosInPacketMasks(const PacketList& media_packets,
258 void GenerateFecPayloads(const PacketList& media_packets,