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.

132 lines
3.9KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2015 - ROLI Ltd.
  5. Permission is granted to use this software under the terms of either:
  6. a) the GPL v2 (or any later version)
  7. b) the Affero GPL v3
  8. Details of these licenses can be found at: www.gnu.org/licenses
  9. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  11. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  12. ------------------------------------------------------------------------------
  13. To release a closed-source product which uses JUCE, commercial licenses are
  14. available: visit www.juce.com for more information.
  15. ==============================================================================
  16. */
  17. #ifdef JUCE_VIDEO_H_INCLUDED
  18. /* When you add this cpp file to your project, you mustn't include it in a file where you've
  19. already included any other headers - just put it inside a file on its own, possibly with your config
  20. flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
  21. header files that the compiler may be using.
  22. */
  23. #error "Incorrect use of JUCE cpp file"
  24. #endif
  25. #define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
  26. #define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
  27. #define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
  28. #include "juce_video.h"
  29. #if JUCE_MAC
  30. #import <AVFoundation/AVFoundation.h>
  31. //==============================================================================
  32. #elif JUCE_WINDOWS
  33. #if JUCE_QUICKTIME
  34. /* If you've got an include error here, you probably need to install the QuickTime SDK and
  35. add its header directory to your include path.
  36. Alternatively, if you don't need any QuickTime services, just set the JUCE_QUICKTIME flag to 0.
  37. */
  38. #include <Movies.h>
  39. #include <QTML.h>
  40. #include <QuickTimeComponents.h>
  41. #include <MediaHandlers.h>
  42. #include <ImageCodec.h>
  43. /* If you've got QuickTime 7 installed, then these COM objects should be found in
  44. the "\Program Files\Quicktime" directory. You'll need to add this directory to
  45. your include search path to make these import statements work.
  46. */
  47. #import <QTOLibrary.dll>
  48. #import <QTOControl.dll>
  49. #if JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  50. #pragma comment (lib, "QTMLClient.lib")
  51. #endif
  52. #endif
  53. #if JUCE_USE_CAMERA || JUCE_DIRECTSHOW
  54. /* If you're using the camera classes, you'll need access to a few DirectShow headers.
  55. These files are provided in the normal Windows SDK. */
  56. #include <dshow.h>
  57. #include <dshowasf.h>
  58. #endif
  59. #if JUCE_DIRECTSHOW && JUCE_MEDIAFOUNDATION
  60. #include <evr.h>
  61. #endif
  62. #if JUCE_USE_CAMERA && JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  63. #pragma comment (lib, "Strmiids.lib")
  64. #pragma comment (lib, "wmvcore.lib")
  65. #endif
  66. #if JUCE_MEDIAFOUNDATION && JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  67. #pragma comment (lib, "mfuuid.lib")
  68. #endif
  69. #if JUCE_DIRECTSHOW && JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  70. #pragma comment (lib, "strmiids.lib")
  71. #endif
  72. #endif
  73. //==============================================================================
  74. using namespace juce;
  75. namespace juce
  76. {
  77. #if JUCE_MAC || JUCE_IOS
  78. #if JUCE_USE_CAMERA
  79. #include "native/juce_mac_CameraDevice.mm"
  80. #endif
  81. #if JUCE_MAC
  82. #include "native/juce_mac_MovieComponent.mm"
  83. #endif
  84. #elif JUCE_WINDOWS
  85. #if JUCE_USE_CAMERA
  86. #include "native/juce_win32_CameraDevice.cpp"
  87. #endif
  88. #if JUCE_DIRECTSHOW
  89. #include "native/juce_win32_DirectShowComponent.cpp"
  90. #endif
  91. #elif JUCE_LINUX
  92. #elif JUCE_ANDROID
  93. #if JUCE_USE_CAMERA
  94. #include "native/juce_android_CameraDevice.cpp"
  95. #endif
  96. #endif
  97. #if JUCE_USE_CAMERA
  98. #include "capture/juce_CameraDevice.cpp"
  99. #endif
  100. }