/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
fec_test_helper.cc | 49 RtpPacket* red_packet = new RtpPacket; local 50 red_packet->header = packet->header; 51 red_packet->length = packet->length + 1; // 1 byte RED header. 52 memset(red_packet->data, 0, red_packet->length); 54 memcpy(red_packet->data, packet->data, kHeaderLength); 55 SetRedHeader(red_packet, red_packet->data[1] & 0x7f, kHeaderLength); 56 memcpy(red_packet->data + kHeaderLength + 1, packet->data + kHeaderLength, 58 return red_packet; 67 RtpPacket* red_packet = NextPacket(0, packet->length + 1); local [all...] |
fec_receiver_unittest.cc | 71 RtpPacket* red_packet = generator_->BuildMediaRedPacket(packet); local 73 red_packet->header.header, red_packet->data, 74 red_packet->length, kFecPayloadType)); 75 delete red_packet; 79 RtpPacket* red_packet = generator_->BuildFecRedPacket(packet); local 81 red_packet->header.header, red_packet->data, 82 red_packet->length, kFecPayloadType)); 83 delete red_packet; [all...] |
producer_fec.cc | 127 RedPacket* red_packet = new RedPacket( local 130 red_packet->CreateHeader(data_buffer, rtp_header_length, 132 red_packet->AssignPayload(data_buffer + rtp_header_length, payload_length); 133 return red_packet; 229 RedPacket* red_packet = new RedPacket( local 231 red_packet->CreateHeader(last_media_packet->data, rtp_header_length, 233 red_packet->SetSeqNum(sequence_number++); 234 red_packet->ClearMarkerBit(); 235 red_packet->AssignPayload(packet_to_send->data, packet_to_send->length); 237 fec_packets.push_back(red_packet); [all...] |
rtp_sender_video.cc | 125 rtc::scoped_ptr<RedPacket> red_packet; local 132 red_packet.reset(producer_fec_.BuildRedPacket( 151 red_packet->data(), red_packet->length() - rtp_header_length, 154 _videoBitrate.Update(red_packet->length());
|
/external/webrtc/webrtc/modules/audio_coding/neteq/ |
payload_splitter.cc | 32 Packet* red_packet = (*it); local 33 assert(red_packet->payload); 34 uint8_t* payload_ptr = red_packet->payload; 53 new_packet->header = red_packet->header; 61 new_packet->payload_length = red_packet->payload_length - sum_length; 68 new_packet->header.timestamp = red_packet->header.timestamp - 88 red_packet->payload + red_packet->payload_length) {
|