video_capture_config.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  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. #ifndef MODULES_VIDEO_CAPTURE_MAIN_SOURCE_VIDEO_CAPTURE_CONFIG_H_
  11. #define MODULES_VIDEO_CAPTURE_MAIN_SOURCE_VIDEO_CAPTURE_CONFIG_H_
  12. namespace webrtc {
  13. namespace videocapturemodule {
  14. enum { kDefaultWidth = 640 }; // Start width
  15. enum { kDefaultHeight = 480 }; // Start heigt
  16. enum { kDefaultFrameRate = 30 }; // Start frame rate
  17. enum { kMaxFrameRate = 60 }; // Max allowed frame rate of the start image
  18. enum { kDefaultCaptureDelay = 120 };
  19. enum {
  20. kMaxCaptureDelay = 270
  21. }; // Max capture delay allowed in the precompiled capture delay values.
  22. enum { kFrameRateCallbackInterval = 1000 };
  23. enum { kFrameRateCountHistorySize = 90 };
  24. enum { kFrameRateHistoryWindowMs = 2000 };
  25. } // namespace videocapturemodule
  26. } // namespace webrtc
  27. #endif // MODULES_VIDEO_CAPTURE_MAIN_SOURCE_VIDEO_CAPTURE_CONFIG_H_