| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/cast/video_receiver/video_receiver.h" | 5 #include "media/cast/video_receiver/video_receiver.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 // Used to pass payload data into the video receiver. | 32 // Used to pass payload data into the video receiver. |
| 33 class LocalRtpVideoData : public RtpData { | 33 class LocalRtpVideoData : public RtpData { |
| 34 public: | 34 public: |
| 35 explicit LocalRtpVideoData(VideoReceiver* video_receiver) | 35 explicit LocalRtpVideoData(VideoReceiver* video_receiver) |
| 36 : video_receiver_(video_receiver) {} | 36 : video_receiver_(video_receiver) {} |
| 37 | 37 |
| 38 virtual ~LocalRtpVideoData() {} | 38 virtual ~LocalRtpVideoData() {} |
| 39 | 39 |
| 40 virtual void OnReceivedPayloadData(const uint8* payload_data, | 40 virtual void OnReceivedPayloadData(const uint8* payload_data, |
| 41 size_t payload_size, | 41 size_t payload_size, |
| 42 const RtpCastHeader* rtp_header) OVERRIDE { | 42 const RtpCastHeader& rtp_header) OVERRIDE { |
| 43 video_receiver_->IncomingParsedRtpPacket( | 43 video_receiver_->IncomingParsedRtpPacket( |
| 44 payload_data, payload_size, *rtp_header); | 44 payload_data, payload_size, rtp_header); |
| 45 } | 45 } |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 VideoReceiver* video_receiver_; | 48 VideoReceiver* video_receiver_; |
| 49 | 49 |
| 50 DISALLOW_IMPLICIT_CONSTRUCTORS(LocalRtpVideoData); | 50 DISALLOW_IMPLICIT_CONSTRUCTORS(LocalRtpVideoData); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 // Local implementation of RtpPayloadFeedback (defined in rtp_defines.h) | 53 // Local implementation of RtpPayloadFeedback (defined in rtp_defines.h) |
| 54 // Used to convey cast-specific feedback from receiver to sender. | 54 // Used to convey cast-specific feedback from receiver to sender. |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 } | 550 } |
| 551 | 551 |
| 552 void VideoReceiver::UpdateTargetDelay() { | 552 void VideoReceiver::UpdateTargetDelay() { |
| 553 NOTIMPLEMENTED(); | 553 NOTIMPLEMENTED(); |
| 554 rtcp_->SetTargetDelay(target_delay_delta_); | 554 rtcp_->SetTargetDelay(target_delay_delta_); |
| 555 target_delay_cb_.Run(target_delay_delta_); | 555 target_delay_cb_.Run(target_delay_delta_); |
| 556 } | 556 } |
| 557 | 557 |
| 558 } // namespace cast | 558 } // namespace cast |
| 559 } // namespace media | 559 } // namespace media |
| OLD | NEW |