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.

138 lines
4.0KB

  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. #if JUCE_QUICKTIME
  31. #import <QTKit/QTKit.h>
  32. #endif
  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_QUICKTIME
  84. #include "native/juce_mac_QuickTimeMovieComponent.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. #if JUCE_QUICKTIME
  94. #include "native/juce_win32_QuickTimeMovieComponent.cpp"
  95. #endif
  96. #elif JUCE_LINUX
  97. #elif JUCE_ANDROID
  98. #if JUCE_USE_CAMERA
  99. #include "native/juce_android_CameraDevice.cpp"
  100. #endif
  101. #endif
  102. #if JUCE_USE_CAMERA
  103. #include "capture/juce_CameraDevice.cpp"
  104. #endif
  105. }