| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 // Receive statistics will be reset if the payload type changes (make sure | 355 // Receive statistics will be reset if the payload type changes (make sure |
| 356 // that the first packet is included in the stats). | 356 // that the first packet is included in the stats). |
| 357 rtp_receive_statistics_->IncomingPacket( | 357 rtp_receive_statistics_->IncomingPacket( |
| 358 header, packet.size(), IsPacketRetransmitted(header, in_order)); | 358 header, packet.size(), IsPacketRetransmitted(header, in_order)); |
| 359 } | 359 } |
| 360 | 360 |
| 361 int32_t RtpStreamReceiver::RequestKeyFrame() { | 361 int32_t RtpStreamReceiver::RequestKeyFrame() { |
| 362 return rtp_rtcp_->RequestKeyFrame(); | 362 return rtp_rtcp_->RequestKeyFrame(); |
| 363 } | 363 } |
| 364 | 364 |
| 365 int32_t RtpStreamReceiver::SliceLossIndicationRequest( | |
| 366 const uint64_t picture_id) { | |
| 367 return rtp_rtcp_->SendRTCPSliceLossIndication( | |
| 368 static_cast<uint8_t>(picture_id)); | |
| 369 } | |
| 370 | |
| 371 bool RtpStreamReceiver::IsUlpfecEnabled() const { | 365 bool RtpStreamReceiver::IsUlpfecEnabled() const { |
| 372 return config_.rtp.ulpfec.ulpfec_payload_type != -1; | 366 return config_.rtp.ulpfec.ulpfec_payload_type != -1; |
| 373 } | 367 } |
| 374 | 368 |
| 375 bool RtpStreamReceiver::IsRedEnabled() const { | 369 bool RtpStreamReceiver::IsRedEnabled() const { |
| 376 return config_.rtp.ulpfec.red_payload_type != -1; | 370 return config_.rtp.ulpfec.red_payload_type != -1; |
| 377 } | 371 } |
| 378 | 372 |
| 379 bool RtpStreamReceiver::IsRetransmissionsEnabled() const { | 373 bool RtpStreamReceiver::IsRetransmissionsEnabled() const { |
| 380 return config_.rtp.nack.rtp_history_ms > 0; | 374 return config_.rtp.nack.rtp_history_ms > 0; |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 return; | 651 return; |
| 658 | 652 |
| 659 if (!sprop_decoder.DecodeSprop(sprop_base64_it->second.c_str())) | 653 if (!sprop_decoder.DecodeSprop(sprop_base64_it->second.c_str())) |
| 660 return; | 654 return; |
| 661 | 655 |
| 662 tracker_.InsertSpsPpsNalus(sprop_decoder.sps_nalu(), | 656 tracker_.InsertSpsPpsNalus(sprop_decoder.sps_nalu(), |
| 663 sprop_decoder.pps_nalu()); | 657 sprop_decoder.pps_nalu()); |
| 664 } | 658 } |
| 665 | 659 |
| 666 } // namespace webrtc | 660 } // namespace webrtc |
| OLD | NEW |