/external/webrtc/webrtc/modules/rtp_rtcp/test/testFec/ |
D | test_packet_masks_metrics.cc | 81 int num_fec_packets; member 192 int num_fec_packets, in RecoveredMediaPackets() argument 195 new uint8_t[num_media_packets + num_fec_packets]); in RecoveredMediaPackets() 196 memcpy(state_tmp.get(), state, num_media_packets + num_fec_packets); in RecoveredMediaPackets() 203 for (int i = 0; i < num_fec_packets; i++) { in RecoveredMediaPackets() 328 int num_fec_packets, in ComputeResidualLossPerGap() argument 332 for (int loss = 1; loss <= num_fec_packets; loss++) { in ComputeResidualLossPerGap() 350 int num_fec_packets, in ComputeRecoveryRatePerLoss() argument 352 for (int loss = 1; loss <= num_media_packets + num_fec_packets; loss++) { in ComputeRecoveryRatePerLoss() 369 static_cast<double>(num_media_packets + num_fec_packets); in ComputeRecoveryRatePerLoss() [all …]
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
D | forward_error_correction_internal.cc | 263 int num_fec_packets, in SetProtectionAllocation() argument 269 int max_num_fec_for_imp = alloc_par * num_fec_packets; in SetProtectionAllocation() 276 if (num_fec_packets == 1 && (num_media_packets > 2 * num_imp_packets)) { in SetProtectionAllocation() 329 int num_fec_packets, in UnequalProtectionMask() argument 342 num_media_packets, num_fec_packets, num_imp_packets); in UnequalProtectionMask() 345 int num_fec_remaining = num_fec_packets - num_fec_for_imp_packets; in UnequalProtectionMask() 367 int num_fec_packets, in GeneratePacketMasks() argument 373 assert(num_fec_packets <= num_media_packets && num_fec_packets > 0); in GeneratePacketMasks() 387 1][num_fec_packets - 1], in GeneratePacketMasks() 388 num_fec_packets * num_mask_bytes); in GeneratePacketMasks() [all …]
|
D | forward_error_correction.cc | 148 int num_fec_packets = in GenerateFEC() local 150 if (num_fec_packets == 0) { in GenerateFEC() 155 for (int i = 0; i < num_fec_packets; ++i) { in GenerateFEC() 167 new uint8_t[num_fec_packets * kMaskSizeLBitSet]); in GenerateFEC() 168 memset(packet_mask.get(), 0, num_fec_packets * num_mask_bytes); in GenerateFEC() 169 internal::GeneratePacketMasks(num_media_packets, num_fec_packets, in GenerateFEC() 174 media_packet_list, packet_mask.get(), num_mask_bytes, num_fec_packets); in GenerateFEC() 184 GenerateFecBitStrings(media_packet_list, packet_mask.get(), num_fec_packets, in GenerateFEC() 187 num_fec_packets); in GenerateFEC() 195 int num_fec_packets = (num_media_packets * protection_factor + (1 << 7)) >> 8; in GetNumberOfFecPackets() local [all …]
|
D | forward_error_correction.h | 214 int num_fec_packets); 224 int num_fec_packets); 231 int new_mask_bytes, int num_fec_packets, 244 int num_fec_packets, int new_bit_index, 248 uint8_t* packet_mask, int num_fec_packets,
|
D | rtp_sender_video.cc | 138 uint16_t num_fec_packets = producer_fec_.NumAvailableFecPackets(); in SendVideoPacketAsRed() local 139 if (num_fec_packets > 0) { in SendVideoPacketAsRed() 141 _rtpSender.AllocateSequenceNumber(num_fec_packets); in SendVideoPacketAsRed() 145 RTC_DCHECK_EQ(num_fec_packets, fec_packets.size()); in SendVideoPacketAsRed()
|
D | producer_fec_unittest.cc | 93 uint16_t num_fec_packets = producer_->NumAvailableFecPackets(); in TEST_F() local 95 if (num_fec_packets > 0) { in TEST_F() 98 EXPECT_EQ(num_fec_packets, fec_packets.size()); in TEST_F()
|
D | fec_receiver_unittest.cc | 42 unsigned int num_fec_packets) { in GenerateFEC() argument 43 uint8_t protection_factor = num_fec_packets * 255 / media_packets->size(); in GenerateFEC() 46 ASSERT_EQ(num_fec_packets, fec_packets->size()); in GenerateFEC() 126 EXPECT_EQ(1U, counter.num_fec_packets); in TEST_F() 153 EXPECT_EQ(1u, counter.num_fec_packets); in InjectGarbagePacketLength()
|
D | fec_receiver_impl.cc | 168 ++packet_counter_.num_fec_packets; in AddReceivedRedPacket() 180 ++packet_counter_.num_fec_packets; in AddReceivedRedPacket()
|
D | forward_error_correction_internal.h | 63 void GeneratePacketMasks(int num_media_packets, int num_fec_packets,
|
D | producer_fec.cc | 252 int num_fec_packets = fec_->GetNumberOfFecPackets(media_packets_fec_.size(), in Overhead() local 255 return (num_fec_packets << 8) / media_packets_fec_.size(); in Overhead()
|
/external/webrtc/webrtc/test/fuzzers/ |
D | producer_fec_fuzzer.cc | 48 uint16_t num_fec_packets = producer.NumAvailableFecPackets(); in FuzzOneInput() local 50 if (num_fec_packets > 0) { in FuzzOneInput() 53 RTC_CHECK_EQ(num_fec_packets, fec_packets.size()); in FuzzOneInput()
|
/external/webrtc/webrtc/modules/rtp_rtcp/include/ |
D | fec_receiver.h | 22 num_fec_packets(0), in FecPacketCounter() 26 size_t num_fec_packets; // Number of received FEC packets. member
|
/external/webrtc/webrtc/video/ |
D | vie_receiver.cc | 73 static_cast<int>(counter.num_fec_packets * 100 / counter.num_packets)); in UpdateHistograms() 75 if (counter.num_fec_packets > 0) { in UpdateHistograms() 79 counter.num_fec_packets)); in UpdateHistograms()
|