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.

104 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.1.2
  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. minimumCppStandard: 14
  32. dependencies: juce_gui_extra
  33. OSXFrameworks: AVKit AVFoundation CoreMedia
  34. iOSFrameworks: AVKit AVFoundation CoreMedia
  35. END_JUCE_MODULE_DECLARATION
  36. *******************************************************************************/
  37. #pragma once
  38. #define JUCE_VIDEO_H_INCLUDED
  39. //==============================================================================
  40. #include <juce_gui_extra/juce_gui_extra.h>
  41. //==============================================================================
  42. /** Config: JUCE_USE_CAMERA
  43. Enables camera support using the CameraDevice class (Mac, Windows, iOS, Android).
  44. */
  45. #ifndef JUCE_USE_CAMERA
  46. #define JUCE_USE_CAMERA 0
  47. #endif
  48. #ifndef JUCE_CAMERA_LOG_ENABLED
  49. #define JUCE_CAMERA_LOG_ENABLED 0
  50. #endif
  51. #if JUCE_CAMERA_LOG_ENABLED
  52. #define JUCE_CAMERA_LOG(x) DBG(x)
  53. #else
  54. #define JUCE_CAMERA_LOG(x) {}
  55. #endif
  56. #if ! (JUCE_MAC || JUCE_WINDOWS || JUCE_IOS || JUCE_ANDROID)
  57. #undef JUCE_USE_CAMERA
  58. #endif
  59. //==============================================================================
  60. /** Config: JUCE_SYNC_VIDEO_VOLUME_WITH_OS_MEDIA_VOLUME
  61. Enables synchronisation between video playback volume and OS media volume.
  62. Currently supported on Android only.
  63. */
  64. #ifndef JUCE_SYNC_VIDEO_VOLUME_WITH_OS_MEDIA_VOLUME
  65. #define JUCE_SYNC_VIDEO_VOLUME_WITH_OS_MEDIA_VOLUME 1
  66. #endif
  67. #ifndef JUCE_VIDEO_LOG_ENABLED
  68. #define JUCE_VIDEO_LOG_ENABLED 1
  69. #endif
  70. #if JUCE_VIDEO_LOG_ENABLED
  71. #define JUCE_VIDEO_LOG(x) DBG(x)
  72. #else
  73. #define JUCE_VIDEO_LOG(x) {}
  74. #endif
  75. //==============================================================================
  76. #include "playback/juce_VideoComponent.h"
  77. #include "capture/juce_CameraDevice.h"