Home
last modified time | relevance | path

Searched refs:packet_memory (Results 1 – 7 of 7) sorted by relevance

/external/webrtc/modules/audio_coding/neteq/tools/
Dconstant_pcm_packet_source.cc40 uint8_t* packet_memory = new uint8_t[packet_len_bytes_]; in NextPacket() local
43 packet_memory[kHeaderLenBytes + i] = encoded_sample_[i % 2]; in NextPacket()
44 WriteHeader(packet_memory); in NextPacket()
47 new Packet(packet_memory, packet_len_bytes_, next_arrival_time_ms_)); in NextPacket()
52 void ConstantPcmPacketSource::WriteHeader(uint8_t* packet_memory) { in WriteHeader() argument
53 packet_memory[0] = 0x80; in WriteHeader()
54 packet_memory[1] = static_cast<uint8_t>(payload_type_); in WriteHeader()
55 packet_memory[2] = seq_number_ >> 8; in WriteHeader()
56 packet_memory[3] = seq_number_ & 0xFF; in WriteHeader()
57 packet_memory[4] = timestamp_ >> 24; in WriteHeader()
[all …]
Dpacket.cc25 Packet::Packet(uint8_t* packet_memory, in Packet() argument
31 : payload_memory_(packet_memory), in Packet()
48 Packet::Packet(uint8_t* packet_memory, size_t allocated_bytes, double time_ms) in Packet() argument
49 : Packet(packet_memory, in Packet()
53 RtpUtility::RtpHeaderParser(packet_memory, allocated_bytes)) {} in Packet()
55 Packet::Packet(uint8_t* packet_memory, in Packet() argument
59 : Packet(packet_memory, in Packet()
63 RtpUtility::RtpHeaderParser(packet_memory, allocated_bytes)) {} in Packet()
Dpacket_unittest.cc45 uint8_t* packet_memory = new uint8_t[kPacketLengthBytes]; in TEST() local
51 packet_memory); in TEST()
54 Packet packet(packet_memory, kPacketLengthBytes, kPacketTime); in TEST()
73 uint8_t* packet_memory = new uint8_t[kPacketLengthBytes]; in TEST() local
79 packet_memory); in TEST()
82 Packet packet(packet_memory, kPacketLengthBytes, kVirtualPacketLengthBytes, in TEST()
136 uint8_t* packet_memory = new uint8_t[kPacketLengthBytes]; in TEST() local
142 packet_memory); in TEST()
148 &packet_memory[kHeaderLengthBytes]; // First byte after header. in TEST()
160 Packet packet(packet_memory, kPacketLengthBytes, kPacketTime); in TEST()
Drtp_file_source.cc65 std::unique_ptr<uint8_t[]> packet_memory(new uint8_t[temp_packet.length]); in NextPacket() local
66 memcpy(packet_memory.get(), temp_packet.data, temp_packet.length); in NextPacket()
67 RtpUtility::RtpHeaderParser parser(packet_memory.get(), temp_packet.length); in NextPacket()
69 packet_memory.release(), temp_packet.length, in NextPacket()
Dpacket.h43 Packet(uint8_t* packet_memory,
64 Packet(uint8_t* packet_memory, size_t allocated_bytes, double time_ms);
66 Packet(uint8_t* packet_memory,
Dconstant_pcm_packet_source.h37 void WriteHeader(uint8_t* packet_memory);
/external/webrtc/modules/audio_coding/acm2/
Dacm_send_test.cc144 uint8_t* packet_memory = new uint8_t[allocated_bytes]; in CreatePacket() local
146 packet_memory[0] = 0x80; in CreatePacket()
147 packet_memory[1] = static_cast<uint8_t>(payload_type_); in CreatePacket()
148 packet_memory[2] = (sequence_number_ >> 8) & 0xFF; in CreatePacket()
149 packet_memory[3] = (sequence_number_)&0xFF; in CreatePacket()
150 packet_memory[4] = (timestamp_ >> 24) & 0xFF; in CreatePacket()
151 packet_memory[5] = (timestamp_ >> 16) & 0xFF; in CreatePacket()
152 packet_memory[6] = (timestamp_ >> 8) & 0xFF; in CreatePacket()
153 packet_memory[7] = timestamp_ & 0xFF; in CreatePacket()
155 packet_memory[8] = 0x12; in CreatePacket()
[all …]