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

Side by Side Diff: remoting/protocol/webrtc_frame_scheduler_simple.h

Issue 2381213002: Use high quantizer value for "big" frames after a sequence of "small" frames. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | remoting/protocol/webrtc_frame_scheduler_simple.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 REMOTING_PROTOCOL_WEBRTC_FRAME_SCHEDULER_SIMPLE_H_ 5 #ifndef REMOTING_PROTOCOL_WEBRTC_FRAME_SCHEDULER_SIMPLE_H_
6 #define REMOTING_PROTOCOL_WEBRTC_FRAME_SCHEDULER_SIMPLE_H_ 6 #define REMOTING_PROTOCOL_WEBRTC_FRAME_SCHEDULER_SIMPLE_H_
7 7
8 #include "remoting/protocol/webrtc_frame_scheduler.h" 8 #include "remoting/protocol/webrtc_frame_scheduler.h"
9 9
10 #include "base/timer/timer.h" 10 #include "base/timer/timer.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 base::TimeTicks last_capture_started_time_; 45 base::TimeTicks last_capture_started_time_;
46 46
47 LeakyBucket pacing_bucket_; 47 LeakyBucket pacing_bucket_;
48 48
49 // Set to true when encoding unchanged frames for top-off. 49 // Set to true when encoding unchanged frames for top-off.
50 bool top_off_is_active_ = false; 50 bool top_off_is_active_ = false;
51 51
52 // Accumulator for capture and encoder delay history. 52 // Accumulator for capture and encoder delay history.
53 RunningSamples frame_processing_delay_us_; 53 RunningSamples frame_processing_delay_us_;
54 54
55 // Accumulator for updated region area in the previously encoded frames.
56 RunningSamples updated_region_area_;
57
55 base::OneShotTimer capture_timer_; 58 base::OneShotTimer capture_timer_;
56 }; 59 };
57 60
58 } // namespace protocol 61 } // namespace protocol
59 } // namespace remoting 62 } // namespace remoting
60 63
61 #endif // REMOTING_PROTOCOL_WEBRTC_FRAME_SCHEDULER_SIMPLE_H_ 64 #endif // REMOTING_PROTOCOL_WEBRTC_FRAME_SCHEDULER_SIMPLE_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/protocol/webrtc_frame_scheduler_simple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698