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.

134 lines
3.9KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2017 - ROLI Ltd.
  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 5 End-User License
  8. Agreement and JUCE 5 Privacy Policy (both updated and effective as of the
  9. 27th April 2017).
  10. End User License Agreement: www.juce.com/juce-5-licence
  11. Privacy Policy: www.juce.com/juce-5-privacy-policy
  12. Or: You may also use this code under the terms of the GPL v3 (see
  13. www.gnu.org/licenses).
  14. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  15. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  16. DISCLAIMED.
  17. ==============================================================================
  18. */
  19. #ifdef JUCE_VIDEO_H_INCLUDED
  20. /* When you add this cpp file to your project, you mustn't include it in a file where you've
  21. already included any other headers - just put it inside a file on its own, possibly with your config
  22. flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
  23. header files that the compiler may be using.
  24. */
  25. #error "Incorrect use of JUCE cpp file"
  26. #endif
  27. #define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
  28. #define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
  29. #define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
  30. #include "juce_video.h"
  31. #if JUCE_MAC
  32. #import <AVFoundation/AVFoundation.h>
  33. //==============================================================================
  34. #elif JUCE_WINDOWS
  35. #if JUCE_QUICKTIME
  36. /* If you've got an include error here, you probably need to install the QuickTime SDK and
  37. add its header directory to your include path.
  38. Alternatively, if you don't need any QuickTime services, just set the JUCE_QUICKTIME flag to 0.
  39. */
  40. #include <Movies.h>
  41. #include <QTML.h>
  42. #include <QuickTimeComponents.h>
  43. #include <MediaHandlers.h>
  44. #include <ImageCodec.h>
  45. /* If you've got QuickTime 7 installed, then these COM objects should be found in
  46. the "\Program Files\Quicktime" directory. You'll need to add this directory to
  47. your include search path to make these import statements work.
  48. */
  49. #import <QTOLibrary.dll>
  50. #import <QTOControl.dll>
  51. #if JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  52. #pragma comment (lib, "QTMLClient.lib")
  53. #endif
  54. #endif
  55. #if JUCE_USE_CAMERA || JUCE_DIRECTSHOW
  56. /* If you're using the camera classes, you'll need access to a few DirectShow headers.
  57. These files are provided in the normal Windows SDK. */
  58. #include <dshow.h>
  59. #include <dshowasf.h>
  60. #endif
  61. #if JUCE_DIRECTSHOW && JUCE_MEDIAFOUNDATION
  62. #include <evr.h>
  63. #endif
  64. #if JUCE_USE_CAMERA && JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  65. #pragma comment (lib, "Strmiids.lib")
  66. #pragma comment (lib, "wmvcore.lib")
  67. #endif
  68. #if JUCE_MEDIAFOUNDATION && JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  69. #pragma comment (lib, "mfuuid.lib")
  70. #endif
  71. #if JUCE_DIRECTSHOW && JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  72. #pragma comment (lib, "strmiids.lib")
  73. #endif
  74. #endif
  75. //==============================================================================
  76. using namespace juce;
  77. namespace juce
  78. {
  79. #if JUCE_MAC || JUCE_IOS
  80. #if JUCE_USE_CAMERA
  81. #include "native/juce_mac_CameraDevice.mm"
  82. #endif
  83. #if JUCE_MAC
  84. #include "native/juce_mac_MovieComponent.mm"
  85. #endif
  86. #elif JUCE_WINDOWS
  87. #if JUCE_USE_CAMERA
  88. #include "native/juce_win32_CameraDevice.cpp"
  89. #endif
  90. #if JUCE_DIRECTSHOW
  91. #include "native/juce_win32_DirectShowComponent.cpp"
  92. #endif
  93. #elif JUCE_LINUX
  94. #elif JUCE_ANDROID
  95. #if JUCE_USE_CAMERA
  96. #include "native/juce_android_CameraDevice.cpp"
  97. #endif
  98. #endif
  99. #if JUCE_USE_CAMERA
  100. #include "capture/juce_CameraDevice.cpp"
  101. #endif
  102. }