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 #ifndef MEDIA_CAST_VIDEO_SENDER_VIDEO_SENDER_H_ | 5 #ifndef MEDIA_CAST_VIDEO_SENDER_VIDEO_SENDER_H_ |
6 #define MEDIA_CAST_VIDEO_SENDER_VIDEO_SENDER_H_ | 6 #define MEDIA_CAST_VIDEO_SENDER_VIDEO_SENDER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 void ScheduleNextSkippedFramesCheck(); | 89 void ScheduleNextSkippedFramesCheck(); |
90 void SkippedFramesCheck(); | 90 void SkippedFramesCheck(); |
91 | 91 |
92 void SendEncodedVideoFrame(const transport::EncodedVideoFrame* video_frame, | 92 void SendEncodedVideoFrame(const transport::EncodedVideoFrame* video_frame, |
93 const base::TimeTicks& capture_time); | 93 const base::TimeTicks& capture_time); |
94 void ResendFrame(uint32 resend_frame_id); | 94 void ResendFrame(uint32 resend_frame_id); |
95 void ReceivedAck(uint32 acked_frame_id); | 95 void ReceivedAck(uint32 acked_frame_id); |
96 void UpdateFramesInFlight(); | 96 void UpdateFramesInFlight(); |
97 | 97 |
98 void SendEncodedVideoFrameMainThread( | 98 void SendEncodedVideoFrameMainThread( |
| 99 int requested_bitrate_before_encode, |
99 scoped_ptr<transport::EncodedVideoFrame> encoded_frame, | 100 scoped_ptr<transport::EncodedVideoFrame> encoded_frame, |
100 const base::TimeTicks& capture_time); | 101 const base::TimeTicks& capture_time); |
101 | 102 |
102 void InitializeTimers(); | 103 void InitializeTimers(); |
103 | 104 |
104 void UpdateBitrate(int32 new_bitrate); | 105 void UpdateBitrate(int32 new_bitrate); |
105 | 106 |
106 base::TimeDelta rtp_max_delay_; | 107 base::TimeDelta rtp_max_delay_; |
107 const int max_frame_rate_; | 108 const int max_frame_rate_; |
108 | 109 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // NOTE: Weak pointers must be invalidated before all other member variables. | 144 // NOTE: Weak pointers must be invalidated before all other member variables. |
144 base::WeakPtrFactory<VideoSender> weak_factory_; | 145 base::WeakPtrFactory<VideoSender> weak_factory_; |
145 | 146 |
146 DISALLOW_COPY_AND_ASSIGN(VideoSender); | 147 DISALLOW_COPY_AND_ASSIGN(VideoSender); |
147 }; | 148 }; |
148 | 149 |
149 } // namespace cast | 150 } // namespace cast |
150 } // namespace media | 151 } // namespace media |
151 | 152 |
152 #endif // MEDIA_CAST_VIDEO_SENDER_VIDEO_SENDER_H_ | 153 #endif // MEDIA_CAST_VIDEO_SENDER_VIDEO_SENDER_H_ |
OLD | NEW |