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.

147 lines
4.5KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2013 - Raw Material Software 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. #if defined (JUCE_VIDEO_H_INCLUDED) && ! JUCE_AMALGAMATED_INCLUDE
  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. // Your project must contain an AppConfig.h file with your project-specific settings in it,
  26. // and your header search path must make it accessible to the module's files.
  27. #include "AppConfig.h"
  28. #include "../juce_core/native/juce_BasicNativeHeaders.h"
  29. #include "../juce_gui_extra/juce_gui_extra.h"
  30. #include "juce_video.h"
  31. #if JUCE_MAC
  32. #if JUCE_QUICKTIME
  33. #define Point CarbonDummyPointName
  34. #define Component CarbonDummyCompName
  35. #import <QTKit/QTKit.h>
  36. #undef Point
  37. #undef Component
  38. #endif
  39. //==============================================================================
  40. #elif JUCE_WINDOWS
  41. #if JUCE_QUICKTIME
  42. /* If you've got an include error here, you probably need to install the QuickTime SDK and
  43. add its header directory to your include path.
  44. Alternatively, if you don't need any QuickTime services, just set the JUCE_QUICKTIME flag to 0.
  45. */
  46. #include <Movies.h>
  47. #include <QTML.h>
  48. #include <QuickTimeComponents.h>
  49. #include <MediaHandlers.h>
  50. #include <ImageCodec.h>
  51. /* If you've got QuickTime 7 installed, then these COM objects should be found in
  52. the "\Program Files\Quicktime" directory. You'll need to add this directory to
  53. your include search path to make these import statements work.
  54. */
  55. #import <QTOLibrary.dll>
  56. #import <QTOControl.dll>
  57. #if JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  58. #pragma comment (lib, "QTMLClient.lib")
  59. #endif
  60. #endif
  61. #if JUCE_USE_CAMERA || JUCE_DIRECTSHOW
  62. /* If you're using the camera classes, you'll need access to a few DirectShow headers.
  63. These files are provided in the normal Windows SDK. */
  64. #include <dshow.h>
  65. #include <dshowasf.h>
  66. #endif
  67. #if JUCE_DIRECTSHOW && JUCE_MEDIAFOUNDATION
  68. #include <evr.h>
  69. #endif
  70. #if JUCE_USE_CAMERA && JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  71. #pragma comment (lib, "Strmiids.lib")
  72. #pragma comment (lib, "wmvcore.lib")
  73. #endif
  74. #if JUCE_MEDIAFOUNDATION && JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  75. #pragma comment (lib, "mfuuid.lib")
  76. #endif
  77. #if JUCE_DIRECTSHOW && JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  78. #pragma comment (lib, "strmiids.lib")
  79. #endif
  80. #endif
  81. //==============================================================================
  82. using namespace juce;
  83. namespace juce
  84. {
  85. #if JUCE_MAC || JUCE_IOS
  86. #include "../juce_core/native/juce_osx_ObjCHelpers.h"
  87. #if JUCE_USE_CAMERA
  88. #include "native/juce_mac_CameraDevice.mm"
  89. #endif
  90. #if JUCE_QUICKTIME
  91. #include "native/juce_mac_QuickTimeMovieComponent.mm"
  92. #endif
  93. #elif JUCE_WINDOWS
  94. #include "../juce_core/native/juce_win32_ComSmartPtr.h"
  95. #if JUCE_USE_CAMERA
  96. #include "native/juce_win32_CameraDevice.cpp"
  97. #endif
  98. #if JUCE_DIRECTSHOW
  99. #include "native/juce_win32_DirectShowComponent.cpp"
  100. #endif
  101. #if JUCE_QUICKTIME
  102. #include "native/juce_win32_QuickTimeMovieComponent.cpp"
  103. #endif
  104. #elif JUCE_LINUX
  105. #elif JUCE_ANDROID
  106. #if JUCE_USE_CAMERA
  107. #include "native/juce_android_CameraDevice.cpp"
  108. #endif
  109. #endif
  110. #if JUCE_USE_CAMERA
  111. #include "capture/juce_CameraDevice.cpp"
  112. #endif
  113. }