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

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

Issue 1709863002: Add Cast PLI support on sender side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 years, 9 months 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/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // low for best user experience. When operating in low latency mode, we 97 // low for best user experience. When operating in low latency mode, we
98 // prefer dropping frames over increasing target playout time. 98 // prefer dropping frames over increasing target playout time.
99 bool low_latency_mode_; 99 bool low_latency_mode_;
100 100
101 // The video encoder's performance metrics as of the last call to 101 // The video encoder's performance metrics as of the last call to
102 // OnEncodedVideoFrame(). See header file comments for SenderEncodedFrame for 102 // OnEncodedVideoFrame(). See header file comments for SenderEncodedFrame for
103 // an explanation of these values. 103 // an explanation of these values.
104 double last_reported_deadline_utilization_; 104 double last_reported_deadline_utilization_;
105 double last_reported_lossy_utilization_; 105 double last_reported_lossy_utilization_;
106 106
107 // This tracks the time when the request was sent to encoder to encode a key
108 // frame on receiving a Pli message. It is used to limit the sender not
109 // to duplicately respond to multiple Pli messages in a short period.
110 base::TimeTicks last_time_attempted_to_resolve_pli_;
111
107 // NOTE: Weak pointers must be invalidated before all other member variables. 112 // NOTE: Weak pointers must be invalidated before all other member variables.
108 base::WeakPtrFactory<VideoSender> weak_factory_; 113 base::WeakPtrFactory<VideoSender> weak_factory_;
109 114
110 DISALLOW_COPY_AND_ASSIGN(VideoSender); 115 DISALLOW_COPY_AND_ASSIGN(VideoSender);
111 }; 116 };
112 117
113 } // namespace cast 118 } // namespace cast
114 } // namespace media 119 } // namespace media
115 120
116 #endif // MEDIA_CAST_SENDER_VIDEO_SENDER_H_ 121 #endif // MEDIA_CAST_SENDER_VIDEO_SENDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698