/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
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); 46 // \param[in] num_media_packets The number of media packets to protect. 49 // be generated. [1, num_media_packets]. 51 // [0, num_media_packets]. 63 void GeneratePacketMasks(int num_media_packets, int num_fec_packets,
|
forward_error_correction_internal.cc | 146 int num_media_packets) 147 : fec_mask_type_(InitMaskType(fec_mask_type, num_media_packets)), 151 // packet mask selected is based on |fec_mask_type| and |num_media_packets|. 152 // If |num_media_packets| is larger than the maximum allowed by |fec_mask_type| 155 int num_media_packets) { 157 assert(num_media_packets <= static_cast<int>(sizeof(kPacketMaskRandomTbl) / 166 if (num_media_packets > max_media_packets) { 193 void RemainingPacketProtection(int num_media_packets, 204 (num_media_packets - num_fec_for_imp_packets) > 16 ? 1 : 0; 210 mask_table.fec_packet_mask_table()[num_media_packets [all...] |
forward_error_correction.cc | 114 const uint16_t num_media_packets = media_packet_list.size(); local 116 assert(num_media_packets > 0); 118 num_important_packets <= num_media_packets); 121 if (num_media_packets > kMaxMediaPackets) { 122 LOG(LS_WARNING) << "Can't protect " << num_media_packets 127 bool l_bit = (num_media_packets > 8 * kMaskSizeLBitClear); 149 GetNumberOfFecPackets(num_media_packets, protection_factor); 162 const internal::PacketMaskTable mask_table(fec_mask_type, num_media_packets); 169 internal::GeneratePacketMasks(num_media_packets, num_fec_packets, 192 int ForwardErrorCorrection::GetNumberOfFecPackets(int num_media_packets, [all...] |
rtp_fec_unittest.cc | 68 // Construct the media packet list, up to |num_media_packets| packets. 71 int ConstructMediaPacketsSeqNum(int num_media_packets, int start_seq_num); 72 int ConstructMediaPackets(int num_media_packets); [all...] |
fec_receiver_unittest.cc | 49 void GenerateFrame(int num_media_packets, int frame_offset, 52 generator_->NewFrame(num_media_packets); 53 for (int i = 0; i < num_media_packets; ++i) {
|
forward_error_correction.h | 198 int GetNumberOfFecPackets(int num_media_packets, int protection_factor);
|
/external/webrtc/webrtc/modules/rtp_rtcp/test/testFec/ |
test_packet_masks_metrics.cc | 80 int num_media_packets; member in struct:webrtc::CodeSizeParams 82 // Protection level: num_fec_packets / (num_media_packets + num_fec_packets). 130 // k = num_media_packets, m = num_fec_packets. 191 int RecoveredMediaPackets(int num_media_packets, 195 new uint8_t[num_media_packets + num_fec_packets]); 196 memcpy(state_tmp.get(), state, num_media_packets + num_fec_packets); 204 if (state_tmp[i + num_media_packets] == 0) { 208 for (int j = 0; j < num_media_packets; j++) { 223 for (int j = 0; j < num_media_packets; j++) { 349 int num_media_packets, 393 int num_media_packets = code_params_[code_index].num_media_packets; local [all...] |
/external/webrtc/webrtc/modules/video_coding/test/ |
stream_generator.cc | 35 int num_media_packets, 39 for (int i = 0; i < num_media_packets; ++i) { 41 (kFrameSize + num_media_packets / 2) / num_media_packets; 42 bool marker_bit = (i == num_media_packets - 1);
|
stream_generator.h | 37 int num_media_packets,
|