Home
last modified time | relevance | path

Searched refs:rtp_payload (Results 1 – 25 of 27) sorted by relevance

12

/external/webrtc/modules/rtp_rtcp/source/
Dvideo_rtp_depacketizer_h264.cc63 rtc::CopyOnWriteBuffer rtp_payload) { in ProcessStapAOrSingleNalu() argument
64 const uint8_t* const payload_data = rtp_payload.cdata(); in ProcessStapAOrSingleNalu()
68 parsed_payload->video_payload = rtp_payload; in ProcessStapAOrSingleNalu()
78 const size_t nalu_length = rtp_payload.size() - kNalHeaderSize; in ProcessStapAOrSingleNalu()
83 if (rtp_payload.size() <= kStapAHeaderSize) { in ProcessStapAOrSingleNalu()
102 nalu_start_offsets.push_back(rtp_payload.size() + in ProcessStapAOrSingleNalu()
232 rtc::CopyOnWriteBuffer rtp_payload) { in ParseFuaNalu() argument
233 if (rtp_payload.size() < kFuAHeaderSize) { in ParseFuaNalu()
239 uint8_t fnri = rtp_payload.cdata()[0] & (kH264FBit | kH264NriMask); in ParseFuaNalu()
240 uint8_t original_nal_type = rtp_payload.cdata()[1] & kH264TypeMask; in ParseFuaNalu()
[all …]
Dvideo_rtp_depacketizer_vp8.cc135 VideoRtpDepacketizerVp8::Parse(rtc::CopyOnWriteBuffer rtp_payload) { in Parse() argument
136 rtc::ArrayView<const uint8_t> payload(rtp_payload.cdata(), in Parse()
137 rtp_payload.size()); in Parse()
142 RTC_DCHECK_LT(offset, rtp_payload.size()); in Parse()
144 rtp_payload.Slice(offset, rtp_payload.size() - offset); in Parse()
149 rtc::ArrayView<const uint8_t> rtp_payload, in ParseRtpPayload() argument
152 if (rtp_payload.empty()) { in ParseRtpPayload()
164 ParseVP8Descriptor(&vp8_header, rtp_payload.data(), rtp_payload.size()); in ParseRtpPayload()
173 int vp8_payload_size = rtp_payload.size() - descriptor_size; in ParseRtpPayload()
178 const uint8_t* vp8_payload = rtp_payload.data() + descriptor_size; in ParseRtpPayload()
Dvideo_rtp_depacketizer_generic_unittest.cc28 rtc::CopyOnWriteBuffer rtp_payload(kPayload); in TEST() local
32 depacketizer.Parse(rtp_payload); in TEST()
42 rtc::CopyOnWriteBuffer rtp_payload(kPayload); in TEST() local
46 depacketizer.Parse(rtp_payload); in TEST()
58 rtc::CopyOnWriteBuffer rtp_payload(kPayload); in TEST() local
62 depacketizer.Parse(rtp_payload); in TEST()
67 EXPECT_EQ(parsed->video_payload.cdata(), rtp_payload.cdata() + 1); in TEST()
Dvideo_rtp_depacketizer_raw_unittest.cc24 rtc::CopyOnWriteBuffer rtp_payload(kPayload); in TEST() local
28 depacketizer.Parse(rtp_payload); in TEST()
31 EXPECT_EQ(parsed->video_payload.size(), rtp_payload.size()); in TEST()
34 EXPECT_EQ(parsed->video_payload.cdata(), rtp_payload.cdata()); in TEST()
39 rtc::CopyOnWriteBuffer rtp_payload(kPayload); in TEST() local
43 depacketizer.Parse(rtp_payload); in TEST()
Dvideo_rtp_depacketizer_generic.cc37 VideoRtpDepacketizerGeneric::Parse(rtc::CopyOnWriteBuffer rtp_payload) { in Parse() argument
38 if (rtp_payload.size() == 0) { in Parse()
43 const uint8_t* payload_data = rtp_payload.cdata(); in Parse()
58 if (rtp_payload.size() < offset + kExtendedHeaderLength) { in Parse()
69 rtp_payload.Slice(offset, rtp_payload.size() - offset); in Parse()
Dvideo_rtp_depacketizer_h264_unittest.cc56 rtc::CopyOnWriteBuffer rtp_payload(packet); in TEST() local
60 depacketizer.Parse(rtp_payload); in TEST()
63 EXPECT_EQ(parsed->video_payload, rtp_payload); in TEST()
77 rtc::CopyOnWriteBuffer rtp_payload(packet); in TEST() local
81 depacketizer.Parse(rtp_payload); in TEST()
84 EXPECT_EQ(parsed->video_payload, rtp_payload); in TEST()
112 rtc::CopyOnWriteBuffer rtp_payload(packet); in TEST() local
116 depacketizer.Parse(rtp_payload); in TEST()
119 EXPECT_EQ(parsed->video_payload, rtp_payload); in TEST()
147 rtc::CopyOnWriteBuffer rtp_payload(packet); in TEST() local
[all …]
Dvideo_rtp_depacketizer_vp9.cc150 VideoRtpDepacketizerVp9::Parse(rtc::CopyOnWriteBuffer rtp_payload) { in Parse() argument
152 int offset = ParseRtpPayload(rtp_payload, &result->video_header); in Parse()
155 RTC_DCHECK_LT(offset, rtp_payload.size()); in Parse()
157 rtp_payload.Slice(offset, rtp_payload.size() - offset); in Parse()
162 rtc::ArrayView<const uint8_t> rtp_payload, in ParseRtpPayload() argument
166 BitstreamReader parser(rtp_payload); in ParseRtpPayload()
224 return rtp_payload.size() - num_remaining_bits / 8; in ParseRtpPayload()
Drtp_format_vp8_test_helper.h43 int CheckHeader(rtc::ArrayView<const uint8_t> rtp_payload, bool first);
44 void CheckPictureID(rtc::ArrayView<const uint8_t> rtp_payload, int* offset);
45 void CheckTl0PicIdx(rtc::ArrayView<const uint8_t> rtp_payload, int* offset);
46 void CheckTIDAndKeyIdx(rtc::ArrayView<const uint8_t> rtp_payload,
Dvideo_rtp_depacketizer_av1.cc189 for (rtc::ArrayView<const uint8_t> rtp_payload : rtp_payloads) { in ParseObus()
191 reinterpret_cast<const char*>(rtp_payload.data()), rtp_payload.size()); in ParseObus()
372 VideoRtpDepacketizerAv1::Parse(rtc::CopyOnWriteBuffer rtp_payload) { in Parse() argument
373 if (rtp_payload.size() == 0) { in Parse()
377 uint8_t aggregation_header = rtp_payload.cdata()[0]; in Parse()
387 parsed->video_payload = std::move(rtp_payload); in Parse()
Drtp_format_vp8_test_helper.cc66 auto rtp_payload = packet.payload(); in GetAllPacketsAndCheck() local
67 EXPECT_EQ(rtp_payload.size(), expected_sizes[i]); in GetAllPacketsAndCheck()
69 int payload_offset = CheckHeader(rtp_payload, /*first=*/i == 0); in GetAllPacketsAndCheck()
72 auto vp8_payload = rtp_payload.subview(payload_offset); in GetAllPacketsAndCheck()
Dvideo_rtp_depacketizer_raw.cc22 VideoRtpDepacketizerRaw::Parse(rtc::CopyOnWriteBuffer rtp_payload) { in Parse() argument
24 parsed->video_payload = std::move(rtp_payload); in Parse()
Dvideo_rtp_depacketizer_vp9.h33 static int ParseRtpPayload(rtc::ArrayView<const uint8_t> rtp_payload,
37 rtc::CopyOnWriteBuffer rtp_payload) override;
Dvideo_rtp_depacketizer_vp8.h33 static int ParseRtpPayload(rtc::ArrayView<const uint8_t> rtp_payload,
37 rtc::CopyOnWriteBuffer rtp_payload) override;
Dvideo_rtp_depacketizer_vp8_unittest.cc226 rtc::CopyOnWriteBuffer rtp_payload(packet); in TEST() local
229 depacketizer.Parse(rtp_payload); in TEST()
232 EXPECT_EQ(parsed->video_payload.size(), rtp_payload.size() - kHeaderSize); in TEST()
234 EXPECT_EQ(parsed->video_payload.cdata(), rtp_payload.cdata() + kHeaderSize); in TEST()
Dvideo_rtp_depacketizer_av1_unittest.cc31 rtc::CopyOnWriteBuffer rtp_payload(packet); in TEST() local
34 depacketizer.Parse(rtp_payload); in TEST()
37 EXPECT_TRUE(parsed->video_payload.cdata() == rtp_payload.cdata()); in TEST()
65 rtc::CopyOnWriteBuffer rtp_payload(packet); in TEST() local
68 depacketizer.Parse(rtp_payload); in TEST()
Drtp_format_vp9_unittest.cc160 auto rtp_payload = packet_.payload(); in CreateParseAndCheckPackets() local
161 EXPECT_EQ(expected_sizes[i], rtp_payload.size()); in CreateParseAndCheckPackets()
165 ParseAndCheckPacket(rtp_payload.data(), hdr, expected_hdr_sizes[i], in CreateParseAndCheckPackets()
166 rtp_payload.size()); in CreateParseAndCheckPackets()
167 CheckPayload(rtp_payload.data(), expected_hdr_sizes[i], in CreateParseAndCheckPackets()
168 rtp_payload.size(), (i + 1) == expected_sizes.size()); in CreateParseAndCheckPackets()
Drtp_packetizer_av1.cc365 uint8_t* const rtp_payload = in NextPacket() local
367 uint8_t* write_at = rtp_payload; in NextPacket()
410 RTC_DCHECK_EQ(write_at - rtp_payload + fragment_size, in NextPacket()
417 RTC_DCHECK_EQ(write_at - rtp_payload, in NextPacket()
Dfec_test_helper.cc219 uint8_t* rtp_payload = red_packet.AllocatePayload(packet.data.size() + 1); in BuildUlpfecRedPacket() local
220 rtp_payload[0] = kFecPayloadType; in BuildUlpfecRedPacket()
222 memcpy(rtp_payload + 1, packet.data.cdata(), packet.data.size()); in BuildUlpfecRedPacket()
Dvideo_rtp_depacketizer_vp9_unittest.cc362 rtc::CopyOnWriteBuffer rtp_payload(packet); in TEST() local
365 depacketizer.Parse(rtp_payload); in TEST()
368 EXPECT_EQ(parsed->video_payload.size(), rtp_payload.size() - kHeaderSize); in TEST()
370 EXPECT_EQ(parsed->video_payload.cdata(), rtp_payload.cdata() + kHeaderSize); in TEST()
Dvideo_rtp_depacketizer_generic.h25 rtc::CopyOnWriteBuffer rtp_payload) override;
Dvideo_rtp_depacketizer_raw.h25 rtc::CopyOnWriteBuffer rtp_payload) override;
Dvideo_rtp_depacketizer_h264.h24 rtc::CopyOnWriteBuffer rtp_payload) override;
Dvideo_rtp_depacketizer.h34 rtc::CopyOnWriteBuffer rtp_payload) = 0;
Dvideo_rtp_depacketizer_av1.h38 rtc::CopyOnWriteBuffer rtp_payload) override;
Drtp_format_vp9.h61 rtc::ArrayView<uint8_t> rtp_payload) const;

12