OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 #ifndef WEBRTC_MODULES_VIDEO_CODING_MEDIA_OPT_UTIL_H_ | 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_MEDIA_OPT_UTIL_H_ |
12 #define WEBRTC_MODULES_VIDEO_CODING_MEDIA_OPT_UTIL_H_ | 12 #define WEBRTC_MODULES_VIDEO_CODING_MEDIA_OPT_UTIL_H_ |
13 | 13 |
14 #include <math.h> | 14 #include <math.h> |
15 #include <stdlib.h> | 15 #include <stdlib.h> |
16 | 16 |
17 #include <memory> | 17 #include <memory> |
18 | 18 |
19 #include "webrtc/base/numerics/exp_filter.h" | 19 #include "webrtc/base/numerics/exp_filter.h" |
20 #include "webrtc/modules/video_coding/internal_defines.h" | 20 #include "webrtc/modules/video_coding/internal_defines.h" |
21 #include "webrtc/system_wrappers/include/trace.h" | |
22 #include "webrtc/typedefs.h" | 21 #include "webrtc/typedefs.h" |
23 | 22 |
24 namespace webrtc { | 23 namespace webrtc { |
25 namespace media_optimization { | 24 namespace media_optimization { |
26 | 25 |
27 // Number of time periods used for (max) window filter for packet loss | 26 // Number of time periods used for (max) window filter for packet loss |
28 // TODO(marpan): set reasonable window size for filtered packet loss, | 27 // TODO(marpan): set reasonable window size for filtered packet loss, |
29 // adjustment should be based on logged/real data of loss stats/correlation. | 28 // adjustment should be based on logged/real data of loss stats/correlation. |
30 enum { kLossPrHistorySize = 10 }; | 29 enum { kLossPrHistorySize = 10 }; |
31 | 30 |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 rtc::ExpFilter _packetsPerFrameKey; | 351 rtc::ExpFilter _packetsPerFrameKey; |
353 size_t _codecWidth; | 352 size_t _codecWidth; |
354 size_t _codecHeight; | 353 size_t _codecHeight; |
355 int _numLayers; | 354 int _numLayers; |
356 }; | 355 }; |
357 | 356 |
358 } // namespace media_optimization | 357 } // namespace media_optimization |
359 } // namespace webrtc | 358 } // namespace webrtc |
360 | 359 |
361 #endif // WEBRTC_MODULES_VIDEO_CODING_MEDIA_OPT_UTIL_H_ | 360 #endif // WEBRTC_MODULES_VIDEO_CODING_MEDIA_OPT_UTIL_H_ |
OLD | NEW |