Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(578)

Side by Side Diff: media/cast/sender/video_sender.h

Issue 1484403002: cast: Support for low-latency interactive mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix cast streaming API tests Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_SENDER_VIDEO_SENDER_H_ 5 #ifndef MEDIA_CAST_SENDER_VIDEO_SENDER_H_
6 #define MEDIA_CAST_SENDER_VIDEO_SENDER_H_ 6 #define MEDIA_CAST_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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // The timestamp of the frame that was last enqueued in |video_encoder_|. 91 // The timestamp of the frame that was last enqueued in |video_encoder_|.
92 RtpTimestamp last_enqueued_frame_rtp_timestamp_; 92 RtpTimestamp last_enqueued_frame_rtp_timestamp_;
93 base::TimeTicks last_enqueued_frame_reference_time_; 93 base::TimeTicks last_enqueued_frame_reference_time_;
94 94
95 // Remember what we set the bitrate to before, no need to set it again if 95 // Remember what we set the bitrate to before, no need to set it again if
96 // we get the same value. 96 // we get the same value.
97 int last_bitrate_; 97 int last_bitrate_;
98 98
99 PlayoutDelayChangeCB playout_delay_change_cb_; 99 PlayoutDelayChangeCB playout_delay_change_cb_;
100 100
101 // Indicates we are operating in a mode where the target playout latency is
102 // low for best user experience.
103 bool low_latency_mode_;
104
101 // The video encoder's performance metrics as of the last call to 105 // The video encoder's performance metrics as of the last call to
102 // OnEncodedVideoFrame(). See header file comments for SenderEncodedFrame for 106 // OnEncodedVideoFrame(). See header file comments for SenderEncodedFrame for
103 // an explanation of these values. 107 // an explanation of these values.
104 double last_reported_deadline_utilization_; 108 double last_reported_deadline_utilization_;
105 double last_reported_lossy_utilization_; 109 double last_reported_lossy_utilization_;
106 110
107 // NOTE: Weak pointers must be invalidated before all other member variables. 111 // NOTE: Weak pointers must be invalidated before all other member variables.
108 base::WeakPtrFactory<VideoSender> weak_factory_; 112 base::WeakPtrFactory<VideoSender> weak_factory_;
109 113
110 DISALLOW_COPY_AND_ASSIGN(VideoSender); 114 DISALLOW_COPY_AND_ASSIGN(VideoSender);
111 }; 115 };
112 116
113 } // namespace cast 117 } // namespace cast
114 } // namespace media 118 } // namespace media
115 119
116 #endif // MEDIA_CAST_SENDER_VIDEO_SENDER_H_ 120 #endif // MEDIA_CAST_SENDER_VIDEO_SENDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698