The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
3.3KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2020 - Raw Material Software Limited
  5. JUCE is an open source library subject to commercial or open-source
  6. licensing.
  7. By using JUCE, you agree to the terms of both the JUCE 6 End-User License
  8. Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020).
  9. End User License Agreement: www.juce.com/juce-6-licence
  10. Privacy Policy: www.juce.com/juce-privacy-policy
  11. Or: You may also use this code under the terms of the GPL v3 (see
  12. www.gnu.org/licenses).
  13. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  14. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  15. DISCLAIMED.
  16. ==============================================================================
  17. */
  18. /*******************************************************************************
  19. The block below describes the properties of this module, and is read by
  20. the Projucer to automatically generate project code that uses it.
  21. For details about the syntax and how to create or use a module, see the
  22. JUCE Module Format.md file.
  23. BEGIN_JUCE_MODULE_DECLARATION
  24. ID: juce_video
  25. vendor: juce
  26. version: 6.0.7
  27. name: JUCE video playback and capture classes
  28. description: Classes for playing video and capturing camera input.
  29. website: http://www.juce.com/juce
  30. license: GPL/Commercial
  31. dependencies: juce_gui_extra
  32. OSXFrameworks: AVKit AVFoundation CoreMedia
  33. iOSFrameworks: AVKit AVFoundation CoreMedia
  34. END_JUCE_MODULE_DECLARATION
  35. *******************************************************************************/
  36. #pragma once
  37. #define JUCE_VIDEO_H_INCLUDED
  38. //==============================================================================
  39. #include <juce_gui_extra/juce_gui_extra.h>
  40. //==============================================================================
  41. /** Config: JUCE_USE_CAMERA
  42. Enables camera support using the CameraDevice class (Mac, Windows, iOS, Android).
  43. */
  44. #ifndef JUCE_USE_CAMERA
  45. #define JUCE_USE_CAMERA 0
  46. #endif
  47. #ifndef JUCE_CAMERA_LOG_ENABLED
  48. #define JUCE_CAMERA_LOG_ENABLED 0
  49. #endif
  50. #if JUCE_CAMERA_LOG_ENABLED
  51. #define JUCE_CAMERA_LOG(x) DBG(x)
  52. #else
  53. #define JUCE_CAMERA_LOG(x) {}
  54. #endif
  55. #if ! (JUCE_MAC || JUCE_WINDOWS || JUCE_IOS || JUCE_ANDROID)
  56. #undef JUCE_USE_CAMERA
  57. #endif
  58. //==============================================================================
  59. /** Config: JUCE_SYNC_VIDEO_VOLUME_WITH_OS_MEDIA_VOLUME
  60. Enables synchronisation between video playback volume and OS media volume.
  61. Currently supported on Android only.
  62. */
  63. #ifndef JUCE_SYNC_VIDEO_VOLUME_WITH_OS_MEDIA_VOLUME
  64. #define JUCE_SYNC_VIDEO_VOLUME_WITH_OS_MEDIA_VOLUME 1
  65. #endif
  66. #ifndef JUCE_VIDEO_LOG_ENABLED
  67. #define JUCE_VIDEO_LOG_ENABLED 1
  68. #endif
  69. #if JUCE_VIDEO_LOG_ENABLED
  70. #define JUCE_VIDEO_LOG(x) DBG(x)
  71. #else
  72. #define JUCE_VIDEO_LOG(x) {}
  73. #endif
  74. //==============================================================================
  75. #include "playback/juce_VideoComponent.h"
  76. #include "capture/juce_CameraDevice.h"