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.

84 lines
2.1KB

  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. struct CameraDevice::Pimpl
  18. {
  19. Pimpl (const String&, int /*index*/, int /*minWidth*/, int /*minHeight*/, int /*maxWidth*/, int /*maxHeight*/)
  20. {
  21. }
  22. ~Pimpl()
  23. {
  24. }
  25. void startRecordingToFile (const File&, int /*quality*/)
  26. {
  27. }
  28. void stopRecording()
  29. {
  30. }
  31. Time getTimeOfFirstRecordedFrame() const
  32. {
  33. return Time();
  34. }
  35. void addListener (CameraDevice::Listener* listenerToAdd)
  36. {
  37. const ScopedLock sl (listenerLock);
  38. listeners.addIfNotAlreadyThere (listenerToAdd);
  39. }
  40. void removeListener (CameraDevice::Listener* listenerToRemove)
  41. {
  42. const ScopedLock sl (listenerLock);
  43. listeners.removeFirstMatchingValue (listenerToRemove);
  44. }
  45. static StringArray getAvailableDevices()
  46. {
  47. StringArray results;
  48. return results;
  49. }
  50. private:
  51. JUCE_DECLARE_NON_COPYABLE (Pimpl)
  52. };
  53. struct CameraDevice::ViewerComponent : public Component
  54. {
  55. ViewerComponent (CameraDevice&)
  56. {
  57. }
  58. JUCE_DECLARE_NON_COPYABLE (ViewerComponent)
  59. };
  60. String CameraDevice::getFileExtension()
  61. {
  62. return ".mov";
  63. }