Home
last modified time | relevance | path

Searched refs:ByteWriter (Results 1 – 25 of 36) sorted by relevance

12

/external/webrtc/webrtc/modules/rtp_rtcp/source/
Dbyte_io_unittest.cc108 TestWrite<uint16_t, ByteWriter<uint16_t>::WriteBigEndian, in TEST_F()
114 TestWrite<uint32_t, ByteWriter<uint32_t, 3>::WriteBigEndian, 3>(true); in TEST_F()
120 TestWrite<uint32_t, ByteWriter<uint32_t>::WriteBigEndian, in TEST_F()
127 TestWrite<uint64_t, ByteWriter<uint64_t>::WriteBigEndian, in TEST_F()
134 TestWrite<int16_t, ByteWriter<int16_t>::WriteBigEndian, in TEST_F()
140 TestWrite<int32_t, ByteWriter<int32_t, 3>::WriteBigEndian, 3>(true); in TEST_F()
146 TestWrite<int32_t, ByteWriter<int32_t>::WriteBigEndian, in TEST_F()
153 TestWrite<int64_t, ByteWriter<int64_t>::WriteBigEndian, in TEST_F()
160 TestWrite<uint16_t, ByteWriter<uint16_t>::WriteLittleEndian, in TEST_F()
166 TestWrite<uint32_t, ByteWriter<uint32_t, 3>::WriteLittleEndian, 3>(false); in TEST_F()
[all …]
Dbyte_io.h175 class ByteWriter; variable
179 class ByteWriter<T, B, false> {
198 class ByteWriter<T, B, true> {
203 ByteWriter<U, B, false>::WriteBigEndian(data, ReinterpretAsUnsigned(val)); in WriteBigEndian()
207 ByteWriter<U, B, false>::WriteLittleEndian(data, in WriteLittleEndian()
263 class ByteWriter<T, 1, false> {
292 class ByteWriter<T, 2, false> {
324 class ByteWriter<T, 4, false> {
372 class ByteWriter<T, 8, false> {
Dfec_test_helper.cc90 ByteWriter<uint16_t>::WriteBigEndian(data + 2, header->sequenceNumber); in BuildRtpHeader()
91 ByteWriter<uint32_t>::WriteBigEndian(data + 4, header->timestamp); in BuildRtpHeader()
92 ByteWriter<uint32_t>::WriteBigEndian(data + 8, header->ssrc); in BuildRtpHeader()
Drtp_sender.cc1171 ByteWriter<uint16_t>::WriteBigEndian(header + 2, sequence_number); in CreateRtpHeader()
1172 ByteWriter<uint32_t>::WriteBigEndian(header + 4, timestamp); in CreateRtpHeader()
1173 ByteWriter<uint32_t>::WriteBigEndian(header + 8, ssrc); in CreateRtpHeader()
1179 ByteWriter<uint32_t>::WriteBigEndian(ptr, csrcs[i]); in CreateRtpHeader()
1241 ByteWriter<uint16_t>::WriteBigEndian(data_buffer, in BuildRTPHeaderExtension()
1286 ByteWriter<uint16_t>::WriteBigEndian(data_buffer + kPosLength, in BuildRTPHeaderExtension()
1321 ByteWriter<int32_t, 3>::WriteBigEndian(data_buffer + pos, in BuildTransmissionTimeOffsetExtension()
1383 ByteWriter<uint32_t, 3>::WriteBigEndian(data_buffer + pos, in BuildAbsoluteSendTimeExtension()
1437 ByteWriter<uint16_t>::WriteBigEndian(data_buffer + pos, sequence_number); in BuildTransportSequenceNumberExtension()
1535 ByteWriter<int32_t, 3>::WriteBigEndian(rtp_packet + offset + 1, in UpdateTransmissionTimeOffset()
[all …]
Drtcp_utility_unittest.cc108 ByteWriter<uint16_t>::WriteBigEndian(&buffer[2], kBlockSize); in TEST_F()
123 ByteWriter<uint16_t>::WriteBigEndian(&buffer[2], kBlockSize); in TEST_F()
Drtp_payload_registry_unittest.cc270 ByteWriter<uint16_t>::WriteBigEndian(packet + 2, 9999); in GenerateRtxPacket()
273 ByteWriter<uint32_t>::WriteBigEndian(packet + 8, 9999); in GenerateRtxPacket()
277 ByteWriter<uint16_t>::WriteBigEndian(packet + header_length, in GenerateRtxPacket()
Dforward_error_correction.cc233 ByteWriter<uint16_t>::WriteBigEndian( in GenerateFecBitStrings()
442 ByteWriter<uint16_t>::WriteBigEndian( in GenerateFecUlpHeaders()
681 ByteWriter<uint32_t>::WriteBigEndian(&recovered->pkt->data[8], in InitRecovery()
692 ByteWriter<uint16_t>::WriteBigEndian(&recovered->pkt->data[2], in FinishRecovery()
716 ByteWriter<uint16_t>::WriteBigEndian(media_payload_length, in XorPackets()
Drtp_sender_audio.cc305 ByteWriter<uint32_t>::WriteBigEndian(dataBuffer + rtpHeaderLength, in SendAudio()
451 ByteWriter<uint16_t>::WriteBigEndian(dtmfbuffer + 14, duration); in SendTelephoneEventPacket()
/external/webrtc/webrtc/modules/rtp_rtcp/source/rtcp_packet/
Dvoip_metric.cc79 ByteWriter<uint16_t>::WriteBigEndian(&buffer[2], kBlockLength); in Create()
80 ByteWriter<uint32_t>::WriteBigEndian(&buffer[4], ssrc_); in Create()
85 ByteWriter<uint16_t>::WriteBigEndian(&buffer[12], voip_metric_.burstDuration); in Create()
86 ByteWriter<uint16_t>::WriteBigEndian(&buffer[14], voip_metric_.gapDuration); in Create()
87 ByteWriter<uint16_t>::WriteBigEndian(&buffer[16], in Create()
89 ByteWriter<uint16_t>::WriteBigEndian(&buffer[18], in Create()
101 ByteWriter<uint16_t>::WriteBigEndian(&buffer[30], voip_metric_.JBnominal); in Create()
102 ByteWriter<uint16_t>::WriteBigEndian(&buffer[32], voip_metric_.JBmax); in Create()
103 ByteWriter<uint16_t>::WriteBigEndian(&buffer[34], voip_metric_.JBabsMax); in Create()
Dreport_block.cc70 ByteWriter<uint32_t>::WriteBigEndian(&buffer[0], source_ssrc()); in Create()
71 ByteWriter<uint8_t>::WriteBigEndian(&buffer[4], fraction_lost()); in Create()
72 ByteWriter<uint32_t, 3>::WriteBigEndian(&buffer[5], cumulative_lost()); in Create()
73 ByteWriter<uint32_t>::WriteBigEndian(&buffer[8], extended_high_seq_num()); in Create()
74 ByteWriter<uint32_t>::WriteBigEndian(&buffer[12], jitter()); in Create()
75 ByteWriter<uint32_t>::WriteBigEndian(&buffer[16], last_sr()); in Create()
76 ByteWriter<uint32_t>::WriteBigEndian(&buffer[20], delay_since_last_sr()); in Create()
Ddlrr.cc71 ByteWriter<uint16_t>::WriteBigEndian(&buffer[2], 3 * sub_blocks_.size()); in Create()
75 ByteWriter<uint32_t>::WriteBigEndian(&write_at[0], sub_block.ssrc); in Create()
76 ByteWriter<uint32_t>::WriteBigEndian(&write_at[4], sub_block.last_rr); in Create()
77 ByteWriter<uint32_t>::WriteBigEndian(&write_at[8], in Create()
Drrtr.cc43 ByteWriter<uint16_t>::WriteBigEndian(&buffer[2], kBlockLength); in Create()
44 ByteWriter<uint32_t>::WriteBigEndian(&buffer[4], ntp_.seconds()); in Create()
45 ByteWriter<uint32_t>::WriteBigEndian(&buffer[8], ntp_.fractions()); in Create()
Dpsfb.cc40 ByteWriter<uint32_t>::WriteBigEndian(&payload[0], sender_ssrc_); in CreateCommonFeedback()
41 ByteWriter<uint32_t>::WriteBigEndian(&payload[4], media_ssrc_); in CreateCommonFeedback()
Drtpfb.cc40 ByteWriter<uint32_t>::WriteBigEndian(&payload[0], sender_ssrc_); in CreateCommonFeedback()
41 ByteWriter<uint32_t>::WriteBigEndian(&payload[4], media_ssrc_); in CreateCommonFeedback()
Dapp.cc70 ByteWriter<uint32_t>::WriteBigEndian(&packet[*index + 0], ssrc_); in Create()
71 ByteWriter<uint32_t>::WriteBigEndian(&packet[*index + 4], name_); in Create()
Dbye.cc88 ByteWriter<uint32_t>::WriteBigEndian(&packet[*index], sender_ssrc_); in Create()
91 ByteWriter<uint32_t>::WriteBigEndian(&packet[*index], csrc); in Create()
Dtransport_feedback.cc583 ByteWriter<uint32_t>::WriteBigEndian(&packet[*position], packet_sender_ssrc_); in Create()
585 ByteWriter<uint32_t>::WriteBigEndian(&packet[*position], media_source_ssrc_); in Create()
589 ByteWriter<uint16_t>::WriteBigEndian(&packet[*position], base_seq_); in Create()
594 ByteWriter<uint16_t>::WriteBigEndian(&packet[*position], status_count); in Create()
597 ByteWriter<int32_t, 3>::WriteBigEndian(&packet[*position], in Create()
614 ByteWriter<int16_t>::WriteBigEndian(&packet[*position], delta); in Create()
Dnack.cc104 ByteWriter<uint16_t>::WriteBigEndian(packet + *index + 0, item.first_pid); in Create()
105 ByteWriter<uint16_t>::WriteBigEndian(packet + *index + 2, item.bitmask); in Create()
Dextended_jitter_report.cc86 ByteWriter<uint32_t>::WriteBigEndian(packet + *index, jitter); in Create()
Dreceiver_report.cc70 ByteWriter<uint32_t>::WriteBigEndian(packet + *index, sender_ssrc_); in Create()
Dsli.cc58 ByteWriter<uint32_t>::WriteBigEndian(buffer, item_); in Create()
/external/webrtc/webrtc/audio/
Daudio_receive_stream_unittest.cc169 ByteWriter<uint16_t>::WriteBigEndian(&(*it), kRtpOneByteHeaderExtensionId); in BuildOneByteExtension()
172 ByteWriter<uint16_t>::WriteBigEndian(&(*it), kOneByteExtensionLength / 4); in BuildOneByteExtension()
179 ByteWriter<uint32_t, kExtensionDataLength>::WriteBigEndian(&(*it), in BuildOneByteExtension()
194 ByteWriter<uint16_t>::WriteBigEndian(&header[2], 0x1234); // Sequence number. in CreateRtpHeaderWithOneByteExtension()
195 ByteWriter<uint32_t>::WriteBigEndian(&header[4], 0x5678); // Timestamp. in CreateRtpHeaderWithOneByteExtension()
196 ByteWriter<uint32_t>::WriteBigEndian(&header[8], 0x4321); // SSRC. in CreateRtpHeaderWithOneByteExtension()
/external/webrtc/webrtc/modules/rtp_rtcp/test/testAPI/
Dtest_api_video.cc89 ByteWriter<uint16_t>::WriteBigEndian(dataBuffer + 2, sequence_number); in BuildRTPheader()
90 ByteWriter<uint32_t>::WriteBigEndian(dataBuffer + 4, timestamp); in BuildRTPheader()
91 ByteWriter<uint32_t>::WriteBigEndian(dataBuffer + 8, 0x1234); // SSRC. in BuildRTPheader()
/external/webrtc/webrtc/test/fuzzers/
Dproducer_fec_fuzzer.cc37 ByteWriter<uint16_t>::WriteBigEndian(&packet[2], seq_num++); in FuzzOneInput()
/external/webrtc/webrtc/modules/rtp_rtcp/test/testFec/
Dtest_fec.cc257 ByteWriter<uint16_t>::WriteBigEndian(&mediaPacket->data[2], in TEST()
259 ByteWriter<uint32_t>::WriteBigEndian(&mediaPacket->data[4], in TEST()
261 ByteWriter<uint32_t>::WriteBigEndian(&mediaPacket->data[8], ssrc); in TEST()

12