Searched refs:num_media_packets (Results 1 – 9 of 9) sorted by relevance
/external/chromium_org/third_party/webrtc/modules/rtp_rtcp/test/testFec/ |
D | test_packet_masks_metrics.cc | 87 int num_media_packets; member 198 int RecoveredMediaPackets(int num_media_packets, in RecoveredMediaPackets() argument 202 new uint8_t[num_media_packets + num_fec_packets]); in RecoveredMediaPackets() 203 memcpy(state_tmp.get(), state, num_media_packets + num_fec_packets); in RecoveredMediaPackets() 211 if (state_tmp[i + num_media_packets] == 0) { in RecoveredMediaPackets() 215 for (int j = 0; j < num_media_packets; j++) { in RecoveredMediaPackets() 230 for (int j = 0; j < num_media_packets; j++) { in RecoveredMediaPackets() 356 int num_media_packets, in ComputeRecoveryRatePerLoss() argument 359 for (int loss = 1; loss <= num_media_packets + num_fec_packets; loss++) { in ComputeRecoveryRatePerLoss() 375 double scaled_loss = static_cast<double>(loss * num_media_packets) / in ComputeRecoveryRatePerLoss() [all …]
|
/external/chromium_org/third_party/webrtc/modules/rtp_rtcp/source/ |
D | forward_error_correction_internal.cc | 140 int num_media_packets) in PacketMaskTable() argument 141 : fec_mask_type_(InitMaskType(fec_mask_type, num_media_packets)), in PacketMaskTable() 149 int num_media_packets) { in InitMaskType() argument 151 assert(num_media_packets <= static_cast<int>(sizeof(kPacketMaskRandomTbl) / in InitMaskType() 158 if (num_media_packets > max_media_packets) { in InitMaskType() 181 void RemainingPacketProtection(int num_media_packets, int num_fec_remaining, in RemainingPacketProtection() argument 189 (num_media_packets - num_fec_for_imp_packets) > 16 ? 1 : 0; in RemainingPacketProtection() 195 num_media_packets - num_fec_for_imp_packets - 1][num_fec_remaining - 1]; in RemainingPacketProtection() 205 .fec_packet_mask_table()[num_media_packets - 1][num_fec_remaining - 1]; in RemainingPacketProtection() 243 int SetProtectionAllocation(int num_media_packets, int num_fec_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 117 assert(num_media_packets > 0); in GenerateFEC() 119 num_important_packets <= num_media_packets); in GenerateFEC() 122 if (num_media_packets > kMaxMediaPackets) { in GenerateFEC() 123 LOG(LS_WARNING) << "Can't protect " << num_media_packets in GenerateFEC() 128 bool l_bit = (num_media_packets > 8 * kMaskSizeLBitClear); in GenerateFEC() 153 GetNumberOfFecPackets(num_media_packets, protection_factor); in GenerateFEC() 166 const internal::PacketMaskTable mask_table(fec_mask_type, num_media_packets); in GenerateFEC() 172 internal::GeneratePacketMasks(num_media_packets, num_fec_packets, in GenerateFEC() 196 int ForwardErrorCorrection::GetNumberOfFecPackets(int num_media_packets, in GetNumberOfFecPackets() argument [all …]
|
D | rtp_fec_unittest.cc | 66 int ConstructMediaPacketsSeqNum(int num_media_packets, int start_seq_num); 67 int ConstructMediaPackets(int num_media_packets); 889 int RtpFecTest::ConstructMediaPacketsSeqNum(int num_media_packets, in ConstructMediaPacketsSeqNum() argument 891 assert(num_media_packets > 0); in ConstructMediaPacketsSeqNum() 896 for (int i = 0; i < num_media_packets; ++i) { in ConstructMediaPacketsSeqNum() 942 int RtpFecTest::ConstructMediaPackets(int num_media_packets) { in ConstructMediaPackets() argument 943 return ConstructMediaPacketsSeqNum(num_media_packets, rand()); in ConstructMediaPackets()
|
D | fec_receiver_unittest.cc | 52 void GenerateFrame(int num_media_packets, int frame_offset, in GenerateFrame() argument 55 generator_->NewFrame(num_media_packets); in GenerateFrame() 56 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/chromium_org/third_party/webrtc/modules/video_coding/main/source/test/ |
D | stream_generator.cc | 43 int num_media_packets, in GenerateFrame() argument 47 for (int i = 0; i < num_media_packets; ++i) { in GenerateFrame() 49 (kFrameSize + num_media_packets / 2) / num_media_packets; in GenerateFrame() 50 bool marker_bit = (i == num_media_packets - 1); in GenerateFrame()
|
D | stream_generator.h | 39 int num_media_packets,
|