Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This is the base class for an object that send frames to a receiver. | 5 // This is the base class for an object that send frames to a receiver. |
| 6 // TODO(hclam): Refactor such that there is no separate AudioSender vs. | 6 // TODO(hclam): Refactor such that there is no separate AudioSender vs. |
| 7 // VideoSender, and the functionality of both is rolled into this class. | 7 // VideoSender, and the functionality of both is rolled into this class. |
| 8 | 8 |
| 9 #ifndef MEDIA_CAST_SENDER_FRAME_SENDER_H_ | 9 #ifndef MEDIA_CAST_SENDER_FRAME_SENDER_H_ |
| 10 #define MEDIA_CAST_SENDER_FRAME_SENDER_H_ | 10 #define MEDIA_CAST_SENDER_FRAME_SENDER_H_ |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 87 // If true, we transmit the target playout delay to the receiver. | 87 // If true, we transmit the target playout delay to the receiver. |
| 88 bool send_target_playout_delay_; | 88 bool send_target_playout_delay_; |
| 89 | 89 |
| 90 // Max encoded frames generated per second. | 90 // Max encoded frames generated per second. |
| 91 double max_frame_rate_; | 91 double max_frame_rate_; |
| 92 | 92 |
| 93 // Maximum number of outstanding frames before the encoding and sending of | 93 // Maximum number of outstanding frames before the encoding and sending of |
| 94 // new frames shall halt. | 94 // new frames shall halt. |
| 95 int max_unacked_frames_; | 95 int max_unacked_frames_; |
| 96 | 96 |
| 97 // Maximum difference between a new frame's RTP timestamp and the oldest | |
| 98 // unacked frame's RTP timestamp, before encoding and sending of new frames | |
| 99 // shall halt. | |
| 100 int64 max_unacked_rtp_delta_; | |
|
hubbe
2014/08/26 17:49:56
Why not TimeDelta?
miu
2014/08/26 19:57:19
It more convenient to have in the time calculation
hubbe
2014/08/26 20:54:21
This is an odd situation. Usually you're the one w
miu
2014/08/26 23:27:16
Done. I rewrote it the other way. The ShouldDrop
| |
| 101 | |
| 97 private: | 102 private: |
| 98 // NOTE: Weak pointers must be invalidated before all other member variables. | 103 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 99 base::WeakPtrFactory<FrameSender> weak_factory_; | 104 base::WeakPtrFactory<FrameSender> weak_factory_; |
| 100 | 105 |
| 101 DISALLOW_COPY_AND_ASSIGN(FrameSender); | 106 DISALLOW_COPY_AND_ASSIGN(FrameSender); |
| 102 }; | 107 }; |
| 103 | 108 |
| 104 } // namespace cast | 109 } // namespace cast |
| 105 } // namespace media | 110 } // namespace media |
| 106 | 111 |
| 107 #endif // MEDIA_CAST_SENDER_FRAME_SENDER_H_ | 112 #endif // MEDIA_CAST_SENDER_FRAME_SENDER_H_ |
| OLD | NEW |