Home
last modified time | relevance | path

Searched refs:num_media_packets (Results 1 – 14 of 14) sorted by relevance

/external/webrtc/modules/rtp_rtcp/source/
Dforward_error_correction_internal.cc146 int num_media_packets) in PacketMaskTable() argument
147 : table_(PickTable(fec_mask_type, num_media_packets)) {} in PacketMaskTable()
151 rtc::ArrayView<const uint8_t> PacketMaskTable::LookUp(int num_media_packets, in LookUp() argument
153 RTC_DCHECK_GT(num_media_packets, 0); in LookUp()
155 RTC_DCHECK_LE(num_media_packets, kUlpfecMaxMediaPackets); in LookUp()
156 RTC_DCHECK_LE(num_fec_packets, num_media_packets); in LookUp()
158 if (num_media_packets <= 12) { in LookUp()
159 return LookUpInFecTable(table_, num_media_packets - 1, num_fec_packets - 1); in LookUp()
162 static_cast<int>(PacketMaskSize(static_cast<size_t>(num_media_packets))); in LookUp()
178 ((col * 8) % num_fec_packets == row && (col * 8) < num_media_packets in LookUp()
[all …]
Dforward_error_correction_internal.h43 PacketMaskTable(FecMaskType fec_mask_type, int num_media_packets);
46 rtc::ArrayView<const uint8_t> LookUp(int num_media_packets,
51 int num_media_packets);
81 void GeneratePacketMasks(int num_media_packets,
Dforward_error_correction.cc113 const size_t num_media_packets = media_packets.size(); in EncodeFec() local
116 RTC_DCHECK_GT(num_media_packets, 0); in EncodeFec()
118 RTC_DCHECK_LE(num_important_packets, num_media_packets); in EncodeFec()
121 if (num_media_packets > max_media_packets) { in EncodeFec()
122 RTC_LOG(LS_WARNING) << "Can't protect " << num_media_packets in EncodeFec()
148 int num_fec_packets = NumFecPackets(num_media_packets, protection_factor); in EncodeFec()
160 internal::PacketMaskTable mask_table(fec_mask_type, num_media_packets); in EncodeFec()
161 packet_mask_size_ = internal::PacketMaskSize(num_media_packets); in EncodeFec()
163 internal::GeneratePacketMasks(num_media_packets, num_fec_packets, in EncodeFec()
189 int ForwardErrorCorrection::NumFecPackets(int num_media_packets, in NumFecPackets() argument
[all …]
Dfec_private_tables_bursty_unittest.cc69 int num_media_packets = 15; in TEST() local
72 internal::PacketMaskTable mask_table(fec_mask_type, num_media_packets); in TEST()
74 mask_table.LookUp(num_media_packets, num_fec_packets); in TEST()
Dfec_test_helper.cc46 int num_media_packets, in ConstructMediaPackets() argument
48 RTC_DCHECK_GT(num_media_packets, 0); in ConstructMediaPackets()
54 for (int i = 0; i < num_media_packets; ++i) { in ConstructMediaPackets()
99 int num_media_packets) { in ConstructMediaPackets() argument
100 return ConstructMediaPackets(num_media_packets, random_->Rand<uint16_t>()); in ConstructMediaPackets()
Dfec_test_helper.h43 int num_media_packets,
46 int num_media_packets);
Dulpfec_generator.cc181 int num_media_packets = static_cast<int>(media_packets_.size()); in MinimumMediaPacketsReached() local
183 return num_media_packets >= min_num_media_packets_; in MinimumMediaPacketsReached()
187 return num_media_packets >= min_num_media_packets_ + 1; in MinimumMediaPacketsReached()
Dulpfec_receiver_unittest.cc63 void PacketizeFrame(size_t num_media_packets,
112 size_t num_media_packets, in PacketizeFrame() argument
116 packet_generator_.NewFrame(num_media_packets); in PacketizeFrame()
117 for (size_t i = 0; i < num_media_packets; ++i) { in PacketizeFrame()
Dflexfec_receiver_unittest.cc70 void PacketizeFrame(size_t num_media_packets,
85 void FlexfecReceiverTest::PacketizeFrame(size_t num_media_packets, in PacketizeFrame() argument
88 packet_generator_.NewFrame(num_media_packets); in PacketizeFrame()
89 for (size_t i = 0; i < num_media_packets; ++i) { in PacketizeFrame()
Dforward_error_correction.h226 static int NumFecPackets(int num_media_packets, int protection_factor);
/external/webrtc/modules/rtp_rtcp/test/testFec/
Dtest_packet_masks_metrics.cc80 int num_media_packets; member
188 int RecoveredMediaPackets(int num_media_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()
201 if (state_tmp[i + num_media_packets] == 0) { in RecoveredMediaPackets()
205 for (int j = 0; j < num_media_packets; j++) { in RecoveredMediaPackets()
220 for (int j = 0; j < num_media_packets; j++) { in RecoveredMediaPackets()
344 int num_media_packets, in ComputeRecoveryRatePerLoss() argument
347 for (int loss = 1; loss <= num_media_packets + num_fec_packets; loss++) { in ComputeRecoveryRatePerLoss()
364 static_cast<double>(loss * num_media_packets) / in ComputeRecoveryRatePerLoss()
[all …]
Dtest_fec.cc168 for (uint32_t num_media_packets = 1; num_media_packets <= packet_mask_max; in RunTest() local
169 num_media_packets++) { in RunTest()
170 internal::PacketMaskTable mask_table(fec_mask_type, num_media_packets); in RunTest()
173 num_fec_packets <= num_media_packets && in RunTest()
178 uint32_t max_num_imp_packets = num_media_packets / 4 + 1; in RunTest()
184 static_cast<uint8_t>(num_fec_packets * 255 / num_media_packets); in RunTest()
187 (num_media_packets > 16) ? kNumMaskBytesL1 : kNumMaskBytesL0; in RunTest()
190 num_media_packets * mask_bytes_per_fec_packet); 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()
[all …]
/external/webrtc/modules/video_coding/test/
Dstream_generator.cc33 int num_media_packets, in GenerateFrame() argument
37 for (int i = 0; i < num_media_packets; ++i) { in GenerateFrame()
39 (kFrameSize + num_media_packets / 2) / num_media_packets; in GenerateFrame()
40 bool marker_bit = (i == num_media_packets - 1); in GenerateFrame()
Dstream_generator.h38 int num_media_packets,