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.

145 lines
4.7KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library - "Jules' Utility Class Extensions"
  4. Copyright 2004-11 by Raw Material Software Ltd.
  5. ------------------------------------------------------------------------------
  6. JUCE can be redistributed and/or modified under the terms of the GNU General
  7. Public License (Version 2), as published by the Free Software Foundation.
  8. A copy of the license is included in the JUCE distribution, or can be found
  9. online at www.gnu.org/licenses.
  10. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  11. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  12. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  13. ------------------------------------------------------------------------------
  14. To release a closed-source product which uses JUCE, commercial licenses are
  15. available: visit www.rawmaterialsoftware.com/juce for more information.
  16. ==============================================================================
  17. */
  18. #if defined (__JUCE_VIDEO_JUCEHEADER__) && ! JUCE_AMALGAMATED_INCLUDE
  19. /* When you add this cpp file to your project, you mustn't include it in a file where you've
  20. already included any other headers - just put it inside a file on its own, possibly with your config
  21. flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
  22. header files that the compiler may be using.
  23. */
  24. #error "Incorrect use of JUCE cpp file"
  25. #endif
  26. // Your project must contain an AppConfig.h file with your project-specific settings in it,
  27. // and your header search path must make it accessible to the module's files.
  28. #include "AppConfig.h"
  29. #include "../juce_core/native/juce_BasicNativeHeaders.h"
  30. #include "../juce_gui_extra/juce_gui_extra.h"
  31. #include "juce_video.h"
  32. #if JUCE_MAC
  33. #if JUCE_QUICKTIME
  34. #define Point CarbonDummyPointName
  35. #define Component CarbonDummyCompName
  36. #import <QTKit/QTKit.h>
  37. #undef Point
  38. #undef Component
  39. #endif
  40. //==============================================================================
  41. #elif JUCE_WINDOWS
  42. #if JUCE_QUICKTIME
  43. /* If you've got an include error here, you probably need to install the QuickTime SDK and
  44. add its header directory to your include path.
  45. Alternatively, if you don't need any QuickTime services, just set the JUCE_QUICKTIME flag to 0.
  46. */
  47. #include <Movies.h>
  48. #include <QTML.h>
  49. #include <QuickTimeComponents.h>
  50. #include <MediaHandlers.h>
  51. #include <ImageCodec.h>
  52. /* If you've got QuickTime 7 installed, then these COM objects should be found in
  53. the "\Program Files\Quicktime" directory. You'll need to add this directory to
  54. your include search path to make these import statements work.
  55. */
  56. #import <QTOLibrary.dll>
  57. #import <QTOControl.dll>
  58. #if JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  59. #pragma comment (lib, "QTMLClient.lib")
  60. #endif
  61. #endif
  62. #if JUCE_USE_CAMERA || JUCE_DIRECTSHOW
  63. /* If you're using the camera classes, you'll need access to a few DirectShow headers.
  64. These files are provided in the normal Windows SDK. */
  65. #include <dshow.h>
  66. #include <dshowasf.h>
  67. #endif
  68. #if JUCE_DIRECTSHOW && JUCE_MEDIAFOUNDATION
  69. #include <evr.h>
  70. #endif
  71. #if JUCE_USE_CAMERA && JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  72. #pragma comment (lib, "Strmiids.lib")
  73. #pragma comment (lib, "wmvcore.lib")
  74. #endif
  75. #if JUCE_MEDIAFOUNDATION && JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  76. #pragma comment (lib, "mfuuid.lib")
  77. #endif
  78. #if JUCE_DIRECTSHOW && JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  79. #pragma comment (lib, "strmiids.lib")
  80. #endif
  81. #endif
  82. //==============================================================================
  83. using namespace juce;
  84. namespace juce
  85. {
  86. #if JUCE_MAC || JUCE_IOS
  87. #include "../juce_core/native/juce_osx_ObjCHelpers.h"
  88. #include "../juce_core/native/juce_mac_ObjCSuffix.h"
  89. #if JUCE_USE_CAMERA
  90. #include "native/juce_mac_CameraDevice.mm"
  91. #endif
  92. #if JUCE_QUICKTIME
  93. #include "native/juce_mac_QuickTimeMovieComponent.mm"
  94. #endif
  95. #elif JUCE_WINDOWS
  96. #include "../juce_core/native/juce_win32_ComSmartPtr.h"
  97. #if JUCE_USE_CAMERA
  98. #include "native/juce_win32_CameraDevice.cpp"
  99. #endif
  100. #if JUCE_DIRECTSHOW
  101. #include "native/juce_win32_DirectShowComponent.cpp"
  102. #endif
  103. #if JUCE_QUICKTIME
  104. #include "native/juce_win32_QuickTimeMovieComponent.cpp"
  105. #endif
  106. #elif JUCE_LINUX
  107. #elif JUCE_ANDROID
  108. #if JUCE_USE_CAMERA
  109. #include "native/juce_android_CameraDevice.cpp"
  110. #endif
  111. #endif
  112. }