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 #ifndef MEDIA_CAST_RECEIVER_FRAME_RECEIVER_H_ | 5 #ifndef MEDIA_CAST_RECEIVER_FRAME_RECEIVER_H_ |
6 #define MEDIA_CAST_RECEIVER_FRAME_RECEIVER_H_ | 6 #define MEDIA_CAST_RECEIVER_FRAME_RECEIVER_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // it allows the event to be transmitted via RTCP. | 171 // it allows the event to be transmitted via RTCP. |
172 RtpTimestamp frame_id_to_rtp_timestamp_[256]; | 172 RtpTimestamp frame_id_to_rtp_timestamp_[256]; |
173 | 173 |
174 // Lip-sync values used to compute the playout time of each frame from its RTP | 174 // Lip-sync values used to compute the playout time of each frame from its RTP |
175 // timestamp. These are updated each time the first packet of a frame is | 175 // timestamp. These are updated each time the first packet of a frame is |
176 // received. | 176 // received. |
177 RtpTimestamp lip_sync_rtp_timestamp_; | 177 RtpTimestamp lip_sync_rtp_timestamp_; |
178 base::TimeTicks lip_sync_reference_time_; | 178 base::TimeTicks lip_sync_reference_time_; |
179 ClockDriftSmoother lip_sync_drift_; | 179 ClockDriftSmoother lip_sync_drift_; |
180 | 180 |
181 // Time interval for sending a RTCP report. | |
182 const base::TimeDelta rtcp_interval_; | |
183 | |
184 // NOTE: Weak pointers must be invalidated before all other member variables. | 181 // NOTE: Weak pointers must be invalidated before all other member variables. |
185 base::WeakPtrFactory<FrameReceiver> weak_factory_; | 182 base::WeakPtrFactory<FrameReceiver> weak_factory_; |
186 | 183 |
187 DISALLOW_COPY_AND_ASSIGN(FrameReceiver); | 184 DISALLOW_COPY_AND_ASSIGN(FrameReceiver); |
188 }; | 185 }; |
189 | 186 |
190 } // namespace cast | 187 } // namespace cast |
191 } // namespace media | 188 } // namespace media |
192 | 189 |
193 #endif // MEDIA_CAST_RECEIVER_FRAME_RECEIVER_H_ | 190 #endif // MEDIA_CAST_RECEIVER_FRAME_RECEIVER_H_ |
OLD | NEW |