Home | History | Annotate | Download | only in neteq

Lines Matching refs:payload

33     assert(red_packet->payload);
34 uint8_t* payload_ptr = red_packet->payload;
56 // Bits 1 through 7 are payload type.
63 payload_ptr += 1; // Advance to first payload byte.
70 // Bits 22 through 31 are payload length.
82 // Populate the new packets with payload data.
83 // |payload_ptr| now points at the first payload byte.
88 red_packet->payload + red_packet->payload_length) {
94 // Payload should not have been allocated yet.
95 assert(!(*new_it)->payload);
102 (*new_it)->payload = new uint8_t[payload_length];
103 memcpy((*new_it)->payload, payload_ptr, payload_length);
106 // Reverse the order of the new packets, so that the primary payload is
113 // Delete old packet payload.
114 delete [] (*it)->payload;
130 // Get codec type for this payload.
135 LOG(LS_WARNING) << "SplitFec unknown payload type";
149 !decoder->PacketHasFec(packet->payload, packet->payload_length)) {
157 // The main payload of this packet should be decoded as a primary
158 // payload, even if it comes as a secondary payload in a RED packet.
164 PacketDurationRedundant(packet->payload, packet->payload_length);
166 new_packet->payload = new uint8_t[packet->payload_length];
167 memcpy(new_packet->payload, packet->payload, packet->payload_length);
177 LOG(LS_WARNING) << "SplitFec wrong payload type";
202 // Discard this payload.
203 delete [] (*it)->payload;
225 // Get codec type for this payload.
229 LOG(LS_WARNING) << "SplitAudio unknown payload type";
305 LOG(LS_WARNING) << "SplitAudio too large iLBC payload";
317 LOG(LS_WARNING) << "SplitAudio invalid iLBC payload";
347 // Delete old packet payload.
348 delete [] (*it)->payload;
379 uint8_t* payload_ptr = packet->payload;
388 new_packet->payload = new uint8_t[split_size_bytes];
389 memcpy(new_packet->payload, payload_ptr, split_size_bytes);
401 new_packet->payload = new uint8_t[len];
402 memcpy(new_packet->payload, payload_ptr, len);
417 // Special case. Do not split the payload.
422 uint8_t* payload_ptr = packet->payload;
432 new_packet->payload = new uint8_t[bytes_per_frame];
433 memcpy(new_packet->payload, payload_ptr, bytes_per_frame);