niklase@google.com | 470e71d | 2011-07-07 08:21:25 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
Mirko Bonadei | 92ea95e | 2017-09-15 04:47:31 | [diff] [blame] | 11 | #ifndef MODULES_VIDEO_CAPTURE_MAIN_SOURCE_VIDEO_CAPTURE_CONFIG_H_ |
| 12 | #define MODULES_VIDEO_CAPTURE_MAIN_SOURCE_VIDEO_CAPTURE_CONFIG_H_ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 | [diff] [blame] | 13 | |
Yves Gerey | 665174f | 2018-06-19 13:03:05 | [diff] [blame] | 14 | namespace webrtc { |
| 15 | namespace videocapturemodule { |
| 16 | enum { kDefaultWidth = 640 }; // Start width |
| 17 | enum { kDefaultHeight = 480 }; // Start heigt |
| 18 | enum { kDefaultFrameRate = 30 }; // Start frame rate |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 | [diff] [blame] | 19 | |
Yves Gerey | 665174f | 2018-06-19 13:03:05 | [diff] [blame] | 20 | enum { kMaxFrameRate = 60 }; // Max allowed frame rate of the start image |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 | [diff] [blame] | 21 | |
Yves Gerey | 665174f | 2018-06-19 13:03:05 | [diff] [blame] | 22 | enum { kDefaultCaptureDelay = 120 }; |
| 23 | enum { |
| 24 | kMaxCaptureDelay = 270 |
| 25 | }; // Max capture delay allowed in the precompiled capture delay values. |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 | [diff] [blame] | 26 | |
Yves Gerey | 665174f | 2018-06-19 13:03:05 | [diff] [blame] | 27 | enum { kFrameRateCallbackInterval = 1000 }; |
| 28 | enum { kFrameRateCountHistorySize = 90 }; |
| 29 | enum { kFrameRateHistoryWindowMs = 2000 }; |
perkj@webrtc.org | 0cc68dc | 2011-09-12 08:53:36 | [diff] [blame] | 30 | } // namespace videocapturemodule |
| 31 | } // namespace webrtc |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 | [diff] [blame] | 32 | |
Yves Gerey | 665174f | 2018-06-19 13:03:05 | [diff] [blame] | 33 | #endif // MODULES_VIDEO_CAPTURE_MAIN_SOURCE_VIDEO_CAPTURE_CONFIG_H_ |