/external/openscreen/util/ |
D | big_endian_unittest.cc | 22 EXPECT_EQ(UINT8_C(0x05), ReadBigEndian<uint8_t>(kInput + 5)); in TEST() 23 EXPECT_EQ(UINT8_C(0xff), ReadBigEndian<uint8_t>(kInput + 16)); in TEST() 24 EXPECT_EQ(7, ReadBigEndian<int8_t>(kInput + 7)); in TEST() 25 EXPECT_EQ(-1, ReadBigEndian<int8_t>(kInput + 17)); in TEST() 27 EXPECT_EQ(UINT16_C(0x0001), ReadBigEndian<uint16_t>(kInput)); in TEST() 28 EXPECT_EQ(UINT16_C(0x0102), ReadBigEndian<uint16_t>(kInput + 1)); in TEST() 29 EXPECT_EQ(UINT16_C(0x0203), ReadBigEndian<uint16_t>(kInput + 2)); in TEST() 30 EXPECT_EQ(-1, ReadBigEndian<int16_t>(kInput + 16)); in TEST() 31 EXPECT_EQ(-2, ReadBigEndian<int16_t>(kInput + 17)); in TEST() 33 EXPECT_EQ(UINT32_C(0x03040506), ReadBigEndian<uint32_t>(kInput + 3)); in TEST() [all …]
|
/external/webrtc/modules/rtp_rtcp/source/ |
D | byte_io_unittest.cc | 131 TestRead<uint16_t, ByteReader<uint16_t>::ReadBigEndian, sizeof(uint16_t)>( in TEST_F() 138 TestRead<uint32_t, ByteReader<uint32_t, 3>::ReadBigEndian, 3>(true); in TEST_F() 143 TestRead<uint32_t, ByteReader<uint32_t>::ReadBigEndian, sizeof(uint32_t)>( in TEST_F() 150 TestRead<uint64_t, ByteReader<uint64_t>::ReadBigEndian, sizeof(uint64_t)>( in TEST_F() 157 TestRead<int16_t, ByteReader<int16_t>::ReadBigEndian, sizeof(int16_t)>(true); in TEST_F() 163 TestRead<int32_t, ByteReader<int32_t, 3>::ReadBigEndian, 3>(true); in TEST_F() 168 TestRead<int32_t, ByteReader<int32_t>::ReadBigEndian, sizeof(int32_t)>(true); in TEST_F() 174 TestRead<int64_t, ByteReader<int64_t>::ReadBigEndian, sizeof(int64_t)>(true); in TEST_F() 235 uint64_t value = ByteReader<uint64_t, 2>::ReadBigEndian(data); in TEST() 237 value = ByteReader<uint64_t, 3>::ReadBigEndian(data); in TEST() [all …]
|
D | flexfec_header_reader_writer.cc | 103 uint8_t ssrc_count = ByteReader<uint8_t>::ReadBigEndian(&data[8]); in ReadFecHeader() 110 uint32_t protected_ssrc = ByteReader<uint32_t>::ReadBigEndian(&data[12]); in ReadFecHeader() 111 uint16_t seq_num_base = ByteReader<uint16_t>::ReadBigEndian(&data[16]); in ReadFecHeader() 129 uint16_t mask_part0 = ByteReader<uint16_t>::ReadBigEndian(&packet_mask[0]); in ReadFecHeader() 150 uint32_t mask_part1 = ByteReader<uint32_t>::ReadBigEndian(&packet_mask[2]); in ReadFecHeader() 183 ByteReader<uint64_t>::ReadBigEndian(&packet_mask[6]); in ReadFecHeader() 268 ByteReader<uint16_t>::ReadBigEndian(&packet_mask[0]); in FinalizeFecHeader() 270 ByteReader<uint32_t>::ReadBigEndian(&packet_mask[2]); in FinalizeFecHeader() 296 ByteReader<uint16_t>::ReadBigEndian(&packet_mask[0]); in FinalizeFecHeader()
|
D | rtp_header_extensions.cc | 49 *time_24bits = ByteReader<uint32_t, 3>::ReadBigEndian(data.data()); in Parse() 110 ByteReader<uint64_t>::ReadBigEndian(data.data()); in Parse() 114 ByteReader<int64_t>::ReadBigEndian(data.data() + 8); in Parse() 213 *rtp_time = ByteReader<int32_t, 3>::ReadBigEndian(data.data()); in Parse() 239 *transport_sequence_number = ByteReader<uint16_t>::ReadBigEndian(data.data()); in Parse() 282 *transport_sequence_number = ByteReader<uint16_t>::ReadBigEndian(data.data()); in Parse() 287 ByteReader<uint16_t>::ReadBigEndian(data.data() + 2); in Parse() 378 uint32_t raw = ByteReader<uint32_t, 3>::ReadBigEndian(data.data()); in Parse() 476 timing->flags = ByteReader<uint8_t>::ReadBigEndian(data.data()); in Parse() 482 timing->encode_start_delta_ms = ByteReader<uint16_t>::ReadBigEndian( in Parse() [all …]
|
D | rtp_utility.cc | 150 uint32_t SSRC = ByteReader<uint32_t>::ReadBigEndian(ptr); in ParseRtcp() 184 uint32_t RTPTimestamp = ByteReader<uint32_t>::ReadBigEndian(ptr); in Parse() 187 uint32_t SSRC = ByteReader<uint32_t>::ReadBigEndian(ptr); in Parse() 211 uint32_t CSRC = ByteReader<uint32_t>::ReadBigEndian(ptr); in Parse() 264 uint16_t definedByProfile = ByteReader<uint16_t>::ReadBigEndian(ptr); in Parse() 268 size_t XLen = ByteReader<uint16_t>::ReadBigEndian(ptr); in Parse() 363 ByteReader<int32_t, 3>::ReadBigEndian(ptr); in ParseOneByteExtensionHeader() 395 ByteReader<uint32_t, 3>::ReadBigEndian(ptr); in ParseOneByteExtensionHeader()
|
D | byte_io.h | 77 static T ReadBigEndian(const uint8_t* data) { in ReadBigEndian() function 109 static T ReadBigEndian(const uint8_t* data) { in ReadBigEndian() function 110 U unsigned_val = ByteReader<T, B, false>::ReadBigEndian(data); in ReadBigEndian() 249 static T ReadBigEndian(const uint8_t* data) { 278 static T ReadBigEndian(const uint8_t* data) { 309 static T ReadBigEndian(const uint8_t* data) { 352 static T ReadBigEndian(const uint8_t* data) {
|
D | rtp_packet.cc | 108 ByteReader<uint32_t>::ReadBigEndian(&data()[kFixedHeaderSize + i * 4]); in Csrcs() 265 ByteReader<uint16_t>::ReadBigEndian(data() + extensions_offset - 4); in AllocateRawExtension() 344 RTC_CHECK_EQ(kOneByteExtensionProfileId, ByteReader<uint16_t>::ReadBigEndian( in PromoteToTwoByteHeaderExtension() 459 sequence_number_ = ByteReader<uint16_t>::ReadBigEndian(&buffer[2]); in ParseBuffer() 460 timestamp_ = ByteReader<uint32_t>::ReadBigEndian(&buffer[4]); in ParseBuffer() 461 ssrc_ = ByteReader<uint32_t>::ReadBigEndian(&buffer[8]); in ParseBuffer() 494 ByteReader<uint16_t>::ReadBigEndian(&buffer[payload_offset_]); in ParseBuffer() 496 ByteReader<uint16_t>::ReadBigEndian(&buffer[payload_offset_ + 2]); in ParseBuffer()
|
D | ulpfec_header_reader_writer_unittest.cc | 161 EXPECT_EQ(kMediaStartSeqNum, ByteReader<uint16_t>::ReadBigEndian(packet + 2)); in TEST() 164 ByteReader<uint16_t>::ReadBigEndian(packet + 10)); in TEST() 185 EXPECT_EQ(kMediaStartSeqNum, ByteReader<uint16_t>::ReadBigEndian(packet + 2)); in TEST() 188 ByteReader<uint16_t>::ReadBigEndian(packet + 10)); in TEST()
|
/external/webrtc/modules/rtp_rtcp/source/rtcp_packet/ |
D | report_block.cc | 55 source_ssrc_ = ByteReader<uint32_t>::ReadBigEndian(&buffer[0]); in Parse() 57 cumulative_lost_ = ByteReader<int32_t, 3>::ReadBigEndian(&buffer[5]); in Parse() 58 extended_high_seq_num_ = ByteReader<uint32_t>::ReadBigEndian(&buffer[8]); in Parse() 59 jitter_ = ByteReader<uint32_t>::ReadBigEndian(&buffer[12]); in Parse() 60 last_sr_ = ByteReader<uint32_t>::ReadBigEndian(&buffer[16]); in Parse() 61 delay_since_last_sr_ = ByteReader<uint32_t>::ReadBigEndian(&buffer[20]); in Parse()
|
D | sender_report.cc | 64 SetSenderSsrc(ByteReader<uint32_t>::ReadBigEndian(&payload[0])); in Parse() 65 uint32_t secs = ByteReader<uint32_t>::ReadBigEndian(&payload[4]); in Parse() 66 uint32_t frac = ByteReader<uint32_t>::ReadBigEndian(&payload[8]); in Parse() 68 rtp_timestamp_ = ByteReader<uint32_t>::ReadBigEndian(&payload[12]); in Parse() 69 sender_packet_count_ = ByteReader<uint32_t>::ReadBigEndian(&payload[16]); in Parse() 70 sender_octet_count_ = ByteReader<uint32_t>::ReadBigEndian(&payload[20]); in Parse()
|
D | dlrr.cc | 47 ByteReader<uint16_t>::ReadBigEndian(&buffer[2])); in Parse() 57 sub_block.ssrc = ByteReader<uint32_t>::ReadBigEndian(&read_at[0]); in Parse() 58 sub_block.last_rr = ByteReader<uint32_t>::ReadBigEndian(&read_at[4]); in Parse() 60 ByteReader<uint32_t>::ReadBigEndian(&read_at[8]); in Parse()
|
D | rrtr.cc | 33 RTC_DCHECK(ByteReader<uint16_t>::ReadBigEndian(&buffer[2]) == kBlockLength); in Parse() 34 uint32_t seconds = ByteReader<uint32_t>::ReadBigEndian(&buffer[4]); in Parse() 35 uint32_t fraction = ByteReader<uint32_t>::ReadBigEndian(&buffer[8]); in Parse()
|
D | loss_notification.cc | 103 if (ByteReader<uint32_t>::ReadBigEndian(&payload[8]) != kUniqueIdentifier) { in Parse() 109 last_decoded_ = ByteReader<uint16_t>::ReadBigEndian(&payload[12]); in Parse() 112 ByteReader<uint16_t>::ReadBigEndian(&payload[14]); in Parse()
|
D | rtpfb.cc | 35 SetSenderSsrc(ByteReader<uint32_t>::ReadBigEndian(&payload[0])); in ParseCommonFeedback() 36 SetMediaSsrc(ByteReader<uint32_t>::ReadBigEndian(&payload[4])); in ParseCommonFeedback()
|
D | psfb.cc | 37 SetSenderSsrc(ByteReader<uint32_t>::ReadBigEndian(&payload[0])); in ParseCommonFeedback() 38 SetMediaSsrc(ByteReader<uint32_t>::ReadBigEndian(&payload[4])); in ParseCommonFeedback()
|
D | remb.cc | 58 if (kUniqueIdentifier != ByteReader<uint32_t>::ReadBigEndian(&payload[8])) { in Parse() 72 ByteReader<uint16_t>::ReadBigEndian(&payload[14]); in Parse() 86 ssrcs_.push_back(ByteReader<uint32_t>::ReadBigEndian(next_ssrc)); in Parse()
|
D | tmmb_item.cc | 32 ssrc_ = ByteReader<uint32_t>::ReadBigEndian(&buffer[0]); in Parse() 34 uint32_t compact = ByteReader<uint32_t>::ReadBigEndian(&buffer[4]); in Parse()
|
D | extended_reports.cc | 59 SetSenderSsrc(ByteReader<uint32_t>::ReadBigEndian(packet.payload())); in Parse() 69 uint8_t block_type = ByteReader<uint8_t>::ReadBigEndian(current_block); in Parse() 71 ByteReader<uint16_t>::ReadBigEndian(current_block + 2); in Parse()
|
D | app.cc | 56 SetSenderSsrc(ByteReader<uint32_t>::ReadBigEndian(&packet.payload()[0])); in Parse() 57 name_ = ByteReader<uint32_t>::ReadBigEndian(&packet.payload()[4]); in Parse()
|
D | fir.cc | 75 request.ssrc = ByteReader<uint32_t>::ReadBigEndian(next_fci); in Parse() 76 request.seq_nr = ByteReader<uint8_t>::ReadBigEndian(next_fci + 4); in Parse()
|
D | target_bitrate.cc | 73 RTC_DCHECK_EQ(block_length, ByteReader<uint16_t>::ReadBigEndian(&block[2])); in Parse() 84 ByteReader<uint32_t, 3>::ReadBigEndian(&block[index + 1]); in Parse()
|
/external/webrtc/test/fuzzers/ |
D | congestion_controller_feedback_fuzzer.cc | 27 header.ssrc = ByteReader<uint32_t>::ReadBigEndian(&data[i]); in FuzzOneInput() 31 std::max<int64_t>(ByteReader<int64_t>::ReadBigEndian(&data[i]), 0), in FuzzOneInput() 37 size_t payload_size = ByteReader<size_t>::ReadBigEndian(&data[i]) % 1500; in FuzzOneInput() 40 ByteReader<uint16_t>::ReadBigEndian(&data[i]); in FuzzOneInput() 44 arrival_time_ms += ByteReader<uint8_t>::ReadBigEndian(&data[i]); in FuzzOneInput()
|
/external/webrtc/modules/video_coding/codecs/multiplex/ |
D | multiplex_encoded_image_packer.cc | 47 header.component_count = ByteReader<uint8_t>::ReadBigEndian(buffer + offset); in UnpackHeader() 50 header.image_index = ByteReader<uint16_t>::ReadBigEndian(buffer + offset); in UnpackHeader() 54 ByteReader<uint16_t>::ReadBigEndian(buffer + offset); in UnpackHeader() 58 ByteReader<uint32_t>::ReadBigEndian(buffer + offset); in UnpackHeader() 62 ByteReader<uint32_t>::ReadBigEndian(buffer + offset); in UnpackHeader() 104 ByteReader<uint32_t>::ReadBigEndian(buffer + offset); in UnpackFrameHeader() 108 ByteReader<uint8_t>::ReadBigEndian(buffer + offset); in UnpackFrameHeader() 112 ByteReader<uint32_t>::ReadBigEndian(buffer + offset); in UnpackFrameHeader() 116 ByteReader<uint32_t>::ReadBigEndian(buffer + offset); in UnpackFrameHeader() 122 ByteReader<uint8_t>::ReadBigEndian(buffer + offset)); in UnpackFrameHeader() [all …]
|
/external/openscreen/cast/streaming/ |
D | packet_util.cc | 22 Ssrc{ReadBigEndian<uint32_t>(packet.data() + kOffsetToSsrcField)}); in InspectPacketForRouting() 35 Ssrc{ReadBigEndian<uint32_t>(packet.data() + kRtcpCommonHeaderSize)}); in InspectPacketForRouting()
|
/external/libchrome/base/ |
D | big_endian.h | 22 inline void ReadBigEndian(const char buf[], T* out) { in ReadBigEndian() function 43 inline void ReadBigEndian<uint8_t>(const char buf[], uint8_t* out) {
|