Home
last modified time | relevance | path

Searched refs:num_fec_packets (Results 1 – 15 of 15) sorted by relevance

/external/webrtc/modules/rtp_rtcp/test/testFec/
Dtest_packet_masks_metrics.cc81 int num_fec_packets; member
189 int num_fec_packets, in RecoveredMediaPackets() argument
192 new uint8_t[num_media_packets + num_fec_packets]); in RecoveredMediaPackets()
193 memcpy(state_tmp.get(), state, num_media_packets + num_fec_packets); in RecoveredMediaPackets()
200 for (int i = 0; i < num_fec_packets; i++) { in RecoveredMediaPackets()
324 int num_fec_packets, in ComputeResidualLossPerGap() argument
328 for (int loss = 1; loss <= num_fec_packets; loss++) { in ComputeResidualLossPerGap()
345 int num_fec_packets, in ComputeRecoveryRatePerLoss() argument
347 for (int loss = 1; loss <= num_media_packets + num_fec_packets; loss++) { in ComputeRecoveryRatePerLoss()
365 static_cast<double>(num_media_packets + num_fec_packets); in ComputeRecoveryRatePerLoss()
[all …]
Dtest_fec.cc172 for (uint32_t num_fec_packets = 1; in RunTest() local
173 num_fec_packets <= num_media_packets && in RunTest()
174 num_fec_packets <= packet_mask_max; in RunTest()
175 num_fec_packets++) { in RunTest()
184 static_cast<uint8_t>(num_fec_packets * 255 / num_media_packets); in RunTest()
194 num_media_packets, num_fec_packets, num_imp_packets, in RunTest()
201 num_media_packets, num_fec_packets, num_imp_packets, in RunTest()
206 for (uint32_t i = 0; i < num_fec_packets; i++) { in RunTest()
226 for (uint32_t i = 0; i < num_fec_packets; ++i) { in RunTest()
235 for (uint32_t i = 0; i < num_fec_packets; ++i) { in RunTest()
[all …]
/external/webrtc/modules/rtp_rtcp/source/
Dforward_error_correction_internal.cc152 int num_fec_packets) { in LookUp() argument
154 RTC_DCHECK_GT(num_fec_packets, 0); in LookUp()
156 RTC_DCHECK_LE(num_fec_packets, num_media_packets); in LookUp()
159 return LookUpInFecTable(table_, num_media_packets - 1, num_fec_packets - 1); in LookUp()
171 for (int row = 0; row < num_fec_packets; row++) { in LookUp()
178 ((col * 8) % num_fec_packets == row && (col * 8) < num_media_packets in LookUp()
181 ((col * 8 + 1) % num_fec_packets == row && in LookUp()
185 ((col * 8 + 2) % num_fec_packets == row && in LookUp()
189 ((col * 8 + 3) % num_fec_packets == row && in LookUp()
193 ((col * 8 + 4) % num_fec_packets == row && in LookUp()
[all …]
Dforward_error_correction.cc148 int num_fec_packets = NumFecPackets(num_media_packets, protection_factor); in EncodeFec() local
149 if (num_fec_packets == 0) { in EncodeFec()
152 for (int i = 0; i < num_fec_packets; ++i) { in EncodeFec()
162 memset(packet_masks_, 0, num_fec_packets * packet_mask_size_); in EncodeFec()
163 internal::GeneratePacketMasks(num_media_packets, num_fec_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()
184 FinalizeFecHeaders(num_fec_packets, media_ssrc, seq_num_base); in EncodeFec()
192 int num_fec_packets = (num_media_packets * protection_factor + (1 << 7)) >> 8; in NumFecPackets() local
194 if (protection_factor > 0 && num_fec_packets == 0) { in NumFecPackets()
[all …]
Dforward_error_correction_internal.h47 int num_fec_packets);
82 int num_fec_packets,
99 int num_fec_packets,
114 int num_fec_packets,
Dulpfec_receiver_unittest.cc59 size_t num_fec_packets,
96 size_t num_fec_packets, in EncodeFec() argument
99 num_fec_packets * 255 / media_packets.size(); in EncodeFec()
108 ASSERT_EQ(num_fec_packets, fec_packets->size()); in EncodeFec()
171 EXPECT_EQ(1U, counter.num_fec_packets); in InjectGarbagePacketLength()
206 EXPECT_EQ(0u, counter.num_fec_packets); in TEST_F()
220 EXPECT_EQ(1u, counter.num_fec_packets); in TEST_F()
244 EXPECT_EQ(0u, counter.num_fec_packets); in TEST_F()
257 EXPECT_EQ(1u, counter.num_fec_packets); in TEST_F()
Dfec_private_tables_bursty_unittest.cc70 int num_fec_packets = 6; in TEST() local
74 mask_table.LookUp(num_media_packets, num_fec_packets); in TEST()
Dforward_error_correction.h255 size_t num_fec_packets);
259 size_t num_fec_packets);
263 void FinalizeFecHeaders(size_t num_fec_packets,
Dflexfec_receiver_unittest.cc76 size_t num_fec_packets);
98 size_t num_fec_packets) { in EncodeFec() argument
100 num_fec_packets * 255 / media_packets.size(); in EncodeFec()
108 EXPECT_EQ(num_fec_packets, fec_packets.size()); in EncodeFec()
645 EXPECT_EQ(1U, packet_counter.num_fec_packets); in TEST_F()
Dulpfec_generator.cc255 int num_fec_packets = in Overhead() local
259 return (num_fec_packets << 8) / media_packets_.size(); in Overhead()
Dflexfec_receiver.cc107 ++packet_counter_.num_fec_packets; in AddReceivedPacket()
Dulpfec_receiver_impl.cc125 ++packet_counter_.num_fec_packets; in AddReceivedRedPacket()
/external/webrtc/modules/rtp_rtcp/include/
Dulpfec_receiver.h27 size_t num_fec_packets = 0; // Number of received FEC packets. member
/external/webrtc/video/
Drtp_video_stream_receiver2.cc1115 static_cast<int>(counter.num_fec_packets * 100 / counter.num_packets)); in UpdateHistograms()
1117 if (counter.num_fec_packets > 0) { in UpdateHistograms()
1120 100 / counter.num_fec_packets)); in UpdateHistograms()
Drtp_video_stream_receiver.cc1144 static_cast<int>(counter.num_fec_packets * 100 / counter.num_packets)); in UpdateHistograms()
1146 if (counter.num_fec_packets > 0) { in UpdateHistograms()
1149 100 / counter.num_fec_packets)); in UpdateHistograms()