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_RECEIVER_VIDEO_RECEIVER_H_ | 5 #ifndef MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ |
6 #define MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ | 6 #define MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 scoped_ptr<Framer> framer_; | 108 scoped_ptr<Framer> framer_; |
109 const transport::VideoCodec codec_; | 109 const transport::VideoCodec codec_; |
110 base::TimeDelta target_delay_delta_; | 110 base::TimeDelta target_delay_delta_; |
111 base::TimeDelta frame_delay_; | 111 base::TimeDelta frame_delay_; |
112 scoped_ptr<LocalRtpVideoData> incoming_payload_callback_; | 112 scoped_ptr<LocalRtpVideoData> incoming_payload_callback_; |
113 scoped_ptr<LocalRtpVideoFeedback> incoming_payload_feedback_; | 113 scoped_ptr<LocalRtpVideoFeedback> incoming_payload_feedback_; |
114 RtpReceiver rtp_receiver_; | 114 RtpReceiver rtp_receiver_; |
115 scoped_ptr<Rtcp> rtcp_; | 115 scoped_ptr<Rtcp> rtcp_; |
116 scoped_ptr<RtpReceiverStatistics> rtp_video_receiver_statistics_; | 116 scoped_ptr<RtpReceiverStatistics> rtp_video_receiver_statistics_; |
117 base::TimeDelta time_offset_; // Sender-receiver offset estimation. | 117 base::TimeDelta time_offset_; // Sender-receiver offset estimation. |
| 118 int time_offset_counter_; |
118 transport::TransportEncryptionHandler decryptor_; | 119 transport::TransportEncryptionHandler decryptor_; |
119 std::list<VideoFrameEncodedCallback> queued_encoded_callbacks_; | 120 std::list<VideoFrameEncodedCallback> queued_encoded_callbacks_; |
120 bool time_incoming_packet_updated_; | 121 bool time_incoming_packet_updated_; |
121 base::TimeTicks time_incoming_packet_; | 122 base::TimeTicks time_incoming_packet_; |
122 uint32 incoming_rtp_timestamp_; | 123 uint32 incoming_rtp_timestamp_; |
123 base::TimeTicks last_render_time_; | 124 base::TimeTicks last_render_time_; |
124 | 125 |
125 // This mapping allows us to log kVideoAckSent as a frame event. In addition | 126 // This mapping allows us to log kVideoAckSent as a frame event. In addition |
126 // it allows the event to be transmitted via RTCP. | 127 // it allows the event to be transmitted via RTCP. |
127 RtpTimestamp frame_id_to_rtp_timestamp_[256]; | 128 RtpTimestamp frame_id_to_rtp_timestamp_[256]; |
128 | 129 |
129 base::WeakPtrFactory<VideoReceiver> weak_factory_; | 130 base::WeakPtrFactory<VideoReceiver> weak_factory_; |
130 | 131 |
131 DISALLOW_COPY_AND_ASSIGN(VideoReceiver); | 132 DISALLOW_COPY_AND_ASSIGN(VideoReceiver); |
132 }; | 133 }; |
133 | 134 |
134 } // namespace cast | 135 } // namespace cast |
135 } // namespace media | 136 } // namespace media |
136 | 137 |
137 #endif // MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ | 138 #endif // MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ |
OLD | NEW |