/external/webrtc/modules/rtp_rtcp/test/testFec/ |
D | test_packet_masks_metrics.cc | 81 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 …]
|
D | test_fec.cc | 172 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/ |
D | forward_error_correction_internal.cc | 152 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 …]
|
D | forward_error_correction.cc | 148 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 …]
|
D | forward_error_correction_internal.h | 47 int num_fec_packets); 82 int num_fec_packets, 99 int num_fec_packets, 114 int num_fec_packets,
|
D | ulpfec_receiver_unittest.cc | 59 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()
|
D | fec_private_tables_bursty_unittest.cc | 70 int num_fec_packets = 6; in TEST() local 74 mask_table.LookUp(num_media_packets, num_fec_packets); in TEST()
|
D | forward_error_correction.h | 255 size_t num_fec_packets); 259 size_t num_fec_packets); 263 void FinalizeFecHeaders(size_t num_fec_packets,
|
D | flexfec_receiver_unittest.cc | 76 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()
|
D | ulpfec_generator.cc | 255 int num_fec_packets = in Overhead() local 259 return (num_fec_packets << 8) / media_packets_.size(); in Overhead()
|
D | flexfec_receiver.cc | 107 ++packet_counter_.num_fec_packets; in AddReceivedPacket()
|
D | ulpfec_receiver_impl.cc | 125 ++packet_counter_.num_fec_packets; in AddReceivedRedPacket()
|
/external/webrtc/modules/rtp_rtcp/include/ |
D | ulpfec_receiver.h | 27 size_t num_fec_packets = 0; // Number of received FEC packets. member
|
/external/webrtc/video/ |
D | rtp_video_stream_receiver2.cc | 1115 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()
|
D | rtp_video_stream_receiver.cc | 1144 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()
|