Home
last modified time | relevance | path

Searched refs:payload_ptr (Results 1 – 6 of 6) sorted by relevance

/external/webrtc/webrtc/modules/audio_coding/neteq/
Dpayload_splitter.cc34 uint8_t* payload_ptr = red_packet->payload; in SplitRed() local
55 last_block = ((*payload_ptr & 0x80) == 0); in SplitRed()
57 new_packet->header.payloadType = payload_ptr[0] & 0x7F; in SplitRed()
63 payload_ptr += 1; // Advance to first payload byte. in SplitRed()
66 int timestamp_offset = (payload_ptr[1] << 6) + in SplitRed()
67 ((payload_ptr[2] & 0xFC) >> 2); in SplitRed()
71 new_packet->payload_length = ((payload_ptr[2] & 0x03) << 8) + in SplitRed()
72 payload_ptr[3]; in SplitRed()
74 payload_ptr += 4; // Advance to next RED header. in SplitRed()
87 if (payload_ptr + payload_length > in SplitRed()
[all …]
Dpayload_splitter_unittest.cc86 uint8_t* payload_ptr = payload; in CreateRedPayload() local
91 *payload_ptr = payload_types[i] & 0x7F; // F = 0; in CreateRedPayload()
92 ++payload_ptr; in CreateRedPayload()
95 *payload_ptr = payload_types[i] & 0x7F; in CreateRedPayload()
97 *payload_ptr |= 0x80; in CreateRedPayload()
98 ++payload_ptr; in CreateRedPayload()
100 *payload_ptr = this_offset >> 6; in CreateRedPayload()
101 ++payload_ptr; in CreateRedPayload()
103 *payload_ptr = ((this_offset & 0x3F) << 2) | (kPayloadLength >> 8); in CreateRedPayload()
104 ++payload_ptr; in CreateRedPayload()
[all …]
Ddtmf_buffer_unittest.cc69 uint8_t* payload_ptr = reinterpret_cast<uint8_t*>(&payload); in TEST() local
72 DtmfBuffer::ParseEvent(timestamp, payload_ptr, sizeof(payload), in TEST()
81 DtmfBuffer::ParseEvent(timestamp, payload_ptr, 3, &event)); in TEST()
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/
Dpacket.cc91 const uint8_t* payload_ptr = payload_; in ExtractRedHeaders() local
92 const uint8_t* payload_end_ptr = payload_ptr + payload_length_bytes_; in ExtractRedHeaders()
96 while ((payload_ptr < payload_end_ptr) && (*payload_ptr & 0x80)) { in ExtractRedHeaders()
99 header->payloadType = payload_ptr[0] & 0x7F; in ExtractRedHeaders()
100 uint32_t offset = (payload_ptr[1] << 6) + ((payload_ptr[2] & 0xFC) >> 2); in ExtractRedHeaders()
103 payload_ptr += 4; in ExtractRedHeaders()
106 assert(payload_ptr < payload_end_ptr); in ExtractRedHeaders()
107 if (payload_ptr >= payload_end_ptr) { in ExtractRedHeaders()
112 header->payloadType = payload_ptr[0] & 0x7F; in ExtractRedHeaders()
Dpacket_unittest.cc149 uint8_t* payload_ptr = in TEST() local
157 payload_ptr += MakeRedHeader( in TEST()
158 payload_type, timestamp_offset, block_length, last_block, payload_ptr); in TEST()
Dneteq_rtpplay.cc548 const uint8_t* payload_ptr = packet->payload(); in main() local
558 payload_ptr = payload.get(); in main()
561 rtp_header, rtc::ArrayView<const uint8_t>(payload_ptr, payload_len), in main()