Home
last modified time | relevance | path

Searched refs:red_packet (Results 1 – 8 of 8) sorted by relevance

/external/webrtc/webrtc/modules/rtp_rtcp/source/
Dfec_test_helper.cc49 RtpPacket* red_packet = new RtpPacket; in BuildMediaRedPacket() local
50 red_packet->header = packet->header; in BuildMediaRedPacket()
51 red_packet->length = packet->length + 1; // 1 byte RED header. in BuildMediaRedPacket()
52 memset(red_packet->data, 0, red_packet->length); in BuildMediaRedPacket()
54 memcpy(red_packet->data, packet->data, kHeaderLength); in BuildMediaRedPacket()
55 SetRedHeader(red_packet, red_packet->data[1] & 0x7f, kHeaderLength); in BuildMediaRedPacket()
56 memcpy(red_packet->data + kHeaderLength + 1, packet->data + kHeaderLength, in BuildMediaRedPacket()
58 return red_packet; in BuildMediaRedPacket()
67 RtpPacket* red_packet = NextPacket(0, packet->length + 1); in BuildFecRedPacket() local
68 red_packet->data[1] &= ~0x80; // Clear marker bit. in BuildFecRedPacket()
[all …]
Dproducer_fec.cc127 RedPacket* red_packet = new RedPacket( in BuildRedPacket() local
130 red_packet->CreateHeader(data_buffer, rtp_header_length, in BuildRedPacket()
132 red_packet->AssignPayload(data_buffer + rtp_header_length, payload_length); in BuildRedPacket()
133 return red_packet; in BuildRedPacket()
229 RedPacket* red_packet = new RedPacket( in GetFecPackets() local
231 red_packet->CreateHeader(last_media_packet->data, rtp_header_length, in GetFecPackets()
233 red_packet->SetSeqNum(sequence_number++); in GetFecPackets()
234 red_packet->ClearMarkerBit(); in GetFecPackets()
235 red_packet->AssignPayload(packet_to_send->data, packet_to_send->length); in GetFecPackets()
237 fec_packets.push_back(red_packet); in GetFecPackets()
Dfec_receiver_unittest.cc71 RtpPacket* red_packet = generator_->BuildMediaRedPacket(packet); in BuildAndAddRedMediaPacket() local
73 red_packet->header.header, red_packet->data, in BuildAndAddRedMediaPacket()
74 red_packet->length, kFecPayloadType)); in BuildAndAddRedMediaPacket()
75 delete red_packet; in BuildAndAddRedMediaPacket()
79 RtpPacket* red_packet = generator_->BuildFecRedPacket(packet); in BuildAndAddRedFecPacket() local
81 red_packet->header.header, red_packet->data, in BuildAndAddRedFecPacket()
82 red_packet->length, kFecPayloadType)); in BuildAndAddRedFecPacket()
83 delete red_packet; in BuildAndAddRedFecPacket()
Drtp_sender_video.cc125 rtc::scoped_ptr<RedPacket> red_packet; in SendVideoPacketAsRed() local
132 red_packet.reset(producer_fec_.BuildRedPacket( in SendVideoPacketAsRed()
151 red_packet->data(), red_packet->length() - rtp_header_length, in SendVideoPacketAsRed()
154 _videoBitrate.Update(red_packet->length()); in SendVideoPacketAsRed()
Dproducer_fec_unittest.cc190 rtc::scoped_ptr<RedPacket> red_packet(producer_->BuildRedPacket( in TEST_F() local
193 EXPECT_EQ(packet->length + 1, red_packet->length()); in TEST_F()
198 red_packet.get(), in TEST_F()
201 EXPECT_EQ(i, red_packet->data()[kRtpHeaderSize + 1 + i]); in TEST_F()
Dfec_test_helper.h47 void SetRedHeader(Packet* red_packet, uint8_t payload_type,
/external/webrtc/webrtc/modules/audio_coding/neteq/
Dpayload_splitter.cc32 Packet* red_packet = (*it); in SplitRed() local
33 assert(red_packet->payload); in SplitRed()
34 uint8_t* payload_ptr = red_packet->payload; in SplitRed()
53 new_packet->header = red_packet->header; in SplitRed()
61 new_packet->payload_length = red_packet->payload_length - sum_length; in SplitRed()
68 new_packet->header.timestamp = red_packet->header.timestamp - in SplitRed()
88 red_packet->payload + red_packet->payload_length) { in SplitRed()
/external/webrtc/webrtc/test/fuzzers/
Dproducer_fec_fuzzer.cc41 rtc::scoped_ptr<RedPacket> red_packet(producer.BuildRedPacket( in FuzzOneInput() local