Home
last modified time | relevance | path

Searched refs:kRtpHeaderSize (Results 1 – 21 of 21) sorted by relevance

/external/webrtc/test/fuzzers/
Dflexfec_sender_fuzzer.cc51 if (i + kRtpHeaderSize + payload_size >= size) in FuzzOneInput()
54 new uint8_t[kRtpHeaderSize + payload_size]); in FuzzOneInput()
55 memcpy(packet.get(), &data[i], kRtpHeaderSize + payload_size); in FuzzOneInput()
56 i += kRtpHeaderSize + payload_size; in FuzzOneInput()
60 if (!rtp_packet.Parse(packet.get(), kRtpHeaderSize + payload_size)) in FuzzOneInput()
Dulpfec_receiver_fuzzer.cc44 size_t packet_length = kRtpHeaderSize + fuzz_data.Read<uint8_t>(); in FuzzOneInput()
Dflexfec_receiver_fuzzer.cc48 packet_length = kRtpHeaderSize + data[i++]; in FuzzOneInput()
/external/webrtc/modules/rtp_rtcp/source/
Dfec_test_helper.cc124 packet->data.SetSize(length + kRtpHeaderSize); in NextPacket()
127 data[i + kRtpHeaderSize] = offset + i; in NextPacket()
128 packet->data.SetSize(length + kRtpHeaderSize); in NextPacket()
129 packet->header.headerLength = kRtpHeaderSize; in NextPacket()
162 static_cast<size_t>(IP_PACKET_SIZE - kRtpHeaderSize)); in BuildFlexfecPacket()
173 packet_with_rtp_header->data.SetSize(kRtpHeaderSize + packet.data.size()); in BuildFlexfecPacket()
175 memcpy(packet_with_rtp_header->data.data() + kRtpHeaderSize, in BuildFlexfecPacket()
Dforward_error_correction.cc131 if (media_packet->data.size() < kRtpHeaderSize) { in EncodeFec()
223 media_packet->data.size() - kRtpHeaderSize; in GenerateFecPayloads()
245 memcpy(&data[fec_header_size], &media_packet_data[kRtpHeaderSize], in GenerateFecPayloads()
556 std::min(size_t{IP_PACKET_SIZE - kRtpHeaderSize}, in StartPacketRecovery()
564 kRtpHeaderSize); in StartPacketRecovery()
571 kRtpHeaderSize); in StartPacketRecovery()
574 memcpy(recovered_packet->pkt->data.data() + kRtpHeaderSize, in StartPacketRecovery()
590 ByteReader<uint16_t>::ReadBigEndian(&data[2]) + kRtpHeaderSize; in FinishPacketRecovery()
591 if (new_size > size_t{IP_PACKET_SIZE - kRtpHeaderSize}) { in FinishPacketRecovery()
615 src.data.size() - kRtpHeaderSize); in XorHeaders()
[all …]
Dulpfec_generator_unittest.cc47 EXPECT_EQ(static_cast<uint8_t>(fec_payload_type), data[kRtpHeaderSize]); in VerifyHeader()
133 EXPECT_EQ(fec_packets[0]->headers_size(), kRtpHeaderSize); in TEST_F()
Dflexfec_sender_unittest.cc103 EXPECT_EQ(kRtpHeaderSize, fec_packet->headers_size()); in TEST()
143 EXPECT_EQ(kRtpHeaderSize, fec_packet->headers_size()); in TEST()
181 EXPECT_EQ(kRtpHeaderSize, fec_packet->headers_size()); in TEST()
Dflexfec_receiver.cc93 RTC_DCHECK_GE(packet.size(), kRtpHeaderSize); in AddReceivedPacket()
Dulpfec_generator.cc141 RTC_DCHECK_GE(packet.headers_size(), kRtpHeaderSize); in AddPacketAndGenerateFec()
Drtp_sender_audio.cc359 new RtpPacketToSend(kNoExtensions, kRtpHeaderSize + kDtmfSize)); in SendTelephoneEventPacket()
Drtp_sender.cc173 max_media_packet_header_(kRtpHeaderSize), in RTPSender()
174 max_padding_fec_packet_header_(kRtpHeaderSize), in RTPSender()
Drtp_fec_unittest.cc59 kRtpHeaderSize, // Minimum packet size. in RtpFecTest()
60 IP_PACKET_SIZE - kRtpHeaderSize - kTransportOverhead - in RtpFecTest()
Dulpfec_receiver_unittest.cc119 packet_generator_.NextPacket(frame_offset + i, kRtpHeaderSize + 10)); in PacketizeFrame()
Drtp_sender_video.cc212 rtp_sender_->FecOrPaddingPacketMaxRtpHeaderLength() - kRtpHeaderSize; in FecPacketOverhead()
Drtp_sender_unittest.cc577 EXPECT_CALL(transport, SendRtp(_, kPaddingSize + kRtpHeaderSize, _)) in TEST_P()
583 EXPECT_CALL(transport, SendRtp(_, kMinPaddingSize + kRtpHeaderSize, _)) in TEST_P()
1097 size_t rtp_header_len = kRtpHeaderSize; in TEST_P()
/external/webrtc/modules/audio_coding/acm2/
Dacm_send_test.cc142 const size_t kRtpHeaderSize = 12; in CreatePacket() local
143 size_t allocated_bytes = last_payload_vec_.size() + kRtpHeaderSize; in CreatePacket()
163 memcpy(packet_memory + kRtpHeaderSize, &last_payload_vec_[0], in CreatePacket()
/external/webrtc/call/
Dflexfec_receive_stream_unittest.cc153 OnRecoveredPacket(_, kRtpHeaderSize + kPayloadLength[1])); in TEST_F()
/external/webrtc/audio/
Daudio_receive_stream_unittest.cc196 header.resize(webrtc::kRtpHeaderSize + kOneByteExtensionHeaderLength + in CreateRtpHeaderWithOneByteExtension()
206 BuildOneByteExtension(header.begin() + webrtc::kRtpHeaderSize, extension_id, in CreateRtpHeaderWithOneByteExtension()
/external/webrtc/video/
Dvideo_send_stream.cc35 size_t header_size = kRtpHeaderSize; in CalculateMaxHeaderSize()
/external/webrtc/modules/rtp_rtcp/include/
Drtp_rtcp_defines.h48 const uint8_t kRtpHeaderSize = 12; variable
/external/webrtc/media/engine/
Dwebrtc_video_engine_unittest.cc99 constexpr uint32_t kRtpHeaderSize = 12; variable
1766 NumRtpBytes() - kRtpHeaderSize * NumRtpPackets()); in TEST_F()
1789 EXPECT_EQ(NumRtpBytes() - kRtpHeaderSize * NumRtpPackets(), in TEST_F()
1843 EXPECT_EQ_WAIT(NumRtpBytes() - kRtpHeaderSize * NumRtpPackets(), in TEST_F()
1853 EXPECT_EQ_WAIT(NumRtpBytes() - kRtpHeaderSize * NumRtpPackets(), in TEST_F()