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_sender/video_sender.h" | 5 #include "media/cast/video_sender/video_sender.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "media/cast/cast_defines.h" | 12 #include "media/cast/cast_defines.h" |
13 #include "media/cast/pacing/paced_sender.h" | 13 #include "media/cast/pacing/paced_sender.h" |
14 #include "media/cast/video_sender/video_encoder.h" | 14 #include "media/cast/video_sender/video_encoder.h" |
15 | 15 |
16 namespace media { | 16 namespace media { |
17 namespace cast { | 17 namespace cast { |
18 | 18 |
19 const int64 kMinSchedulingDelayMs = 1; | 19 const int64 kMinSchedulingDelayMs = 1; |
20 | 20 |
21 class LocalRtcpVideoSenderFeedback : public RtcpSenderFeedback { | 21 class LocalRtcpVideoSenderFeedback : public RtcpSenderFeedback { |
22 public: | 22 public: |
23 explicit LocalRtcpVideoSenderFeedback(VideoSender* video_sender) | 23 explicit LocalRtcpVideoSenderFeedback(VideoSender* video_sender) |
24 : video_sender_(video_sender) { | 24 : video_sender_(video_sender) { |
25 } | 25 } |
26 | 26 |
27 virtual void OnReceivedSendReportRequest() {} | 27 virtual void OnReceivedSendReportRequest() OVERRIDE {} |
28 | 28 |
29 virtual void OnReceivedReportBlock( | 29 virtual void OnReceivedReportBlock( |
30 const RtcpReportBlock& report_block) OVERRIDE {} | 30 const RtcpReportBlock& report_block) OVERRIDE {} |
31 | 31 |
32 virtual void OnReceivedRpsi(uint8 payload_type, | 32 virtual void OnReceivedRpsi(uint8 payload_type, |
33 uint64 picture_id) OVERRIDE { | 33 uint64 picture_id) OVERRIDE { |
34 NOTIMPLEMENTED(); | 34 NOTIMPLEMENTED(); |
35 } | 35 } |
36 | 36 |
37 virtual void OnReceivedRemb(uint32 bitrate) OVERRIDE { | 37 virtual void OnReceivedRemb(uint32 bitrate) OVERRIDE { |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 void VideoSender::ResendFrame(uint8 resend_frame_id) { | 337 void VideoSender::ResendFrame(uint8 resend_frame_id) { |
338 MissingFramesAndPacketsMap missing_frames_and_packets; | 338 MissingFramesAndPacketsMap missing_frames_and_packets; |
339 PacketIdSet missing; | 339 PacketIdSet missing; |
340 missing_frames_and_packets.insert(std::make_pair(resend_frame_id, missing)); | 340 missing_frames_and_packets.insert(std::make_pair(resend_frame_id, missing)); |
341 rtp_sender_->ResendPackets(missing_frames_and_packets); | 341 rtp_sender_->ResendPackets(missing_frames_and_packets); |
342 last_send_time_ = clock_->NowTicks(); | 342 last_send_time_ = clock_->NowTicks(); |
343 } | 343 } |
344 | 344 |
345 } // namespace cast | 345 } // namespace cast |
346 } // namespace media | 346 } // namespace media |
OLD | NEW |