Recorder.h 725 B

1234567891011121314151617181920212223242526272829
  1. #ifndef RECORDER_RECORDER_H
  2. #define RECORDER_RECORDER_H
  3. #include "Util/RecorderMutex.h"
  4. #include <ctpl_stl.h>
  5. #include <string>
  6. namespace CameraRecorder {
  7. namespace Recorder {
  8. class Recorder
  9. {
  10. public:
  11. Recorder(Util::RecorderMutexPointer pRecorderMutex);
  12. ~Recorder();
  13. virtual std::string Snapshot(ctpl::thread_pool* pThreadPool, const std::string& ffmpeg) = 0;
  14. virtual std::string MultiSnapshot(ctpl::thread_pool* pThreadPool, const std::string& ffmpeg, int numberOfImages) = 0;
  15. virtual std::string Video(ctpl::thread_pool* pThreadPool, const std::string& ffmpeg) = 0;
  16. protected:
  17. Util::RecorderMutexPointer m_pRecorderMutex;
  18. };
  19. } // namespace Recorder
  20. } // namespace CameraRecorder
  21. #endif // RECORDER_RECORDER_H