Home
last modified time | relevance | path

Searched refs:media_packet (Results 1 – 11 of 11) sorted by relevance

/external/webrtc/modules/rtp_rtcp/source/
Dpacket_sequencer_unittest.cc102 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 …]
Drtp_sender_egress_unittest.cc215 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 …]
Dflexfec_receiver_unittest.cc114 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 …]
Dfec_test_helper.cc57 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()
Dforward_error_correction.cc131 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()
Drtp_sender_unittest.cc375 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()
Drtp_sender_video.cc52 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()
Drtp_fec_unittest.cc154 [](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/
Drtx_receive_stream.cc68 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/
Dtest_fec.cc248 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/
Davdtp_test.py62 media_packet = MediaPacket.from_bytes(packet)
63 print(media_packet)