Searched refs:red_packet (Results 1 – 5 of 5) sorted by relevance
43 const Packet& red_packet = *it; in SplitRed() local44 assert(!red_packet.payload.empty()); in SplitRed()45 const uint8_t* payload_ptr = red_packet.payload.data(); in SplitRed()78 new_header.timestamp = red_packet.timestamp; in SplitRed()79 new_header.payload_length = red_packet.payload.size() - sum_length; in SplitRed()85 new_header.timestamp = red_packet.timestamp - timestamp_offset; in SplitRed()105 red_packet.payload.data() + red_packet.payload.size()) { in SplitRed()117 new_packet.sequence_number = red_packet.sequence_number; in SplitRed()122 /*ssrc=*/red_packet.packet_info.ssrc(), in SplitRed()127 /*receive_time_ms=*/red_packet.packet_info.receive_time_ms()); in SplitRed()
187 RtpPacketReceived red_packet; in BuildMediaRedPacket() local190 red_packet.Parse(packet.data.cdata(), kHeaderLength); in BuildMediaRedPacket()191 RTC_DCHECK_EQ(red_packet.headers_size(), kHeaderLength); in BuildMediaRedPacket()193 red_packet.AllocatePayload(packet.data.size() + 1 - kHeaderLength); in BuildMediaRedPacket()195 rtp_payload[0] = red_packet.PayloadType(); in BuildMediaRedPacket()196 red_packet.SetPayloadType(kRedPayloadType); in BuildMediaRedPacket()200 red_packet.set_recovered(is_recovered); in BuildMediaRedPacket()202 return red_packet; in BuildMediaRedPacket()212 RtpPacketReceived red_packet; in BuildUlpfecRedPacket() local213 red_packet.Parse(fake_packet->data); in BuildUlpfecRedPacket()[all …]
219 std::unique_ptr<RtpPacketToSend> red_packet = in GetFecPackets() local221 red_packet->SetPayloadType(red_payload_type_); in GetFecPackets()222 red_packet->SetMarker(false); in GetFecPackets()223 uint8_t* payload_buffer = red_packet->SetPayloadSize( in GetFecPackets()230 total_fec_size_bytes += red_packet->size(); in GetFecPackets()231 red_packet->set_packet_type(RtpPacketMediaType::kForwardErrorCorrection); in GetFecPackets()232 red_packet->set_allow_retransmission(false); in GetFecPackets()233 red_packet->set_is_red(true); in GetFecPackets()234 red_packet->set_fec_protect_packet(false); in GetFecPackets()235 fec_packets.push_back(std::move(red_packet)); in GetFecPackets()
49 RtpPacketToSend* red_packet) { in BuildRedPayload() argument50 uint8_t* red_payload = red_packet->AllocatePayload( in BuildRedPayload()597 std::unique_ptr<RtpPacketToSend> red_packet(new RtpPacketToSend(*packet)); in SendVideo() local598 BuildRedPayload(*packet, red_packet.get()); in SendVideo()599 red_packet->SetPayloadType(*red_payload_type_); in SendVideo()600 red_packet->set_is_red(true); in SendVideo()603 red_packet->set_packet_type(RtpPacketMediaType::kVideo); in SendVideo()604 red_packet->set_allow_retransmission(packet->allow_retransmission()); in SendVideo()605 rtp_packets.emplace_back(std::move(red_packet)); in SendVideo()
127 RtpPacketReceived red_packet = in BuildAndAddRedMediaPacket() local129 EXPECT_TRUE(receiver_fec_->AddReceivedRedPacket(red_packet, kFecPayloadType)); in BuildAndAddRedMediaPacket()133 RtpPacketReceived red_packet = in BuildAndAddRedFecPacket() local135 EXPECT_TRUE(receiver_fec_->AddReceivedRedPacket(red_packet, kFecPayloadType)); in BuildAndAddRedFecPacket()