Searched refs:num_media_packets (Results 1 – 9 of 9) sorted by relevance
/external/webrtc/webrtc/modules/rtp_rtcp/test/testFec/ |
D | test_packet_masks_metrics.cc | 80 int num_media_packets; member 191 int RecoveredMediaPackets(int num_media_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() 204 if (state_tmp[i + num_media_packets] == 0) { in RecoveredMediaPackets() 208 for (int j = 0; j < num_media_packets; j++) { in RecoveredMediaPackets() 223 for (int j = 0; j < num_media_packets; j++) { in RecoveredMediaPackets() 349 int num_media_packets, in ComputeRecoveryRatePerLoss() argument 352 for (int loss = 1; loss <= num_media_packets + num_fec_packets; loss++) { in ComputeRecoveryRatePerLoss() 368 double scaled_loss = static_cast<double>(loss * num_media_packets) / in ComputeRecoveryRatePerLoss() [all …]
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
D | forward_error_correction_internal.cc | 146 int num_media_packets) in PacketMaskTable() argument 147 : fec_mask_type_(InitMaskType(fec_mask_type, num_media_packets)), in PacketMaskTable() 155 int num_media_packets) { in InitMaskType() argument 157 assert(num_media_packets <= static_cast<int>(sizeof(kPacketMaskRandomTbl) / in InitMaskType() 166 if (num_media_packets > max_media_packets) { in InitMaskType() 193 void RemainingPacketProtection(int num_media_packets, in RemainingPacketProtection() argument 204 (num_media_packets - num_fec_for_imp_packets) > 16 ? 1 : 0; in RemainingPacketProtection() 210 mask_table.fec_packet_mask_table()[num_media_packets - in RemainingPacketProtection() 222 mask_table.fec_packet_mask_table()[num_media_packets - in RemainingPacketProtection() 262 int SetProtectionAllocation(int num_media_packets, in SetProtectionAllocation() argument [all …]
|
D | forward_error_correction_internal.h | 28 PacketMaskTable(FecMaskType fec_mask_type, int num_media_packets); 36 FecMaskType InitMaskType(FecMaskType fec_mask_type, int num_media_packets); 63 void GeneratePacketMasks(int num_media_packets, int num_fec_packets,
|
D | forward_error_correction.cc | 114 const uint16_t num_media_packets = media_packet_list.size(); in GenerateFEC() local 116 assert(num_media_packets > 0); in GenerateFEC() 118 num_important_packets <= num_media_packets); in GenerateFEC() 121 if (num_media_packets > kMaxMediaPackets) { in GenerateFEC() 122 LOG(LS_WARNING) << "Can't protect " << num_media_packets in GenerateFEC() 127 bool l_bit = (num_media_packets > 8 * kMaskSizeLBitClear); in GenerateFEC() 149 GetNumberOfFecPackets(num_media_packets, protection_factor); in GenerateFEC() 162 const internal::PacketMaskTable mask_table(fec_mask_type, num_media_packets); in GenerateFEC() 169 internal::GeneratePacketMasks(num_media_packets, num_fec_packets, in GenerateFEC() 192 int ForwardErrorCorrection::GetNumberOfFecPackets(int num_media_packets, in GetNumberOfFecPackets() argument [all …]
|
D | rtp_fec_unittest.cc | 71 int ConstructMediaPacketsSeqNum(int num_media_packets, int start_seq_num); 72 int ConstructMediaPackets(int num_media_packets); 894 int RtpFecTest::ConstructMediaPacketsSeqNum(int num_media_packets, in ConstructMediaPacketsSeqNum() argument 896 assert(num_media_packets > 0); in ConstructMediaPacketsSeqNum() 901 for (int i = 0; i < num_media_packets; ++i) { in ConstructMediaPacketsSeqNum() 945 int RtpFecTest::ConstructMediaPackets(int num_media_packets) { in ConstructMediaPackets() argument 946 return ConstructMediaPacketsSeqNum(num_media_packets, random_.Rand<int>()); in ConstructMediaPackets()
|
D | fec_receiver_unittest.cc | 49 void GenerateFrame(int num_media_packets, int frame_offset, in GenerateFrame() argument 52 generator_->NewFrame(num_media_packets); in GenerateFrame() 53 for (int i = 0; i < num_media_packets; ++i) { in GenerateFrame()
|
D | forward_error_correction.h | 198 int GetNumberOfFecPackets(int num_media_packets, int protection_factor);
|
/external/webrtc/webrtc/modules/video_coding/test/ |
D | stream_generator.cc | 35 int num_media_packets, in GenerateFrame() argument 39 for (int i = 0; i < num_media_packets; ++i) { in GenerateFrame() 41 (kFrameSize + num_media_packets / 2) / num_media_packets; in GenerateFrame() 42 bool marker_bit = (i == num_media_packets - 1); in GenerateFrame()
|
D | stream_generator.h | 37 int num_media_packets,
|