12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef VOXEL_UVCSTREAMER_H
- #define VOXEL_UVCSTREAMER_H
- #include "Streamer.h"
- #include "UVC.h"
- namespace Voxel
- {
-
- class VOXEL_EXPORT UVCStreamer : public Streamer
- {
- protected:
- class UVCStreamerPrivate;
- Ptr<UVCStreamerPrivate> _uvcStreamerPrivate;
- Ptr<VideoMode> _currentVideoMode;
- void _storeCurrentVideoMode(const VideoMode &videoMode);
-
- bool _uvcInit();
- bool _initForCapture();
-
- virtual bool _start();
- virtual bool _capture(RawDataFramePtr &p);
- virtual bool _stop();
-
- public:
- UVCStreamer(DevicePtr device);
-
- virtual bool isInitialized();
-
- virtual bool getSupportedVideoModes(Vector<VideoMode> &videoModes);
-
- virtual bool getCurrentVideoMode(VideoMode &videoMode);
- virtual bool setVideoMode(const VideoMode &videoMode);
-
- virtual ~UVCStreamer();
- };
- }
- #endif
|