OLD | NEW |
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/main/source/internal_defines.h" | 11 #include "webrtc/modules/video_coding/main/source/internal_defines.h" |
12 #include "webrtc/modules/video_coding/main/source/jitter_estimator.h" | 12 #include "webrtc/modules/video_coding/main/source/jitter_estimator.h" |
13 #include "webrtc/modules/video_coding/main/source/rtt_filter.h" | 13 #include "webrtc/modules/video_coding/main/source/rtt_filter.h" |
14 #include "webrtc/system_wrappers/interface/clock.h" | 14 #include "webrtc/system_wrappers/include/clock.h" |
15 #include "webrtc/system_wrappers/interface/field_trial.h" | 15 #include "webrtc/system_wrappers/include/field_trial.h" |
16 | 16 |
17 #include <assert.h> | 17 #include <assert.h> |
18 #include <math.h> | 18 #include <math.h> |
19 #include <stdlib.h> | 19 #include <stdlib.h> |
20 #include <string.h> | 20 #include <string.h> |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 | 23 |
24 enum { kStartupDelaySamples = 30 }; | 24 enum { kStartupDelaySamples = 30 }; |
25 enum { kFsAccuStartupSamples = 5 }; | 25 enum { kFsAccuStartupSamples = 5 }; |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 double fps = 1000000.0 / fps_counter_.ComputeMean(); | 473 double fps = 1000000.0 / fps_counter_.ComputeMean(); |
474 // Sanity check. | 474 // Sanity check. |
475 assert(fps >= 0.0); | 475 assert(fps >= 0.0); |
476 if (fps > kMaxFramerateEstimate) { | 476 if (fps > kMaxFramerateEstimate) { |
477 fps = kMaxFramerateEstimate; | 477 fps = kMaxFramerateEstimate; |
478 } | 478 } |
479 return fps; | 479 return fps; |
480 } | 480 } |
481 | 481 |
482 } | 482 } |
OLD | NEW |