Home
last modified time | relevance | path

Searched refs:packet_ (Results 1 – 25 of 26) sorted by relevance

12

/external/webrtc/modules/video_coding/
Dsession_info_unittest.cc26 packet_.video_header.frame_type = VideoFrameType::kVideoFrameDelta; in SetUp()
27 packet_.sizeBytes = packet_buffer_size(); in SetUp()
28 packet_.dataPtr = packet_buffer_; in SetUp()
29 packet_.seqNum = 0; in SetUp()
30 packet_.timestamp = 0; in SetUp()
59 VCMPacket packet_; member in webrtc::TestSessionInfo
67 packet_.video_header.codec = kVideoCodecVP8; in SetUp()
116 packet_.video_header.is_first_packet_in_frame = true; in TEST_F()
117 packet_.seqNum = 0xFFFE; in TEST_F()
118 packet_.sizeBytes = packet_buffer_size(); in TEST_F()
[all …]
Djitter_buffer_unittest.cc69 packet_.reset(new VCMPacket(data_, size_, rtp_header, video_header, in SetUp()
122 std::unique_ptr<VCMPacket> packet_; member in webrtc::TestBasicJitterBuffer
243 packet_->video_header.frame_type = VideoFrameType::kVideoFrameKey; in TEST_F()
244 packet_->video_header.is_first_packet_in_frame = true; in TEST_F()
245 packet_->markerBit = true; in TEST_F()
246 packet_->timestamp += 123 * 90; in TEST_F()
251 jitter_buffer_->InsertPacket(*packet_, &retransmitted)); in TEST_F()
259 packet_->video_header.frame_type = VideoFrameType::kVideoFrameKey; in TEST_F()
260 packet_->video_header.is_first_packet_in_frame = true; in TEST_F()
261 packet_->markerBit = false; in TEST_F()
[all …]
/external/webrtc/modules/audio_coding/neteq/tools/
Dneteq_replacement_input.cc29 packet_ = source_->PopPacket(); in NetEqReplacementInput()
34 return packet_ in NextPacketTime()
35 ? absl::optional<int64_t>(static_cast<int64_t>(packet_->time_ms)) in NextPacketTime()
44 std::unique_ptr<PacketData> to_return = std::move(packet_); in PopPacket()
46 packet_ = source_->PopPacket(); in PopPacket()
47 if (!packet_) in PopPacket()
49 if (packet_->payload.size() > packet_->header.paddingLength) { in PopPacket()
74 packet_.reset(); in ReplacePacket()
78 RTC_DCHECK(packet_); in ReplacePacket()
80 RTC_CHECK_EQ(forbidden_types_.count(packet_->header.payloadType), 0) in ReplacePacket()
[all …]
Dneteq_packet_source_input.cc25 return packet_ in NextPacketTime()
26 ? absl::optional<int64_t>(static_cast<int64_t>(packet_->time_ms())) in NextPacketTime()
31 return packet_ ? absl::optional<RTPHeader>(packet_->header()) : absl::nullopt; in NextHeader()
35 packet_ = source()->NextPacket(); in LoadNextPacket()
39 if (!packet_) { in PopPacket()
43 packet_data->header = packet_->header(); in PopPacket()
44 if (packet_->payload_length_bytes() == 0 && in PopPacket()
45 packet_->virtual_payload_length_bytes() > 0) { in PopPacket()
48 packet_data->payload.SetSize(packet_->virtual_payload_length_bytes()); in PopPacket()
51 packet_data->payload.SetData(packet_->payload(), in PopPacket()
[all …]
Dneteq_replacement_input.h45 std::unique_ptr<PacketData> packet_; // The next packet to deliver. variable
Dneteq_packet_source_input.h45 std::unique_ptr<Packet> packet_;
/external/webrtc/test/fuzzers/
Dneteq_rtp_fuzzer.cc65 packet_ = input_->PopPacket(); in FuzzRtpInput()
70 return packet_->time_ms; in NextPacketTime()
78 RTC_DCHECK(packet_); in PopPacket()
79 std::unique_ptr<PacketData> packet_to_return = std::move(packet_); in PopPacket()
80 packet_ = input_->PopPacket(); in PopPacket()
90 RTC_DCHECK(packet_); in NextHeader()
91 return packet_->header; in NextHeader()
101 RTC_DCHECK(packet_); in FuzzHeader()
103 packet_->header.payloadType = in FuzzHeader()
105 packet_->header.payloadType &= 0x7F; in FuzzHeader()
[all …]
Dneteq_signal_fuzzer.cc83 packet_ = input_->PopPacket(); in FuzzSignalInput()
93 return packet_->time_ms; in NextPacketTime()
101 RTC_DCHECK(packet_); in PopPacket()
102 std::unique_ptr<PacketData> packet_to_return = std::move(packet_); in PopPacket()
104 packet_ = input_->PopPacket(); in PopPacket()
112 packet_->time_ms = std::max(packet_to_return->time_ms, in PopPacket()
113 packet_->time_ms + arrival_time_offset_ms); in PopPacket()
129 RTC_DCHECK(packet_); in NextHeader()
130 return packet_->header; in NextHeader()
137 std::unique_ptr<PacketData> packet_; member in webrtc::test::__anon8a0398f80111::FuzzSignalInput
/external/webrtc/modules/rtp_rtcp/source/
Drtp_packet_history.cc41 packet_(std::move(packet)), in StoredPacket()
139 packet_history_[packet_index].packet_ != nullptr) { in PutRtpPacket()
157 RTC_DCHECK(packet_history_[packet_index].packet_ == nullptr); in PutRtpPacket()
198 return std::make_unique<RtpPacketToSend>(*packet->packet_); in GetPacketAndSetSendTime()
235 encapsulate(*packet->packet_); in GetPacketAndMarkAsPending()
277 if (packet.packet_ == nullptr) { in GetPacketState()
327 if (it->packet_ != nullptr) { in GetPayloadPaddingPacket()
346 auto padding_packet = encapsulate(*best_packet->packet_); in GetPayloadPaddingPacket()
436 std::move(packet_history_[packet_index].packet_); in RemovePacket()
445 packet_history_.front().packet_ == nullptr) { in RemovePacket()
[all …]
Drtp_format_vp9_unittest.cc123 RtpPacketizerVp9Test() : packet_(kNoExtensions, kMaxPacketSize) {} in RtpPacketizerVp9Test()
126 RtpPacketToSend packet_; member in webrtc::__anon905535420111::RtpPacketizerVp9Test
159 EXPECT_TRUE(packetizer_->NextPacket(&packet_)); in CreateParseAndCheckPackets()
160 auto rtp_payload = packet_.payload(); in CreateParseAndCheckPackets()
177 EXPECT_TRUE(packetizer_->NextPacket(&packet_)); in CreateParseAndCheckPacketsLayers()
179 VideoRtpDepacketizerVp9::ParseRtpPayload(packet_.payload(), in CreateParseAndCheckPacketsLayers()
219 EXPECT_FALSE(packetizer_->NextPacket(&packet_)); in TEST_F()
337 EXPECT_FALSE(packetizer_->NextPacket(&packet_)); in TEST_F()
Drtp_packet_history.h160 std::unique_ptr<RtpPacketToSend> packet_; variable
/external/webrtc/logging/rtc_event_log/events/
Drtc_event_rtcp_packet_outgoing.cc19 : packet_(packet.data(), packet.size()) {} in RtcEventRtcpPacketOutgoing()
24 packet_(other.packet_.data(), other.packet_.size()) {} in RtcEventRtcpPacketOutgoing()
Drtc_event_rtcp_packet_incoming.cc19 : packet_(packet.data(), packet.size()) {} in RtcEventRtcpPacketIncoming()
24 packet_(other.packet_.data(), other.packet_.size()) {} in RtcEventRtcpPacketIncoming()
Drtc_event_rtcp_packet_outgoing.h35 const rtc::Buffer& packet() const { return packet_; } in packet()
40 rtc::Buffer packet_; variable
Drtc_event_rtcp_packet_incoming.h35 const rtc::Buffer& packet() const { return packet_; } in packet()
40 rtc::Buffer packet_; variable
/external/pigweed/pw_router/size_report/
Dstatic_router_with_one_route.cc42 constexpr BasicPacketParser() : packet_(nullptr) {} in BasicPacketParser()
45 packet_ = reinterpret_cast<const BasicPacket*>(packet.data()); in Parse()
46 return packet_->magic == BasicPacket::kMagic; in Parse()
50 return packet_->address; in GetDestinationAddress()
54 const BasicPacket* packet_; member in __anone230cf0d0211::BasicPacketParser
/external/pigweed/pw_router/
Dstatic_router_test.cc38 constexpr BasicPacketParser() : packet_(nullptr) {} in BasicPacketParser()
41 packet_ = reinterpret_cast<const BasicPacket*>(packet.data()); in Parse()
42 return packet_->magic == BasicPacket::kMagic; in Parse()
46 PW_DCHECK_NOTNULL(packet_); in GetDestinationAddress()
47 return packet_->address; in GetDestinationAddress()
51 const BasicPacket* packet_; member in pw::router::__anon8714275d0111::BasicPacketParser
/external/openscreen/cast/standalone_receiver/
Ddecoder.cc61 parser_.get(), context_.get(), &packet_->data, &packet_->size, in Decode()
67 if (!packet_->data) { in Decode()
75 avcodec_send_packet(context_.get(), packet_.get()); in Decode()
147 packet_ = MakeUniqueAVPacket(); in Initialize()
148 if (!packet_) { in Initialize()
Ddecoder.h86 AVPacketUniquePtr packet_; variable
/external/webrtc/modules/audio_coding/neteq/test/
Dneteq_decoding_test.cc102 while (packet_ && clock_.TimeInMilliseconds() >= packet_->time_ms()) { in Process()
103 if (packet_->payload_length_bytes() > 0) { in Process()
106 if (packet_->header().payloadType != 104) in Process()
110 packet_->header(), in Process()
112 packet_->payload(), packet_->payload_length_bytes()))); in Process()
115 packet_ = rtp_source_->NextPacket(); in Process()
148 packet_ = rtp_source_->NextPacket(); in DecodeAndCompare()
152 while (packet_) { in DecodeAndCompare()
Dneteq_decoding_test.h75 std::unique_ptr<test::Packet> packet_; variable
/external/openscreen/cast/standalone_sender/
Dsimulated_capturer.cc37 packet_(MakeUniqueAVPacket()), in SimulatedCapturer()
123 av_read_frame(format_context_.get(), packet_.get()); in StartDecodingNextFrame()
139 if (packet_->stream_index != stream_index_) { in StartDecodingNextFrame()
140 av_packet_unref(packet_.get()); in StartDecodingNextFrame()
147 avcodec_send_packet(decoder_context_.get(), packet_.get()); in StartDecodingNextFrame()
148 av_packet_unref(packet_.get()); in StartDecodingNextFrame()
Dsimulated_capturer.h94 const AVPacketUniquePtr packet_; // Decoder input buffer. variable
/external/webrtc/call/
Dfake_network_pipe.h55 const uint8_t* data() const { return packet_.data(); } in data()
56 size_t data_length() const { return packet_.size(); } in data_length()
57 rtc::CopyOnWriteBuffer* raw_packet() { return &packet_; } in raw_packet()
72 rtc::CopyOnWriteBuffer packet_;
Dfake_network_pipe.cc40 : packet_(std::move(packet)), in NetworkPacket()
50 : packet_(std::move(o.packet_)), in NetworkPacket()
62 packet_ = std::move(o.packet_); in operator =()

12