/external/webrtc/modules/rtp_rtcp/source/ |
D | packet_sequencer_unittest.cc | 102 RtpPacketToSend media_packet = in TEST_F() local 104 media_packet.SetPayloadType(kMediaPayloadType); in TEST_F() 105 media_packet.SetMarker(false); in TEST_F() 106 sequencer_.Sequence(media_packet); in TEST_F() 113 media_packet.SetMarker(true); in TEST_F() 114 sequencer_.Sequence(media_packet); in TEST_F() 124 RtpPacketToSend media_packet = in TEST_F() local 126 media_packet.SetPayloadType(kMediaPayloadType); in TEST_F() 127 media_packet.SetMarker(false); in TEST_F() 128 packet_sequencer.Sequence(media_packet); in TEST_F() [all …]
|
D | rtp_sender_egress_unittest.cc | 215 std::unique_ptr<RtpPacketToSend> media_packet = BuildRtpPacket(); in TEST_F() local 216 media_packet->set_packet_type(RtpPacketMediaType::kVideo); in TEST_F() 217 sender->SendPacket(media_packet.get(), PacedPacketInfo()); in TEST_F() 223 media_packet->SequenceNumber()); in TEST_F() 395 std::unique_ptr<RtpPacketToSend> media_packet = BuildRtpPacket(); in TEST_F() local 396 media_packet->set_packet_type(RtpPacketMediaType::kVideo); in TEST_F() 397 media_packet->SetPayloadSize(500); in TEST_F() 398 sender->SendPacket(media_packet.get(), PacedPacketInfo()); in TEST_F() 519 std::unique_ptr<RtpPacketToSend> media_packet = BuildRtpPacket(); in TEST_F() local 520 media_packet->set_allow_retransmission(true); in TEST_F() [all …]
|
D | flexfec_receiver_unittest.cc | 114 std::unique_ptr<Packet> media_packet( in TEST_F() local 118 receiver_.AddReceivedPacket(ParsePacket(*media_packet)); in TEST_F() 130 const auto& media_packet = media_packets.front(); in TEST_F() local 134 receiver_.AddReceivedPacket(ParsePacket(*media_packet)); in TEST_F() 149 const auto& media_packet = media_packets.front(); in TEST_F() local 155 receiver_.AddReceivedPacket(ParsePacket(*media_packet)); in TEST_F() 166 auto& media_packet = media_packets.front(); in TEST_F() local 168 media_packet->data.MutableData()[8] = 0; in TEST_F() 169 media_packet->data.MutableData()[9] = 1; in TEST_F() 170 media_packet->data.MutableData()[10] = 2; in TEST_F() [all …]
|
D | fec_test_helper.cc | 57 std::unique_ptr<ForwardErrorCorrection::Packet> media_packet( in ConstructMediaPackets() local 59 media_packet->data.SetSize( in ConstructMediaPackets() 62 uint8_t* data = media_packet->data.MutableData(); in ConstructMediaPackets() 85 for (size_t j = 12; j < media_packet->data.size(); ++j) in ConstructMediaPackets() 88 media_packets.push_back(std::move(media_packet)); in ConstructMediaPackets() 91 ForwardErrorCorrection::Packet* media_packet = media_packets.back().get(); in ConstructMediaPackets() local 92 RTC_DCHECK(media_packet); in ConstructMediaPackets() 93 media_packet->data.MutableData()[1] |= 0x80; in ConstructMediaPackets()
|
D | forward_error_correction.cc | 131 for (const auto& media_packet : media_packets) { in EncodeFec() local 132 RTC_DCHECK(media_packet); in EncodeFec() 133 if (media_packet->data.size() < kRtpHeaderSize) { in EncodeFec() 134 RTC_LOG(LS_WARNING) << "Media packet " << media_packet->data.size() in EncodeFec() 140 if (media_packet->data.size() + MaxPacketOverhead() + kTransportOverhead > in EncodeFec() 142 RTC_LOG(LS_WARNING) << "Media packet " << media_packet->data.size() in EncodeFec() 220 Packet* const media_packet = media_packets_it->get(); in GenerateFecPayloads() local 224 media_packet->data.size() - kRtpHeaderSize; in GenerateFecPayloads() 233 XorHeaders(*media_packet, fec_packet); in GenerateFecPayloads() 234 XorPayloads(*media_packet, media_payload_length, fec_header_size, in GenerateFecPayloads()
|
D | rtp_sender_unittest.cc | 375 std::unique_ptr<RtpPacketToSend> media_packet = in TEST_F() local 378 sequencer_->Sequence(*media_packet); in TEST_F() 393 media_packet->SequenceNumber() + i + 1), in TEST_F() 395 media_packet->Timestamp())))))); in TEST_F() 406 &RtpPacketToSend::Timestamp, Gt(media_packet->Timestamp())))))); in TEST_F() 518 std::unique_ptr<RtpPacketToSend> media_packet = in TEST_F() local 520 sequencer_->Sequence(*media_packet); in TEST_F() 555 std::unique_ptr<RtpPacketToSend> media_packet = in TEST_F() local 557 packet_history_->PutRtpPacket(std::move(media_packet), in TEST_F()
|
D | rtp_sender_video.cc | 52 void BuildRedPayload(const RtpPacketToSend& media_packet, in BuildRedPayload() argument 55 kRedForFecHeaderLength + media_packet.payload_size()); in BuildRedPayload() 57 red_payload[0] = media_packet.PayloadType(); in BuildRedPayload() 59 auto media_payload = media_packet.payload(); in BuildRedPayload()
|
D | rtp_fec_unittest.cc | 154 [](const std::unique_ptr<ForwardErrorCorrection::Packet>& media_packet, in IsRecoveryComplete() 157 if (media_packet->data.size() != recovered_packet->pkt->data.size()) { in IsRecoveryComplete() 160 if (memcmp(media_packet->data.cdata(), in IsRecoveryComplete() 162 media_packet->data.size()) != 0) { in IsRecoveryComplete()
|
/external/webrtc/call/ |
D | rtx_receive_stream.cc | 68 RtpPacketReceived media_packet; in OnRtpPacket() local 69 media_packet.CopyHeaderFrom(rtx_packet); in OnRtpPacket() 71 media_packet.SetSsrc(media_ssrc_); in OnRtpPacket() 72 media_packet.SetSequenceNumber((payload[0] << 8) + payload[1]); in OnRtpPacket() 73 media_packet.SetPayloadType(it->second); in OnRtpPacket() 74 media_packet.set_recovered(true); in OnRtpPacket() 75 media_packet.set_arrival_time(rtx_packet.arrival_time()); in OnRtpPacket() 80 uint8_t* media_payload = media_packet.AllocatePayload(rtx_payload.size()); in OnRtpPacket() 85 media_sink_->OnRtpPacket(media_packet); in OnRtpPacket()
|
/external/webrtc/modules/rtp_rtcp/test/testFec/ |
D | test_fec.cc | 248 std::unique_ptr<ForwardErrorCorrection::Packet> media_packet( in RunTest() local 255 media_packet->data.SetSize(packet_length); in RunTest() 257 uint8_t* data = media_packet->data.MutableData(); in RunTest() 285 media_packet_list.push_back(std::move(media_packet)); in RunTest() 303 for (const auto& media_packet : media_packet_list) { in RunTest() local 313 received_packet->pkt->data = media_packet->data; in RunTest() 316 media_packet->data.data() + 2); in RunTest() 410 for (const auto& media_packet : media_packet_list) { in RunTest() local 422 media_packet->data.size()) in RunTest() 426 media_packet->data.cdata(), in RunTest() [all …]
|
/external/python/bumble/tests/ |
D | avdtp_test.py | 62 media_packet = MediaPacket.from_bytes(packet) 63 print(media_packet)
|