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

Side by Side Diff: webrtc/modules/video_coding/utility/frame_dropper.cc

Issue 2784873002: Delete unneeded includes of deprecated system_wrappers include files. (Closed)
Patch Set: Delete unneeded includes of system_wrappers/include/critical_section_wrapper.h Created 3 years, 8 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 /* 1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include "webrtc/modules/video_coding/utility/frame_dropper.h" 11 #include "webrtc/modules/video_coding/utility/frame_dropper.h"
12 12
13 #include <algorithm> 13 #include <algorithm>
14 14
15 #include "webrtc/base/logging.h" 15 #include "webrtc/base/logging.h"
16 #include "webrtc/system_wrappers/include/trace.h"
17 16
18 namespace webrtc { 17 namespace webrtc {
19 18
20 namespace { 19 namespace {
21 20
22 const float kDefaultFrameSizeAlpha = 0.9f; 21 const float kDefaultFrameSizeAlpha = 0.9f;
23 const float kDefaultKeyFrameRatioAlpha = 0.99f; 22 const float kDefaultKeyFrameRatioAlpha = 0.99f;
24 // 1 key frame every 10th second in 30 fps. 23 // 1 key frame every 10th second in 30 fps.
25 const float kDefaultKeyFrameRatioValue = 1 / 300.0f; 24 const float kDefaultKeyFrameRatioValue = 1 / 300.0f;
26 25
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 // This is a temporary fix for screencasting where very large frames from 270 // This is a temporary fix for screencasting where very large frames from
272 // encoder will cause very slow response (too many frame drops). 271 // encoder will cause very slow response (too many frame drops).
273 // TODO(isheriff): Remove this now that large delta frames are also spread out ? 272 // TODO(isheriff): Remove this now that large delta frames are also spread out ?
274 void FrameDropper::CapAccumulator() { 273 void FrameDropper::CapAccumulator() {
275 float max_accumulator = target_bitrate_ * kAccumulatorCapBufferSizeSecs; 274 float max_accumulator = target_bitrate_ * kAccumulatorCapBufferSizeSecs;
276 if (accumulator_ > max_accumulator) { 275 if (accumulator_ > max_accumulator) {
277 accumulator_ = max_accumulator; 276 accumulator_ = max_accumulator;
278 } 277 }
279 } 278 }
280 } // namespace webrtc 279 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/timing_unittest.cc ('k') | webrtc/system_wrappers/source/condition_variable_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698